/* ================== Variables & CSS Reset ================== */
:root {
    /* Colors */
    --color-primary: #FDECE6; /* Coral Suave - logo bg */
    --color-secondary: #B78873; /* Gold/Rose Gold accent */
    --color-dark: #1A1A1A; /* Negro Mate */
    --color-light: #FFFFFF;
    --color-bg-alt: #F8F8F8; /* Gris muy claro para secciones alternas */
    --color-border: #EAEAEA;
    --color-strong-coral: #E57373; /* Solid Coral for Action Buttons */
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Transitions */
    --transition-fast: all 0.3s ease;
    --transition-slow: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--color-bg-alt);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.title-underline {
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
    margin: 0 0 40px 0;
}

.title-underline.center {
    margin: 0 auto 40px auto;
}

/* ================== Buttons ================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--color-strong-coral);
    color: var(--color-light);
    border: 1px solid var(--color-strong-coral);
}

.btn-primary:hover {
    background-color: var(--color-dark);
    color: var(--color-light);
    border-color: var(--color-dark);
}

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

.btn-secondary:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
}

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

.btn-outline:hover {
    background-color: var(--color-dark);
    color: var(--color-light);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ================== Navbar ================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

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

.logo img {
    height: 50px; /* Adjust according to logo proportions */
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-dark);
    transition: var(--transition-fast);
}

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

.btn-reserva {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 10px 20px;
}
.btn-reserva::after { display: none; }

.btn-reserva:hover {
    background-color: var(--color-secondary);
    color: var(--color-light);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-dark);
    margin: 5px 0;
    transition: var(--transition-fast);
}

/* ================== Hero Section ================== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('assets/images/hero-banner.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed; /* Parallax Effect Added */
    /* If the banner image doesn't exist yet we could use a fallback URL in development */
    background-color: var(--color-bg-alt);
    text-align: center;
    color: var(--color-light);
    padding-top: 80px; /* offset navbar */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient so text is readable */
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--color-light);
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

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

/* ================== About Section ================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    border-radius: 4px; /* Slight premium curve */
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}

.about-list {
    margin-top: 30px;
}

.about-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.about-list li i {
    color: var(--color-secondary);
    margin-right: 15px;
    font-size: 1.1rem;
}

/* ================== Dual Banner Transition ================== */
.del-editorial {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-image: url('assets/images/experiencia-dual.webp'); /* ESTA ES LA LÍNEA CLAVE */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Mantiene el efecto Parallax */
    display: block; /* Removed flex centering */
    overflow: hidden;
}

.del-editorial .hero-overlay {
    /* Reusing overlay styles from hero */
    z-index: 1;
}

.dual-text-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
}

.dual-text {
    position: relative;
    width: 100%;
    height: 100%;
}

.phrase {
    position: absolute;
    bottom: 15%;
    width: auto;
    max-width: 40%;
    opacity: 0;
    color: var(--color-light);
    text-shadow: 0 5px 15px rgba(0,0,0,0.7);
}

.phrase-1 {
    left: 8%;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-style: italic;
    font-weight: 400;
    animation: fadeLeft 8s infinite ease-in-out;
}

.phrase-2 {
    right: 8%;
    text-align: right;
    font-family: var(--font-body);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(to right, #FFD700, #E57373, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: fadeRight 8s infinite ease-in-out, shine 3s linear infinite;
    animation-delay: 4s, 0s;
}

@keyframes shine {
    to { background-position: 200% center; }
}

@keyframes fadeLeft {
    0% { opacity: 0; transform: translateX(-30px); }
    10% { opacity: 1; transform: translateX(0); }
    40% { opacity: 1; transform: translateX(0); }
    50% { opacity: 0; transform: translateX(30px); }
    100% { opacity: 0; transform: translateX(30px); }
}

@keyframes fadeRight {
    0% { opacity: 0; transform: translateX(30px); }
    10% { opacity: 1; transform: translateX(0); }
    40% { opacity: 1; transform: translateX(0); }
    50% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 0; transform: translateX(-30px); }
}

/* ================== Services ================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--color-light);
    padding: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    border-top: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--color-secondary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin: 0 auto 25px auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-bg-alt);
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.85rem;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
}

/* ================== Shop (E-commerce UI / Swiper) ================== */
.shop {
    background-color: var(--color-primary); /* Coral Sutil */
}

.shop .section-title, .shop .section-subtitle {
    color: var(--color-dark);
}

.product-carousel {
    width: 100%;
    padding: 20px 0 50px 0; /* Espacio para paginación */
    margin-top: 30px;
}

.product-carousel .swiper-slide {
    text-align: center;
    background: var(--color-light); /* Fondo blanco para las tarjetas */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
    padding-bottom: 15px;
}

.slider-link {
    display: block;
    width: 100%;
    overflow: hidden;
}

.btn-buy {
    margin-top: 15px;
    font-size: 0.85rem;
    padding: 10px 25px;
    width: auto;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-buy:hover {
    background-color: var(--color-dark) !important;
    border-color: var(--color-dark) !important;
    color: var(--color-light) !important;
}

.product-carousel .swiper-slide:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-carousel .swiper-wrapper {
    transition-timing-function: linear !important;
}

.product-carousel .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1; /* Mantiene proporciones cuadradas si es necesario */
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.product-carousel .swiper-slide:hover img {
    transform: scale(1.2);
}

.swiper-pagination-bullet-active {
    background: var(--color-dark) !important;
}

.carousel-cta {
    margin-top: 50px;
    padding-bottom: 20px;
}

.elegant-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-dark);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* ================== Portafolio Carousel ================== */
.portfolio-carousel {
    width: 100%;
    margin-top: 40px;
    padding-bottom: 20px;
}

.portfolio-carousel .swiper-wrapper {
    transition-timing-function: linear !important;
}

.portfolio-carousel .swiper-slide {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: opacity 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Al poner el mouse en el contenedor global, bajamos la opacidad de todos los slides */
.portfolio-carousel:hover .swiper-slide {
    opacity: 0.4;
}

/* Devolvemos la vida (100% opacidad) y el brillo unicamente al slide apuntado */
.portfolio-carousel .swiper-slide:hover {
    opacity: 1;
    border-color: var(--color-secondary);
    box-shadow: 0 0 20px rgba(183, 136, 115, 0.6); /* Brillo resplandeciente en Oro Rosa */
}

.portfolio-carousel .swiper-slide::after {
    content: "KC";
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0px 2px 6px rgba(0,0,0,0.8);
    pointer-events: none;
    z-index: 10;
    line-height: 1;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.portfolio-carousel .swiper-slide:hover::after {
    opacity: 0.2; /* Subtly fades out when hovering over the image */
}

.portfolio-carousel .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1; /* Maintains perfect squares for consistency */
    transition: transform 0.4s ease-out;
}

.portfolio-carousel .swiper-slide:hover img {
    transform: scale(1.2);
}

/* ================== QR Code Section ================== */
.qr-wrapper {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-header {
    text-align: center;
    max-width: 600px;
    margin-bottom: 20px;
}

.qr-header h3 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.qr-header p {
    font-size: 0.95rem;
    color: #444;
}

.qr-container {
    max-width: 150px;
    background: var(--color-primary); /* Coral de la marca */
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
    margin: 0 auto;
}

.qr-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.qr-link-wrapper {
    display: block;
    width: 100%;
    transition: transform 0.3s ease;
}

.qr-link-wrapper:hover {
    transform: scale(1.05);
}

/* ================== Portfolio (Instagram Grid) ================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.portfolio-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: var(--transition-slow);
    cursor: pointer;
}

.portfolio-grid img:hover {
    transform: scale(0.98);
    opacity: 0.8;
}

/* ================== Testimonials ================== */
.testimonials {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 120px 0;
}

.quote-icon {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 30px;
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
}

.quote-text {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 30px;
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.client-name {
    font-size: 1.2rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-body);
}

/* ================== Blog ================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    text-align: left;
}

.blog-card {
    background: var(--color-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
}

.blog-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-content {
    padding: 30px;
}

.blog-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.blog-content p {
    color: #666;
    margin-bottom: 20px;
}

.read-more {
    font-weight: 600;
    color: var(--color-dark);
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.read-more:hover {
    color: var(--color-secondary);
}

/* ================== Contact Section ================== */
.contact {
    background-color: var(--color-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background-color: var(--color-light);
    padding: 60px;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    padding-right: 30px;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

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

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item p {
    color: #666;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #fbfbfb;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-dark);
    background-color: var(--color-light);
}

/* ================== Footer ================== */
footer {
    background-color: var(--color-dark);
    color: #888;
    padding: 50px 0 30px 0;
}

.footer-logo {
    height: 40px;
    margin: 0 auto 20px auto;
}

.footer-social {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-social a {
    color: #888;
    font-size: 1.5rem;
}

.footer-social a:hover {
    color: var(--color-light);
}

/* ================== WhatsApp Button ================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition-fast);
}

.whatsapp-float:hover {
    background-color: #1EBE5D;
    transform: scale(1.1);
}

/* ================== Custom Cursor ================== */
@media (pointer: fine) {
    body, a, button, .btn {
        cursor: none !important;
    }

    .custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 35px;
        height: 35px;
        background-image: url("data:image/svg+xml;utf8,<svg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'><path d='M8.5 12.5L12.5 8.5C14.5 5 13 2 1 1C2 13 5 14.5 8.5 12.5Z' fill='%231a1a1a'/><path d='M9.5 13.5L13.5 9.5L17 13L13 17Z' fill='%23b78873'/><path d='M14.5 18.5L18.5 14.5L30 26C31 27 31 29 30 30C29 31 27 31 26 30Z' fill='%23333'/></svg>");
        background-size: contain;
        background-repeat: no-repeat;
        pointer-events: none;
        z-index: 99999;
        /* El hotspot (0,0) está forzado en la esquina superior izquierda */
        transform: translate(0, 0) scale(1);
        transform-origin: top left;
        transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-image 0s;
        will-change: transform, left, top;
    }

    .custom-cursor.labial {
        background-image: url("data:image/svg+xml;utf8,<svg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'><path d='M6 10L10 6L9 2C8 1 4 1 2 3C1 4 1 6 2 7Z' fill='%23E57373'/><path d='M7 11L11 7L16 12L12 16Z' fill='%23b78873'/><path d='M13 17L17 13L28 24C29 25 29 28 28 29C27 30 24 30 23 29Z' fill='%231a1a1a'/></svg>");
    }

    .custom-cursor.hover {
        transform: translate(0, 0) scale(1.3); /* Escala de 30% para hacer el click más evidente */
    }

    /* Magic Glitter Effect */
    .glitter-particle {
        position: fixed;
        width: 4px;
        height: 4px;
        background-color: var(--color-secondary);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99998;
        box-shadow: 0 0 6px var(--color-secondary);
        animation: glitterAnim 0.8s forwards ease-out;
    }

    @keyframes glitterAnim {
        0% { transform: scale(1) translateY(0); opacity: 1; }
        100% { transform: scale(0) translateY(20px); opacity: 0; }
    }
}

/* ================== Animation Classes ================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* ================== Responsiveness ================== */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        padding: 40px 20px;
    }
    
    .contact-info {
        padding-right: 0;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-sm);
        padding: 20px 0;
        gap: 0;
    }

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

    .nav-item {
        margin: 15px 0;
    }
    
    .nav-link {
        display: block;
        padding: 15px;
    }

    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .quote-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}
