/* =========================================
   OCEÁNICA - PREMIUM BRAND STYLESHEET
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

/* Fallback for the custom brand fonts */
@font-face {
  font-family: 'Nelphim';
  src: url('Oceanica/LOGO/Nelphim-Regular 400.otf') format('opentype'), local('Playfair Display');
  font-display: swap;
}
@font-face {
  font-family: 'MontserratBrand';
  src: url('Oceanica/LOGO/Montserrat-SemiBold.otf') format('opentype'), local('Montserrat');
  font-display: swap;
}

:root {
    /* Exact Brand Palette from Manual */
    --color-orange: #CF470B;       /* Primary Logo & Emphasis */
    --color-yellow: #F6A91B;       /* Secondary Warm Accent */
    --color-rose: #DF4967;         /* Deep Pink */
    --color-pink: #F49EBB;         /* Soft Pink */
    --color-burgundy: #BA0F34;     /* Elegant Dark Headers */
    --color-cream: #FCF2E8;        /* Official Brand Background */
    
    /* Layout & Neutral Colors */
    --color-white: #FFFFFF;
    --color-dark: #2A2626;         /* Soft black for readability */
    --color-gray: #6B6361;         /* Muted text */
    --color-border: rgba(207, 71, 11, 0.15); /* Subtle orange border lines */

    /* Typography Fallbacks */
    --font-heading: 'Nelphim', 'Playfair Display', serif; 
    --font-body: 'MontserratBrand', 'Montserrat', sans-serif; 

    /* UI Variables */
    --transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --border-radius-lg: 24px;
    --border-radius-sm: 8px;
    --shadow-soft: 0 16px 40px rgba(207, 71, 11, 0.08);
    --shadow-hover: 0 20px 50px rgba(223, 73, 103, 0.15);
}

/* =========================================
   RESET
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, .hero-title {
    font-family: var(--font-heading);
    color: var(--color-burgundy);
    font-weight: 500;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.section-title em {
    font-style: italic;
    color: var(--color-orange);
    font-weight: 400;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-rose);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* =========================================
   COMPONENTS
   ========================================= */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-orange);
    color: var(--color-white);
    box-shadow: 0 8px 24px rgba(207,71,11,0.25);
}

.btn-primary:hover {
    background-color: var(--color-burgundy);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(186,15,52,0.3);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-orange);
}

.btn-secondary:hover {
    background-color: var(--color-cream);
    color: var(--color-burgundy);
}

.btn-outline {
    background: transparent;
    color: var(--color-burgundy);
    border: 1px solid var(--color-burgundy);
}

.btn-outline:hover {
    background: var(--color-burgundy);
    color: var(--color-white);
}

/* =========================================
   HEADER / NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(252, 242, 232, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.logo-title {
    font-size: 2rem;
    color: var(--color-orange);
    letter-spacing: 0.05em;
    line-height: 1;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.6rem;
    color: var(--color-pink);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s;
}

.navbar:not(.scrolled) .nav-link {
    color: var(--color-white); /* White links on hero image */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-link:hover {
    color: var(--color-yellow) !important;
}

.btn-nav {
    background: var(--color-white);
    color: var(--color-orange) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-shadow: none !important;
    border: 1px solid transparent;
}
.navbar.scrolled .btn-nav {
    background: var(--color-orange);
    color: var(--color-white) !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
}
.navbar.scrolled .mobile-menu-btn { color: var(--color-orange); }

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* safer for mobile iOS than fixed */
    transform: scale(1);
    transition: transform 6s ease;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    color: var(--color-white);
}

.hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
    font-weight: 600;
}
.hero-tag::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    width: 2rem; height: 1px;
    background: var(--color-yellow);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    color: var(--color-white);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}
.hero-title em {
    font-style: italic;
    color: var(--color-pink);
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.7;
}

.mouse-icon {
    width: 20px; height: 32px;
    border: 1px solid var(--color-white);
    border-radius: 12px;
    position: relative;
}
.mouse-icon::after {
    content: '';
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 2px; height: 6px;
    background: var(--color-white);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 10px); opacity: 0; }
}

/* =========================================
   BENEFITS TICKER
   ========================================= */
.benefits-ticker {
    background: var(--color-burgundy);
    color: var(--color-cream);
    padding: 1rem 0;
    overflow: hidden;
}

.ticker-wrapper {
    width: 100%;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
    width: max-content;
}

.ticker-track span {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-style: italic;
    letter-spacing: 0.05em;
    padding: 0 2rem;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   COLLECTION GRID
   ========================================= */
.collection-section {
    padding: 8rem 0;
    background-color: var(--color-cream);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* ==== PRODUCT CARDS ==== */
.product-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.product-card.featured {
    border: 2px solid var(--color-orange);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 380px; /* Adjust height directly to make photos look grand */
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05); /* Slight zoom on image when hovering card */
}

.product-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--color-burgundy);
    color: var(--color-white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    z-index: 2;
}

.product-info {
    padding: 2rem;
    text-align: center;
    background-color: var(--color-white);
    flex-grow: 1; /* Make sure info block fills the rest of the card */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-orange);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.product-name {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-burgundy);
}

.product-specs {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    min-height: 40px;
}

.product-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border);
    padding-top: 1.2rem;
}

.price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-burgundy);
}

.btn-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--color-cream);
    border: 1px solid var(--color-orange);
    color: var(--color-orange);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--color-orange);
    color: var(--color-white);
    transform: rotate(90deg);
}

/* =========================================
   PHILOSOPHY / VISUAL BANNER
   ========================================= */
.philosophy-section {
    padding: 8rem 5%;
    background-color: var(--color-white);
}

.philosophy-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.philosophy-image {
    position: relative;
    border-radius: 300px 300px 0 0;
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: 0 30px 60px rgba(223,73,103,0.15);
}

.philosophy-image img {    
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Placeholder background */
    background: var(--color-pink);
}

.philosophy-content .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.philosophy-text p {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 2.5rem;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-list li {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--color-orange);
}

.feature-list strong {
    display: block;
    font-size: 1.1rem;
    color: var(--color-burgundy);
    margin-bottom: 0.3rem;
}

.feature-list span {
    font-size: 0.9rem;
    color: var(--color-gray);
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
    padding: 6rem 0;
    background-color: var(--color-cream);
}

.cta-box {
    background: linear-gradient(145deg, var(--color-pink), var(--color-rose));
    border-radius: var(--border-radius-lg);
    padding: 5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-white);
    text-align: center;
    box-shadow: 0 20px 40px rgba(223,73,103,0.25);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%; left: -20%;
    width: 100%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(246,169,27,0.2) 0%, transparent 60%);
    pointer-events: none;
}

.cta-box .section-title {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-box .section-desc {
    color: rgba(255,255,255,0.9);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    z-index: 2;
}

.cta-buttons .btn-primary {
    background: var(--color-white);
    color: var(--color-rose);
}
.cta-buttons .btn-primary:hover {
    background: var(--color-cream);
    transform: translateY(-3px);
}

.cta-buttons .btn-outline {
    border-color: var(--color-white);
    color: var(--color-white);
}

.icon {
    margin-right: 0.6rem;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 4rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    margin-top: 1rem;
    color: rgba(255,255,255,0.6);
    max-width: 300px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-orange);
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .philosophy-grid { grid-template-columns: 1fr; gap: 3rem; }
    .philosophy-image { max-width: 500px; margin: 0 auto; }
}

/* =========================================
   BLOG SECTION ("Olas de Sabiduría")
   ========================================= */
.blog-section {
    background-color: var(--color-burgundy);
    padding: 6rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.blog-img-box {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.blog-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.blog-card:hover .blog-img-box img {
    transform: scale(1.05);
}

.blog-info {
    padding: 2rem;
}

.blog-date {
    display: block;
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-excerpt {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.blog-link {
    color: var(--color-orange);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-link:hover {
    color: var(--color-burgundy);
}

/* =========================================
   WHATSAPP CART OVERLAY & TOAST
   ========================================= */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0) scale(1);
    opacity: 1;
}

.floating-cart.hidden {
    transform: translateY(100px) scale(0.5);
    opacity: 0;
    pointer-events: none;
}

.cart-btn {
    background: var(--color-yellow); /* WhatsApp green alternative, but brand yellow works great */
    color: var(--color-dark);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(246, 169, 27, 0.4);
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--color-orange);
    color: var(--color-white);
    transform: translateY(-3px);
}

.cart-indicator {
    position: absolute;
    top: -10px;
    left: -10px;
    background: var(--color-burgundy);
    color: var(--color-white);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 1000;
    border: 3px solid var(--color-cream);
}

.toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-dark);
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1000;
    transition: bottom 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.toast.show {
    bottom: 30px;
}

/* Replace icon transition */
.btn-icon.success {
    background-color: var(--color-burgundy);
    color: var(--color-white);
    animation: bounceIn 0.5s;
}

@keyframes bounceIn {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .floating-cart {
        bottom: 20px;
        right: 20px;
    }
    .cart-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .nav-menu { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    
    .product-grid { grid-template-columns: 1fr; }
    
    .cta-buttons { flex-direction: column; width: 100%; }
    
    .footer-content { flex-direction: column; gap: 3rem; text-align: center; align-items: center; }
    .footer-links { flex-direction: column; gap: 1rem; }
}
