/* style.css */

/* CSS Variables */
:root {
    /* Paleta Refinada */
    --bg-mint: #D0E8E6;
    /* Fondo suave */
    --bg-white: #ffffff;
    /* Fondo principal */
    --accent-gold: #D4AF37;
    /* Dorado metálico (más elegante que el amarillo) */
    --text-dark: #1A3C34;
    /* Verde muy oscuro (más sofisticado que negro) */
    --text-light: #555555;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    /* Paleta extraída del Logo */
    --bg-logo: #D8EBE9;
    /* El azul menta suave del fondo del logo */
    --bg-white: #ffffff;
    --accent-gold: #D4AF37;
    /* Dorado elegante (Flor) */
    --accent-leaf: #8FBC8F;
    /* Verde hoja suave (Detalles) */
    --text-main: #1C1C1C;
    /* Negro suave (Líneas del dibujo) */
    --text-light: #555555;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --transition: all 0.3s ease;
    --shadow-soft: 0 10px 30px rgba(143, 188, 143, 0.15);
    /* Sombra verdosa sutil */
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.5rem;
}

/* Highlight Text Effect */
.highlight {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 35%;
    background-color: var(--accent-gold);
    opacity: 0.4;
    z-index: -1;
    border-radius: 4px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(26, 60, 52, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 60, 52, 0.4);
    background-color: var(--accent-gold);
    color: var(--text-dark);
}

.btn-cta-nav {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-cta-nav:hover {
    background-color: var(--accent-gold);
    color: var(--text-dark);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn-cta-nav) {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:not(.btn-cta-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

.nav-links a:not(.btn-cta-nav):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section with Curve */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-color: var(--bg-mint);
    position: relative;
    overflow: hidden;
}

/* Onda decorativa en la parte inferior del Hero */
.hero::bottom-curve {
    /* Nota: Esto se maneja mejor con SVG en HTML o clip-path, 
       pero para simplicidad usaremos un border-radius truco en el contenedor padre si fuera necesario.
       Aquí mantendremos el fondo sólido limpio. */
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
    max-width: 90%;
}

.image-placeholder {
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid var(--bg-white);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    /* Forma orgánica "Blob" */
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--text-dark);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    animation: morph 8s ease-in-out infinite;
    overflow: hidden;
    /* Para cuando pongas una imagen real */
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image .image-placeholder {
    border-radius: 10px;
    height: auto;
    /* Remove fixed height */
    animation: none;
    background-color: transparent;
    border: none;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.about-img {
    width: 100%;
    display: block;
    border-radius: 10px;
    transition: var(--transition);
}

.about-img:hover {
    transform: scale(1.02);
}

/* Services Section */
.services {
    background-color: #f8fcfb;
    /* Mint muy muy claro */
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-15px);
    border-bottom: 5px solid var(--accent-gold);
}

.service-card i {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    background: var(--bg-mint);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

/* Contact Section */
.contact {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 5rem 0;
    position: relative;
}

.contact h2 {
    color: var(--bg-white);
}

#contact-form {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group input,
.form-group textarea {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: none;
}

.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px var(--accent-gold);
}

.btn-submit {
    background-color: var(--accent-gold);
    color: var(--text-dark);
    border: none;
    font-size: 1.1rem;
}

.btn-submit:hover {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

/* Footer - Redesigned */
footer {
    background-color: #112621;
    color: var(--bg-white);
    padding: 5rem 0 2rem;
    font-size: 0.95rem;
    border-top: 5px solid var(--accent-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    text-align: left;
}

.footer-col h3 {
    color: var(--bg-mint);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

.footer-col h4 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    position: relative;
    display: inline-block;
}

.footer-tagline {
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-list li i {
    color: var(--accent-gold);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.developer-credit a {
    color: var(--bg-mint);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.developer-credit a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* Social Links Adjustment for Footer */
.footer-col .social-links {
    margin: 1rem 0 0 0;
    display: flex;
    gap: 10px;
}

.footer-col .social-links a {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--bg-white);
    transition: var(--transition);
}

.footer-col .social-links a:hover {
    background-color: var(--accent-gold);
    color: var(--text-dark);
    transform: translateY(-3px);
}


@media (max-width: 768px) {
    .nav-links {
        background-color: var(--bg-white);
        width: 100%;
        padding: 2rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero-content,
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .image-placeholder {
        height: 350px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .footer-col ul li a:hover {
        transform: none;
    }

    .contact-list li {
        justify-content: center;
    }

    .footer-col .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Contact Section - Redesigned */
.contact {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Background elements for depth */
.contact::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(143, 188, 143, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* Contact Info Column */
.contact-info h2 {
    color: var(--bg-white);
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 90%;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--bg-mint);
}

.detail-item i {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-gold);
    transition: var(--transition);
}

.detail-item:hover i {
    background-color: var(--accent-gold);
    color: var(--text-dark);
    transform: scale(1.1);
}

/* CONTACT SECTION - REDISEÑO LUMINOSO */
.contact {
    /* Usamos el color claro del logo de fondo para dar amplitud */
    background-color: var(--bg-logo);
    padding: 5rem 0;
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    /* Alineamos arriba para que no se estiren */
}

/* Columna Izquierda: Info + Foto */
.contact-info {
    text-align: left;
}

.contact-info h2 {
    color: var(--text-main);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-details {
    margin-bottom: 3rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

.detail-item i {
    width: 40px;
    height: 40px;
    background-color: var(--bg-white);
    color: var(--accent-gold);
    /* Icono dorado */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Estilo para la Foto del Grupo */
.contact-photo-container img {
    border-radius: 20px;
    /* Un borde blanco grueso + sombra hace que parezca una foto impresa */
    border: 8px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    /* Un toque divertido/casual */
    transition: var(--transition);
}

.contact-photo-container img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Columna Derecha: Formulario Flotante */
.contact-form-container {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    /* Sombra suave y elegante */
    border: 1px solid rgba(255, 255, 255, 0.5);
}

#contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: #F8FBFB;
    /* Fondo muy sutilmente azulado/gris */
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition);
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

/* Ajuste del botón */
.btn-submit {
    margin-top: 0.5rem;
    background-color: var(--text-main);
    /* Botón oscuro para contraste */
    color: #fff;
}

.btn-submit:hover {
    background-color: var(--accent-gold);
    color: var(--text-main);
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 0;
    background-color: var(--bg-white);
    text-align: center;
}

.gallery-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.gallery-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    will-change: transform;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition);
    width: 300px;
    height: 300px;
    flex-shrink: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Gallery Overlay Effect */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-photo-container img {
        transform: rotate(0);
        margin-bottom: 2rem;
        width: 100%;
    }

    .contact-info {
        order: -1;
        /* Texto arriba en celular */
        text-align: center;
    }

    .detail-item {
        justify-content: center;
    }
}

/* Brands Carousel */
.brands-section {
    padding: 5rem 0;
    background-color: #fafafa;
    text-align: center;
    overflow: hidden;
    /* Hide overflow from marquee */
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.brands-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.brands-carousel::before,
.brands-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brands-carousel::before {
    left: 0;
    background: linear-gradient(to right, #fafafa, transparent);
}

.brands-carousel::after {
    right: 0;
    background: linear-gradient(to left, #fafafa, transparent);
}

.brands-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    /* Animation will be handled by JS/CSS combination or just CSS if we duplicate */
}

/* We will define the animation in JS or generic class if duplications are known, 
   but since we are using JS to calculate, we'll keep the track flexible. */

.brand-item {
    background-color: var(--bg-white);
    width: 180px;
    /* Fixed width for smooth scroll calculation */
    height: 120px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
    padding: 1rem;
    cursor: pointer;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-gold);
}

.brand-placeholder {
    color: #ccc;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.brand-item:hover .brand-placeholder {
    color: var(--accent-gold);
}

.btn-text {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-gold);
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.btn-text:hover::after {
    transform: scaleX(0);
    transform-origin: left;
}

/* SECCIÓN PATROCINADORES / ALIADOS */
.sponsors-section {
    padding: 6rem 0;
    background-color: #FAFAFA;
    /* Fondo muy ligero para diferenciar */
    text-align: center;
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
    /* Más espacio entre logos */
    margin-top: 3rem;
}

.sponsor-item {
    /* Eliminamos dimensiones fijas cuadradas */
    width: auto;
    height: 80px;
    /* Altura unificada para consistencia visual */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: var(--transition);
    position: relative;
}

.sponsor-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-5px);
    /* Flotar suavemente */
}

.sponsor-logo {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
    /* Suavizar bordes si tiene fondo */
    /* Si las imagenes tienen fondo blanco y la web no es blanca pura, mix-blend-mode ayuda */
    mix-blend-mode: multiply;
}

/* Estilo para el texto temporal (borrar cuando tengas logos reales) */
.sponsor-placeholder {
    color: #ccc;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px dashed #eee;
    padding: 1rem;
    border-radius: 10px;
}