/* --- CARGA DE FUENTES LOCALES --- */
@font-face {
    font-family: 'Le Petit Cochon';
    src: url('fonts/Le petit.ttf') format('truetype');
}
@font-face {
    font-family: 'DM Sans';
    src: url('fonts/DM sans.ttf') format('truetype');
    font-weight: normal; /* 400 */
    font-style: normal;
}
@font-face {
    font-family: 'DM Sans';
    src: url('fonts/DM sans italic.ttf') format('truetype');
    font-weight: normal; /* 400 */
    font-style: italic;
}
@font-face {
    font-family: 'DM Sans';
    src: url('fonts/DM sans medium.ttf') format('truetype');
    font-weight: 500; /* Medium */
    font-style: normal;
}
@font-face {
    font-family: 'DM Sans';
    src: url('fonts/DM sans semi bold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Raleway';
    src: url('fonts/ralewaylight.ttf') format('truetype');
    font-weight: 300; /* Light */
}
@font-face {
    font-family: 'Raleway';
    src: url('fonts/ralewaymedium.ttf') format('truetype');
    font-weight: 500; /* Medium */
}
@font-face {
    font-family: 'Raleway';
    src: url('fonts/ralewaysemibold.ttf') format('truetype');
    font-weight: 600; /* Semibold */
}
@font-face {
    font-family: 'Raleway';
    src: url('fonts/ralewaybold.ttf') format('truetype');
    font-weight: 700; /* Bold */
}


/* --- RESET Y ESTILOS GLOBALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'DM Sans', sans-serif;
    background-color: #ebebeb;
    color: #000000;
    overflow-x: hidden;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
em {
    font-style: normal;
    font-weight: 500;
}
strong {
    font-weight: 600;
}


/* --- BARRA DE NAVEGACIÓN --- */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: transparent;
    transition: background-color 0.4s ease, border-bottom 0.4s ease;
}
.main-header.scrolled {
    position: fixed;
    background-color: #ebebeb;
    border-bottom: 1px solid #dcdcdc;
}
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
.logo-nav a {
    font-family: 'Le Petit Cochon', sans-serif;
    font-size: 3rem;
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: 2px;
    transition: color 0.4s ease;
}
.main-header.scrolled .logo-nav a {
    color: #000000;
}
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 35px;
}
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
}
.nav-links a {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 0.9rem;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    padding: 10px 0;
}
.main-header.scrolled .nav-links a,
.main-header.scrolled .lang-button {
    color: #000000;
}
.nav-links a:hover,
.nav-links a.active-link {
  font-weight: 500;
}
.nav-cta a {
    background-color: #fff;
    color: #000;
    border-radius: 5px;
    padding: 10px 15px;
    font-weight: 500;
}
.main-header.scrolled .nav-cta a {
    background-color: #000;
    color: #fff;
}
.nav-cta a:hover {
    background-color: #ddd;
}
.main-header.scrolled .nav-cta a:hover {
    background-color: #333;
}
.lang-dropdown {
    position: relative;
}
.lang-button {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    color: #FFFFFF;
    background-color: transparent;
    border: 1px solid #ffffff;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: color 0.4s ease, border-color 0.4s ease;
}
.main-header.scrolled .lang-button {
    border-color: #000;
}
.lang-options { display: none; position: absolute; background-color: white; box-shadow: 0 8px 16px rgba(0,0,0,0.1); z-index: 1; border-radius: 5px; margin-top: 5px; right: 0; }
.lang-options.show { display: block; }
.lang-option { color: black; padding: 10px 15px; text-decoration: none; display: block; font-family: 'Raleway', sans-serif; font-weight: 300; font-size: 0.9rem; }
.lang-option:hover { background-color: #f1f1f1; }


/* --- ESTILOS GENERALES DE SECCIONES --- */
main > .container > section, .footer-section .container, .carousel-section {
    padding-top: 120px;
    padding-bottom: 120px;
    border-bottom: 1px solid #dcdcdc;
}
.carousel-section {
     padding-top: 80px;
     padding-bottom: 80px;
}
.footer-section { border-bottom: none; }
h2.section-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 80px;
    text-align: center;
    letter-spacing: -0.03em;
}
p {
    font-size: 1rem;
    margin-bottom: 1em;
    letter-spacing: -0.5px;
    line-height: 1.45;
}
p:last-child { margin-bottom: 0; }

/* --- SECCIÓN HERO --- */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid #dcdcdc;
    overflow: hidden;
    background-color: #000;
}
@keyframes kenBurnsEffect {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}
.impact-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.impact-carousel.visible {
    opacity: 1;
}
.impact-carousel.animate {
    animation: kenBurnsEffect 6s linear forwards;
}
.impact-carousel.brindis-pos { background-position: center 20%; }
.impact-carousel.cena-pos { background-position: center 80%; }
.hero-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-text {
    padding: 20px;
    max-width: 1000px;
}
.hero-overlay h1 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 3.8vw;
    color: #FFFFFF;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    margin-bottom: 40px;
}
.hero-overlay p {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 1.3rem;
    color: #FFFFFF;
    line-height: 1.4;
    letter-spacing: -0.03em;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}
.hero-overlay p strong {
    font-weight: 600; /* Raleway Semibold */
}

/* --- SECCIÓN POR QUÉ HYPE --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px 40px;
}
.feature-item { text-align: left; }
.feature-item h3, .work-step h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #000000;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 20px;
}


/* --- SECCIÓN QUIÉN ESTÁ DETRÁS --- */
.content-row {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}
.text-column {
    flex: 1.5;
    text-align: left;
    padding-right: 4rem;
}
.image-column {
    flex: 1;
}
.content-row .section-title {
    text-align: left;
    margin-top: 0;
    margin-bottom: 40px;
}
.section-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #000;
    margin-bottom: 20px;
}
.content-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}


/* --- CARRUSEL GALERÍA --- */
.carousel-container { max-width: 100%; margin: auto; overflow: hidden; position: relative; }
.carousel-slide { display: flex; }
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.carousel-slide {
    animation: scroll 30s linear infinite;
}
.carousel-container:hover .carousel-slide {
    animation-play-state: paused;
}
.carousel-slide img { width: 450px; height: 500px; object-fit: cover; padding: 0 10px; flex-shrink: 0; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(255, 255, 255, 0.7); border: none; cursor: pointer; padding: 10px; width: 45px; height: 45px; border-radius: 50%; font-size: 24px; z-index: 10; }
.prev-btn { left: 15px; }
.next-btn { right: 15px; }


/* --- SECCIÓN CÓMO FUNCIONA --- */
.work-steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 20px;
}
.work-step { text-align: left; }


/* --- FOOTER (HABLEMOS) --- */
.footer-section { text-align: center; }
.footer-section .section-title {
    margin-bottom: 40px;
}
.contact-intro { max-width: 800px; margin: 0 auto 20px auto; }
.contact-email-info {
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.contact-form {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}
/* CAMBIO: Reducir tamaño de letra del mensaje de agradecimiento */
.thank-you-message h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.thank-you-message p {
    font-size: 1rem;
}

.form-row {
    display: flex;
    gap: 40px;
    margin-bottom: 25px;
}
.form-group {
    flex: 1;
    position: relative;
}
.form-group.full-width {
    flex-basis: 100%;
}
.contact-form label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 2px;
    display: block;
}
.form-description {
    font-size: 0.9rem;
    color: #777;
    font-weight: 300;
    margin-bottom: 8px;
    line-height: 1.4;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #aaaaaa;
    background-color: transparent;
    padding: 10px 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-bottom: 2px solid #000000;
}
.contact-form textarea {
    resize: vertical;
    min-height: 80px;
}
.submit-btn {
    display: block;
    margin: 40px auto 0 auto;
    padding: 15px 50px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    color: #FFFFFF;
    background-color: #000000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.submit-btn:hover {
    background-color: #333333;
}


/* --- ANIMACIONES --- */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.work-step:nth-child(2) { transition-delay: 0.2s; }
.work-step:nth-child(3) { transition-delay: 0.4s; }


/* --- RESPONSIVIDAD --- */
@media (max-width: 900px) {
    .container, .main-nav { padding: 0 30px; }
    h2.section-title { font-size: 1.8rem; }
    .hero-overlay h1 { font-size: 8vw; }
    .features-grid, .work-steps-container { grid-template-columns: 1fr 1fr; }
    .content-row { flex-direction: column; }
    .text-column { padding-right: 0; }
    .form-row { flex-direction: column; gap: 25px; margin-bottom: 0; }
    .form-group { margin-bottom: 25px; }
    .nav-right-group { display: none; }
}
@media (max-width: 768px) {
    .main-nav { flex-direction: row; justify-content: space-between; }
    .hero-overlay h1 { font-size: 12vw; }
    .hero-overlay p { font-size: 1rem; }
    .features-grid, .work-steps-container { grid-template-columns: 1fr; }
    .carousel-slide img { width: 320px; height: 400px; }
}