/* don-felipe-yogurt/assets/css/frontend.css */

:root {
    --dfy-primary: #0D47C5;
    --dfy-primary-dark: #09349e;
    --dfy-accent: #2A85F4;
    --dfy-white: #FFFFFF;
    --dfy-cream: #F8FAFC;
    --dfy-cream-dark: #f1f5f9;
    --dfy-text: #0F172A;
    --dfy-shadow: 0 10px 25px rgba(13, 71, 197, 0.15);
    --dfy-shadow-hover: 0 20px 40px rgba(13, 71, 197, 0.25);
    
    --dfy-font-title: 'Nunito', sans-serif;
    --dfy-font-body: 'Inter', sans-serif;
    --dfy-font-accent: 'Pacifico', cursive;
    
    --dfy-radius-pill: 50px;
    --dfy-radius-card: 20px;
}

/* Base resets & Layout */
.dfy-landing-wrapper {
    font-family: var(--dfy-font-body);
    color: var(--dfy-text);
    background-color: var(--dfy-cream);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.dfy-landing-wrapper * {
    box-sizing: border-box;
}

.dfy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dfy-section {
    padding: 100px 0;
}

.dfy-offset-bg {
    background-color: var(--dfy-white);
}

.dfy-section-title {
    font-family: var(--dfy-font-title);
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dfy-primary);
    margin-bottom: 20px;
}

.dfy-section-title.text-left {
    text-align: left;
}

.dfy-accent-title {
    font-family: var(--dfy-font-accent);
    color: var(--dfy-accent);
    font-size: 2rem;
    font-weight: 400;
    margin-top: -15px;
    margin-bottom: 30px;
}

/* Navbar */
.dfy-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.dfy-navbar.scrolled {
    background: rgba(13, 71, 197, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.dfy-nav-logo {
    max-height: 60px; /* Slightly larger */
    width: auto;
    transition: all 0.3s;
    display: block;
}

.dfy-navbar.scrolled .dfy-nav-logo {
    max-height: 40px;
    /* Removed white filter to keep original logo colors as requested */
}

.dfy-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.dfy-nav-menu a {
    color: var(--dfy-white);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--dfy-font-title);
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.dfy-nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--dfy-accent);
    transition: width 0.3s ease;
}

.dfy-nav-menu a:hover::after {
    width: 100%;
}

.dfy-navbar:not(.scrolled) .dfy-nav-menu a {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Epic Hero Section */
.dfy-epic {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--dfy-white);
    padding-top: 80px; /* Offset for navbar */
}

.dfy-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13, 71, 197, 0.4), rgba(15, 23, 42, 0.8));
    z-index: 1;
}

.dfy-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    margin-top: -80px; /* Move content UP to avoid wave collision */
}

.dfy-hero-content .dfy-title {
    font-family: var(--dfy-font-title);
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.dfy-hero-content .dfy-subtitle {
    font-family: var(--dfy-font-accent);
    font-size: 2.5rem;
    color: #e0f2fe;
    margin-bottom: 50px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.dfy-hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.dfy-btn-primary, .dfy-btn-secondary {
    display: inline-block;
    padding: 16px 45px;
    font-family: var(--dfy-font-title);
    font-weight: 800;
    font-size: 1.15rem;
    border-radius: var(--dfy-radius-pill);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.dfy-btn-primary {
    background-color: var(--dfy-accent);
    color: var(--dfy-white);
    border: none;
}

.dfy-btn-secondary {
    background-color: transparent;
    color: var(--dfy-white);
    border: 2px solid var(--dfy-white);
}

.dfy-btn-primary:hover, .dfy-btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.dfy-btn-primary:hover {
    background-color: var(--dfy-white);
    color: var(--dfy-primary);
}

.dfy-btn-secondary:hover {
    background-color: var(--dfy-white);
    color: var(--dfy-primary);
}

.dfy-wave-bottom {
    position: absolute;
    bottom: -1px; /* Avoid 1px gap bug */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.dfy-wave-bottom svg {
    display: block;
    width: 100%;
    height: 120px;
}

@media (max-width: 768px) {
    .dfy-wave-bottom svg {
        height: 60px;
    }
}

/* Animations Helpers */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.dfy-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.dfy-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Nosotros Section */
.dfy-split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.dfy-split-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
}

.dfy-split-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.dfy-pill-image {
    width: 100%;
    max-width: 450px;
    height: 550px;
    border-radius: 200px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--dfy-shadow);
    position: relative;
}

.dfy-pill-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px dashed var(--dfy-accent);
    border-radius: 220px;
    z-index: -1;
    opacity: 0.5;
}

/* Proceso Grid Section */
.dfy-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.dfy-feature-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--dfy-cream);
    border-radius: var(--dfy-radius-card);
    transition: transform 0.3s;
}

.dfy-feature-card:hover {
    transform: translateY(-10px);
}

.dfy-feature-icon {
    font-size: 3rem;
    color: var(--dfy-primary);
    margin-bottom: 20px;
}

.dfy-feature-card h3 {
    font-family: var(--dfy-font-title);
    font-size: 1.5rem;
    color: var(--dfy-text);
    margin-bottom: 15px;
}

.dfy-feature-card p {
    color: #475569;
    line-height: 1.6;
}

/* Catalog Section Overrides */
.dfy-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.dfy-filter-btn {
    background-color: var(--dfy-white);
    color: var(--dfy-text);
    border: none;
    padding: 12px 30px;
    border-radius: var(--dfy-radius-pill);
    font-family: var(--dfy-font-body);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.dfy-filter-btn:hover, .dfy-filter-btn.active {
    background-color: var(--dfy-primary);
    color: var(--dfy-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13,71,197,0.2);
}

.dfy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.dfy-card {
    background: var(--dfy-white);
    border-radius: var(--dfy-radius-card);
    overflow: hidden;
    box-shadow: var(--dfy-shadow);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.dfy-card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 5px solid var(--dfy-accent);
}

.dfy-badge-oos {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ef4444;
    color: white;
    padding: 6px 18px;
    border-radius: var(--dfy-radius-pill);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.dfy-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.dfy-card-title {
    font-size: 1.4rem;
    color: var(--dfy-primary);
    margin-bottom: 12px;
}

.dfy-card-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

.dfy-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dfy-price {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--dfy-font-title);
    color: var(--dfy-text);
}

.dfy-price.dfy-consultar {
    font-size: 1.1rem;
    color: #94a3b8;
}

.dfy-add-to-cart {
    background-color: var(--dfy-accent);
    color: var(--dfy-white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--dfy-radius-pill);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dfy-add-to-cart:hover:not(.disabled) {
    background-color: var(--dfy-primary);
    transform: scale(1.05);
}

.dfy-add-to-cart.disabled {
    background-color: #e2e8f0;
    cursor: not-allowed;
    color: #64748b;
}

/* Footer Section */
.dfy-footer {
    position: relative;
    background: linear-gradient(180deg, var(--dfy-primary-dark) 0%, #061b4d 100%);
    color: var(--dfy-white);
    padding-top: 100px;
}

.dfy-wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.dfy-wave-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.dfy-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.dfy-footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
    /* Removed white filter to keep original logo colors */
    opacity: 1;
}

.dfy-footer h3 {
    font-family: var(--dfy-font-title);
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--dfy-accent);
}

.dfy-footer p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 10px;
}

.dfy-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: var(--dfy-white);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
    text-decoration: none;
}

.dfy-footer-social a:hover {
    background-color: var(--dfy-accent);
    transform: translateY(-3px);
}

.dfy-footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    background-color: rgba(0,0,0,0.15);
}

.dfy-footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* Floating Cart */
.dfy-floating-cart {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 2000;
}

.dfy-cart-toggle {
    position: relative;
    width: 70px;
    height: 70px;
    background-color: var(--dfy-primary);
    color: var(--dfy-white);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 30px rgba(13, 71, 197, 0.5);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dfy-cart-toggle:hover {
    transform: scale(1.1);
}

.dfy-cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ef4444; 
    color: white;
    font-size: 0.9rem;
    font-weight: 800;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dfy-white);
}

/* Base cart styles from previous iteration stay visually similar */
.dfy-cart-panel {
    position: fixed;
    top: 0;
    right: -450px; 
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background-color: var(--dfy-white);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dfy-floating-cart.open .dfy-cart-panel {
    right: 0;
}

.dfy-cart-header {
    padding: 30px;
    background: linear-gradient(135deg, var(--dfy-primary) 0%, #1e5dd6 100%);
    color: var(--dfy-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dfy-cart-header h3 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--dfy-white);
}

.dfy-cart-close {
    background: transparent;
    border: none;
    color: var(--dfy-white);
    font-size: 1.6rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.dfy-cart-close:hover {
    transform: rotate(90deg);
}

.dfy-cart-items {
    flex-grow: 1;
    padding: 25px;
    overflow-y: auto;
}

.dfy-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.dfy-cart-item-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dfy-text);
}

.dfy-cart-item-price {
    color: var(--dfy-primary);
    font-size: 1rem;
    font-weight: 600;
}

.dfy-qty-btn {
    background: var(--dfy-cream-dark);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    color: var(--dfy-text);
    transition: background 0.2s;
}

.dfy-qty-btn:hover {
    background: #cbd5e1;
}

.dfy-cart-footer {
    padding: 30px;
    background-color: var(--dfy-cream);
    border-top: 1px solid #e2e8f0;
}

.dfy-cart-total-line {
    display: flex;
    justify-content: space-between;
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 25px;
    color: var(--dfy-text);
}

.dfy-btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: var(--dfy-radius-pill);
    font-size: 1.2rem;
    font-family: var(--dfy-font-title);
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.dfy-btn-checkout:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* Mobile Menu Toggle Styling */
.dfy-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.dfy-nav-toggle span {
    width: 30px;
    height: 3px;
    background: var(--dfy-white);
    border-radius: 10px;
    transition: all 0.3s linear;
}

@media (max-width: 900px) {
    .dfy-nav-toggle {
        display: flex;
    }
    
    .dfy-nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--dfy-primary);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    }
    
    .dfy-nav-menu.active {
        right: 0;
    }
    
    .dfy-nav-menu a {
        font-size: 1.5rem;
        margin: 15px 0;
    }

    .dfy-nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .dfy-nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .dfy-nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .dfy-epic {
        background-position: 80% center;
        background-attachment: scroll; /* Better performance and behavior on mobile */
        height: auto;
        min-height: 85vh;
        padding-bottom: 150px; /* Space for wave and buttons */
    }

    .dfy-hero-content .dfy-title {
        font-size: 2.5rem;
        padding: 0 15px;
        line-height: 1.2;
    }
    
    .dfy-hero-content .dfy-subtitle {
        font-size: 1.4rem;
        padding: 0 15px;
        margin-bottom: 30px;
    }

    .dfy-section-title {
        font-size: 2.2rem;
    }

    .dfy-split-layout {
        flex-direction: column;
        gap: 40px;
    }

    .dfy-split-text {
        order: 2;
        text-align: center;
    }

    .dfy-split-image {
        order: 1;
        width: 100%;
        display: block; /* Ensure it takes space */
    }

    .dfy-pill-image {
        height: 300px;
        width: 100%;
        max-width: 100%;
        border-radius: 40px; /* Modern rounded shape on mobile */
    }

    .dfy-pill-image::before {
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
        border-radius: 55px; /* (40px + 15px gap) to keep it parallel */
    }

    .dfy-features-grid, .dfy-footer-content {
        grid-template-columns: 1fr;
    }

    .dfy-footer-content {
        text-align: center;
    }
    
    .dfy-footer-logo {
        margin: 0 auto 20px auto;
    }
}

/* Modal Styles */
.dfy-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.dfy-modal.open {
    display: flex;
    animation: dfyFadeIn 0.3s ease;
}

.dfy-modal-content {
    background-color: var(--dfy-white);
    padding: 0;
    border-radius: var(--dfy-radius-card);
    width: 95%;
    max-width: 500px;
    box-shadow: var(--dfy-shadow-hover);
    overflow: hidden;
    position: relative;
}

.dfy-modal.open .dfy-modal-content {
    animation: dfySlideUp 0.4s ease;
}

.dfy-modal-header {
    background: var(--dfy-primary);
    color: var(--dfy-white);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dfy-modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--dfy-white);
}

.dfy-modal-close {
    background: transparent;
    border: none;
    color: var(--dfy-white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.dfy-modal-body {
    padding: 30px;
}

.dfy-form-group {
    margin-bottom: 20px;
}

.dfy-form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dfy-text);
}

.dfy-form-group input, 
.dfy-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: var(--dfy-font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.dfy-form-group input:focus, 
.dfy-form-group textarea:focus {
    border-color: var(--dfy-accent);
    outline: none;
}

.dfy-form-group textarea {
    height: 100px;
    resize: none;
}

@keyframes dfyFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dfySlideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

