/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta Indika Pasteleria - Dorado/Beige */
    --primary-color: #e4cea6;
    --secondary-color: #f3debe;
    --accent-color: #f9e7d4;
    --dark-gold: #c9af89;
    --light-gold: #fff7ef;
    --sand-color: #f3debe;
    --earth-color: #d6bf9e;
    --white: #FFFFFF;
    --text-dark: #4A4A4A;
    --text-light: #6B6B6B;
    --shadow: rgba(201, 175, 137, 0.16);
    
    /* Tipografía */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

html {
    scroll-behavior: smooth;
}

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

body.page-loading {
    overflow: hidden;
}

.page-loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(140deg, var(--light-gold), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    z-index: 20000;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    width: min(112px, 34vw);
    height: auto;
    animation: loaderPulse 1.8s ease-in-out infinite;
}

.loader-bar {
    width: min(260px, 72vw);
    height: 8px;
    border-radius: 999px;
    background: rgba(201, 175, 137, 0.25);
    overflow: hidden;
}

.loader-bar-fill {
    display: block;
    width: 50%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--dark-gold), var(--primary-color));
    animation: loaderSlide 1.2s ease-in-out infinite;
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--dark-gold);
}

.logo-img {
    height: 2rem;
    width: auto;
    object-fit: contain;
}

.logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--dark-gold);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--dark-gold);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-gold);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 55%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 70px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

/* Decoraciones flotantes del hero con iconos */
.hero-decoration {
    position: absolute;
    color: var(--white);
    opacity: 0.24;
    text-shadow: 0 8px 24px rgba(74, 74, 74, 0.18);
    pointer-events: none;
    font-size: 4rem;
}

/* Tortas con velas */
.cake-1 {
    top: 12%;
    left: 8%;
    font-size: 5rem;
    animation: float 6s ease-in-out infinite;
}

.cake-2 {
    top: 65%;
    right: 10%;
    font-size: 4.5rem;
    animation: float 7s ease-in-out infinite 1s;
}

.cake-3 {
    bottom: 15%;
    left: 12%;
    font-size: 3.5rem;
    animation: float 6.5s ease-in-out infinite 2s;
}

/* Cupcakes */
.cupcake-1 {
    top: 20%;
    right: 15%;
    font-size: 3.8rem;
    animation: float 5s ease-in-out infinite 0.5s;
}

.cupcake-2 {
    bottom: 25%;
    left: 18%;
    font-size: 4rem;
    animation: float 6s ease-in-out infinite 1.5s;
}

/* Galletas */
.cookie-1 {
    top: 45%;
    left: 5%;
    font-size: 3.5rem;
    animation: float 5.5s ease-in-out infinite 1.2s;
}

.cookie-2 {
    top: 55%;
    right: 8%;
    font-size: 3.2rem;
    animation: float 6.5s ease-in-out infinite 2.5s;
}

.cookie-3 {
    bottom: 18%;
    right: 20%;
    font-size: 3.8rem;
    animation: float 7s ease-in-out infinite 0.8s;
}

/* Animación de flotación suave */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-25px) rotate(8deg);
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
    }
    75% {
        transform: translateY(-30px) rotate(-8deg);
    }
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.hero-brand {
    display: inline-block;
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(3px);
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--white);
    color: var(--dark-gold);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: var(--dark-gold);
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--dark-gold));
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-placeholder {
    background: linear-gradient(145deg, var(--secondary-color), var(--primary-color));
    border-radius: 20px;
    padding: 0;
    text-align: center;
    min-height: 420px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
}

.about-gif,
.about-video {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

.about-text h3 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    color: var(--dark-gold);
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature i {
    color: var(--dark-gold);
    font-size: 1.5rem;
}

.feature span {
    font-weight: 500;
}

/* Products Section */
.products {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--light-gold) 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(201, 175, 137, 0.45);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

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

.product-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.product-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.product-card h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--dark-gold);
    margin-bottom: 1rem;
}

.product-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px var(--shadow);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--earth-color), var(--primary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.gallery-placeholder i {
    font-size: 4rem;
    color: var(--white);
}

.gallery-placeholder p {
    color: var(--white);
    font-weight: 500;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--light-gold) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h3 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    color: var(--dark-gold);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--dark-gold);
    margin-top: 5px;
}

.contact-item h4 {
    color: var(--dark-gold);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
}

.contact-form-container {
    position: relative;
}

.contact-form {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(201, 175, 137, 0.45);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dark-gold);
    box-shadow: 0 0 0 3px rgba(205, 162, 95, 0.15);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    width: 100%;
    background: var(--dark-gold);
    color: var(--white);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    display: none;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--earth-color), var(--dark-gold));
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--white);
    color: var(--dark-gold);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

/* Gallery Modal & Carousel */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.carousel-container {
    max-width: 800px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 10px;
}

.carousel-btn {
    position: absolute;
    background: rgba(205, 162, 95, 0.85);
    border: none;
    color: var(--white);
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 10001;
}

.carousel-btn:hover {
    background: var(--dark-gold);
    transform: scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

.dot:hover {
    background: var(--white);
}

.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
}

@keyframes loaderPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes loaderSlide {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(280%);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-brand {
        font-size: 0.8rem;
        letter-spacing: 0.16em;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    /* Ocultar decoraciones en tablets y móviles */
    .hero-decoration {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .contact-form-container {
        order: 1;
    }

    .contact-info {
        order: 2;
        margin-top: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .product-card {
        padding: 2rem 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-brand {
        font-size: 0.72rem;
        letter-spacing: 0.14em;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .about-image-placeholder {
        min-height: 320px;
    }

    .about-gif,
    .about-video {
        min-height: 320px;
    }
}
