/* =========================================
   ESTILOS GENERALES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif; 
}

body {
    background-color: #FFFFFF; 
    color: #444444;
}

/* =========================================
   BARRA DE NAVEGACIÓN (NAVBAR) - ESCRITORIO
   ========================================= */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    height: 100px; 
    background-color: #444444; 
    padding-right: 40px; 
    position: relative; /* Necesario para que el menú móvil caiga exactamente debajo */
}

/* Sección del logo (Lado Izquierdo) */
.logo-container {
    background-color: #f1f1f1; 
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 45px;
}

.logo-img {
    height: 105px; 
    width: auto;
    display: block;
}

/* --- ESTILOS DEL BOTÓN HAMBURGUESA ANIMADO (Oculto en escritorio) --- */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #FFFFFF;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

/* Posición inicial de las líneas */
.hamburger-btn span:nth-child(1) {
    top: 0px;
}

.hamburger-btn span:nth-child(2) {
    top: 9px;
}

.hamburger-btn span:nth-child(3) {
    top: 18px;
}

/* Animación de transformación a 'X' cuando está activo */
.hamburger-btn.open span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger-btn.open span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Menú de enlaces centrales */
.nav-links {
    display: flex;
    list-style: none;
    gap: 35px; 
}

.nav-links a {
    text-decoration: none;
    color: #FFFFFF; 
    font-size: 0.9rem;
    font-weight: 300; 
    letter-spacing: 2px; 
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Estado activo para la página actual (se mantiene siempre) */
.nav-links a.active {
    color: #B65A32; 
    font-weight: 400; 
    text-shadow: 0px 4px 10px rgba(182, 90, 50, 0.4); 
}

/* Hover para los enlaces (SOLO EN ESCRITORIO) */
@media (hover: hover) {
    .nav-links a:hover {
        color: #B65A32; 
        font-weight: 400; 
        text-shadow: 0px 4px 10px rgba(182, 90, 50, 0.4); 
    }
}

/* Estilo del Botón de Contacto base */
.btn-contact {
    display: inline-block;
    text-decoration: none;
    background-color: #B65A32; 
    color: #FFFFFF; 
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 400; 
    letter-spacing: 1.5px;
    border: 2px solid #B65A32;
    border-radius: 4px; 
    transition: all 0.2s ease; 
    cursor: pointer;
}

/* Estado activo fijo (si la clase .active está presente por JS o HTML) */
.btn-contact.active {
    transform: translateY(-3px); 
    box-shadow: 0 6px 15px rgba(182, 90, 50, 0.4); 
}

/* Efecto HOVER (SOLO EN ESCRITORIO) */
@media (hover: hover) {
    .btn-contact:hover {
        transform: translateY(-3px); 
        box-shadow: 0 6px 15px rgba(182, 90, 50, 0.4); 
    }
}

/* Animación al hacer el clic físico (FUNCIONA EN CELULAR Y ESCRITORIO) */
.btn-contact:active {
    transform: translateY(0) scale(0.95); 
    box-shadow: 0 2px 5px rgba(182, 90, 50, 0.4); 
    background-color: #8a4628; /* Da una respuesta táctil en celular oscureciéndose un poco */
}

/* ==========================================================
   BARRA DE NAVEGACIÓN - DISEÑO MÓVIL Y RESPONSIVE
   ========================================================== */

/* 1. Ocultar el contacto del menú desplegable en pantallas de escritorio */
.mobile-contact {
    display: none;
}

/* 2. Reglas aplicadas únicamente en pantallas menores a 900px */
@media (max-width: 900px) { 
    .navbar {
        padding-right: 20px;
    }
    
    .logo-container {
        padding: 0 20px;
    }

    .hamburger-btn {
        display: block;
    }

    /* Ocultamos el botón original de la esquina derecha */
    .contact-container {
        display: none; 
    }

    /* Hacemos visible el contenedor del botón dentro de la lista móvil */
    .mobile-contact {
        display: block;
        margin-top: 15px; /* Separa el botón de News & Media */
    }

    /* ESTILOS BLINDADOS PARA EL BOTÓN EN CELULAR */
    /* Evita que las reglas generales de '.nav-links a' destruyan el diseño del botón */
    .nav-links .mobile-contact a.btn-contact {
        display: inline-block;
        background-color: #B65A32; 
        color: #FFFFFF !important; /* Forzamos texto blanco sobre el fondo oscuro */
        padding: 12px 35px;
        font-size: 0.9rem;
        font-weight: 400; 
        letter-spacing: 1.5px;
        border: 2px solid #B65A32;
        border-radius: 4px;
        box-shadow: 0 4px 10px rgba(182, 90, 50, 0.3);
        text-shadow: none; /* Evita que herede efectos de los otros enlaces */
        transition: all 0.2s ease;
    }

    /* Efectos del botón al tocarlo o pasar el dedo/cursor en celular */
    .nav-links .mobile-contact a.btn-contact:hover,
    .nav-links .mobile-contact a.btn-contact:active {
        background-color: #8a4628;
        border-color: #8a4628;
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(182, 90, 50, 0.4);
    }

    /* Estilos del menú desplegable con animación */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100px; 
        left: 0;
        width: 100%;
        background-color: #444444; 
        box-shadow: 0px 10px 20px rgba(0,0,0,0.3);
        padding: 0;
        text-align: center;
        z-index: 999;
        
        /* Animación de apertura: slide down + fade in */
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.3s ease, visibility 0s 0.3s;
    }

    .nav-links li {
        margin: 20px 0; 
    }

    .nav-links a {
        font-size: 1.1rem; 
    }

    /* Clase inyectada por JavaScript para abrir/cerrar el menú */
    .nav-links.show {
        opacity: 1;
        visibility: visible;
        max-height: 500px; /* Suficiente para todos los links */
        padding: 30px 0;
        transform: translateY(0);
        transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.35s ease, visibility 0s;
    }
}

/* =========================================
   SECCIÓN ABOUT US (ESTILO PREMIUM OSCURO CON SLIDER HD ENMARCADO)
   ========================================= */

.about-section {
    padding: 160px 5% 100px 5%; /* Padding superior amplio para limpiar el navbar fijo */
    background-color: #1A1A1A;
    border-bottom: 1px solid #222222;
}

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

.about-split-new {
    display: flex;
    gap: 60px;
    align-items: stretch;
}

.about-image-frame {
    flex: 1 1 45%;
    min-height: 520px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 6px solid #242424;
    position: relative;
    background-color: #222222;
}

.about-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.about-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    animation: aboutFadeSlide 15s infinite;
}

.about-slider img:nth-child(1) { animation-delay: 0s; opacity: 1; }
.about-slider img:nth-child(2) { animation-delay: 5s; }
.about-slider img:nth-child(3) { animation-delay: 10s; }

@keyframes aboutFadeSlide {
    0%, 25% { opacity: 1; }
    33%, 92% { opacity: 0; }
    100% { opacity: 1; }
}

.about-text-content {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #FFFFFF;
    text-align: left;
}

.about-text-content .section-tag {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: #B65A32;
    margin-bottom: 12px;
    display: inline-block;
}

.about-text-content h2 {
    font-size: 2.8rem;
    font-weight: 300;
    color: #FFFFFF;
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.about-text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #dddddd;
    font-weight: 300;
    margin-bottom: 35px;
}

.about-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.pillar-card {
    background-color: #242424;
    padding: 25px 20px;
    border-radius: 6px;
    border-top: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.pillar-card:hover {
    border-top-color: #B65A32;
    transform: translateY(-5px);
    background-color: #282828;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.pillar-icon {
    color: #B65A32;
    font-size: 1.6rem;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.1);
}

.pillar-card h4 {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.pillar-card p {
    color: #bbbbbb;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 300;
}

.btn-terra {
    display: inline-block;
    background-color: #B65A32;
    color: #FFFFFF;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.btn-terra:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(182, 90, 50, 0.35);
    background-color: #934623;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Adaptations --- */
@media (max-width: 992px) {
    .about-split-new {
        flex-direction: column;
        gap: 50px;
    }
    
    .about-image-frame {
        width: 100%;
        max-width: 500px;
        height: 500px;
        margin: 0 auto;
    }

    .about-text-content {
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .about-pillars {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%;
    }
    .about-image-frame {
        max-width: 100%;
        height: 400px;
    }
}

@media (max-width: 600px) {
    .about-image-frame {
        height: 340px;
    }
    .about-text-content h2 {
        font-size: 2.2rem;
    }
}


/* ================= SERVICES ACCORDION ================= */
/* ================= OUR EXPERTISE (SPLIT LAYOUT) ================= */
.expertise-split-section {
    background-color: #FFFFFF; /* Mantenemos fondo blanco limpio */
    padding: 80px 5%;
    text-align: center;
}

.expertise-header h2 {
    color: #444444; 
    font-size: 2.5rem; 
    font-weight: 300;
}

.subtitle {
    color: #B65A32;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.expertise-container {
    display: flex;
    position: relative;
    max-width: 1200px;
    margin: 60px auto 0;
    justify-content: space-between;
}

/* La línea Terra que divide la pantalla */
.center-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-color: #B65A32;
}

.expertise-column {
    width: 45%; /* Deja un 10% de espacio en el medio para la línea */
    text-align: left;
}

.column-title {
    text-align: center;
    color: #444444;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 40px;
    font-size: 1.5rem;
}

/* Cajas de cada servicio */
.expertise-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    background: #f9f9f9; /* Un gris muy tenue para resaltar la caja */
    padding: 20px;
    border-radius: 4px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

/* Efecto hover en la caja */
.expertise-item:hover {
    transform: translateX(5px); /* Se mueve un poco hacia el centro */
    box-shadow: 0 6px 15px rgba(68, 68, 68, 0.1);
    border-left: 3px solid #B65A32;
}

/* Los Círculos */
.circle {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-color: transparent;
    color: #B65A32; /* Número Terra */
    border: 2px solid #B65A32; /* Borde Terra */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 400;
    margin-right: 20px;
    transition: all 0.3s ease;
}

/* Inversión de color del círculo al pasar el ratón */
.expertise-item:hover .circle {
    background-color: #B65A32;
    color: #FFFFFF;
}

.text h4 {
    color: #444444;
    margin-bottom: 5px;
    font-weight: 400;
    letter-spacing: 1px;
}

.text p {
    color: #666666;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.5;
}

/* Diseño responsivo para móviles (quita la línea y apila todo) */
@media (max-width: 768px) {
    .expertise-container { flex-direction: column; }
    .center-line { display: none; }
    .expertise-column { width: 100%; margin-bottom: 50px; }
    .expertise-item:hover { transform: translateY(-5px); }
}


/* ================= PORTFOLIO GALLERY ================= */
.portfolio-section {
    padding: 80px 0;
    text-align: center;
    background-color: #444444;
}

.portfolio-section h2 {
    color: #FFFFFF;
    margin-bottom: 40px;
    font-weight: 300;
    font-size: 2.5rem;
    letter-spacing: 2px;
}

.gallery-slider {
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
}

.gallery-track {
    display: flex;
    width: calc(400px * 6); /* Ancho de imagen por cantidad */
    animation: scroll-gallery 20s linear infinite;
}

.gallery-track img {
    width: 400px;
    height: 300px;
    object-fit: cover;
    margin: 0 10px;
}

@keyframes scroll-gallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-400px * 3)); } /* Mitad del track para bucle infinito */
}

/* ================= CLIENTS MARQUEE ================= */
.clients-section {
    background-color: #444444;
    color: #FFFFFF;
    padding: 60px 0;
    text-align: center;
    overflow: hidden;
}

.clients-section h2 {
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 20px;
}

.marquee-track {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: #f1f1f1;
}

.marquee-track span {
    margin: 0 40px;
}
.btn-primary {
    display: inline-block;
    background-color: #B65A32;
    color: #FFFFFF;
    padding: 12px 35px;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.track-left { animation: marquee-left 25s linear infinite; }
.track-right { animation: marquee-right 25s linear infinite; }

@keyframes marquee-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ================= REVIEWS ================= */
.reviews-section {
    padding: 80px 5%;
    background-color: #f9f9f9;
    text-align: center;
}

.reviews-section h2 { color: #B65A32; font-weight: 300; font-size: 2.5rem; margin-bottom: 40px; }

.reviews-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.review-card {
    background-color: #FFFFFF;
    border-left: 4px solid #B65A32;
    padding: 30px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.review-card p { font-style: italic; color: #444444; margin-bottom: 20px; line-height: 1.6; }
.review-card h4 { color: #B65A32; font-weight: 400; }

/* ================= BLOG & VLOGS ================= */
/* ================= BLOG & VLOGS ================= */
.blog-section {
    padding: 100px 5%;
    text-align: center;
    background-color: #B65A32; /* Fondo terracota */
}

.blog-section h2 { 
    color: #FFFFFF; /* Título blanco */
    font-weight: 300; 
    font-size: 2.5rem; 
    margin-bottom: 60px;
    letter-spacing: 2px;
}

.blog-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.blog-card {
    background-color: #444444; /* Cuadros grises */
    border: 1px solid #555555; /* Borde gris suave */
    padding: 30px 25px;
    width: 100%;
    max-width: 350px;
    text-align: left;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    background-color: #3d3d3d; /* Tono de gris ligeramente diferente al hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.blog-img { 
    width: 100%; 
    height: 160px;
    overflow: hidden;
    margin-bottom: 20px; 
    background-color: #2d2d2d; /* Recuadro gris oscuro/charcoal para el icono */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    border: 1px solid #3d3d3d;
    transition: background-color 0.3s ease;
}

.blog-card:hover .blog-img {
    background-color: #222222; /* Se oscurece más al hover */
}

.blog-img i {
    color: #FFFFFF; /* Iconos en blanco */
    font-size: 3.8rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blog-card:hover .blog-img i {
    transform: scale(1.12);
}

.blog-category-badge {
    display: inline-block;
    background-color: #B65A32; /* Insignia terracota para contrastar */
    color: #FFFFFF;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.blog-card h3 { 
    color: #FFFFFF; /* Tonos en blanco */
    margin-bottom: 15px; 
    font-weight: 500; 
    font-size: 1.25rem;
    line-height: 1.4;
}

.blog-card p {
    color: #eeeeee; /* Tonos en blanco (blanco suave) */
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 30px;
    font-weight: 300;
    min-height: 90px; /* Mantener simetría */
}

.blog-card a {
    display: block;
    background-color: #FFFFFF; /* Botón en blanco */
    color: #444444; /* Texto en gris oscuro */
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid transparent;
}

.blog-card a:hover {
    background-color: #B65A32; /* Cambia a terracota al hover */
    color: #FFFFFF; /* Texto cambia a blanco */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}



/* =========================================
   PÁGINA DE SERVICIOS - GRID DE CATEGORÍAS
   ========================================= */
.services-comprehensive {
    padding: 80px 5%;
    background-color: #f9f9f9;
    text-align: center;
}

.services-header {
    margin-bottom: 80px; /* Aumentamos el espacio para separarlo de los bloques */
}

.services-header p {
    color: #666666;
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.header-line {
    width: 80px;
    height: 3px;
    background-color: #B65A32;
    margin: 25px auto 0 auto;
}

.services-grid-large {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
}

/* --- FIX DE SIMETRÍA --- */
.service-box {
    background-color: #FFFFFF;
    flex: 1 1 280px; 
    max-width: 350px;
    padding: 40px 20px;
    border-radius: 6px;
    border: 1px solid #eeeeee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    cursor: pointer;
    
    /* Convertimos la caja en Flex para alinear su contenido interno */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    
    text-decoration: none; /* Asegura que no tenga subrayado como enlace */
    color: #444444; /* Mantiene el color del texto oscuro de la marca */
}

.service-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(182, 90, 50, 0.1);
    border-color: #B65A32;
}

.service-box-icon {
    font-size: 2.5rem;
    color: #B65A32;
    margin-bottom: 20px;
}

.service-box h3 {
    color: #444444;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.btn-open-modal {
    /* Esta línea es la magia: empuja el botón siempre hasta abajo */
    margin-top: auto; 
    background: transparent;
    border: 1px solid #B65A32;
    color: #B65A32;
    padding: 8px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-box:hover .btn-open-modal {
    background-color: #B65A32;
    color: #FFFFFF;
}

/* Tarjeta especial para "Industries Served" */
.highlight-box { background-color: #444444; }
.highlight-box h3, .highlight-box .service-box-icon { color: #FFFFFF; }
.highlight-btn { border-color: #FFFFFF; color: #FFFFFF; }
.highlight-box:hover .highlight-btn { background-color: #FFFFFF; color: #444444; }
.hidden-modal-content { display: none; }

/* =========================================
   PÁGINAS DE DETALLES DE SERVICIOS
   ========================================= */
.service-detail-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 80px 20px;
}

.btn-back-services {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #B65A32;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.btn-back-services:hover {
    color: #8a4628;
    transform: translateX(-4px);
}

.service-details-header {
    margin-top: 30px;
    margin-bottom: 50px;
    text-align: left;
}

.service-details-header h1 {
    color: #444444;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.service-subtitle {
    color: #666666;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.5;
}

.service-detail-columns {
    display: flex;
    gap: 60px;
}

.service-detail-left {
    flex: 2;
}

.service-intro {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #444444;
    font-weight: 400;
    margin-bottom: 25px;
}

.service-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666666;
    font-weight: 300;
    margin-bottom: 45px;
}

.sub-services-title {
    color: #444444;
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.sub-services-list {
    list-style: none;
    padding: 0;
}

.sub-services-list li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
}

.sub-services-list li::before {
    content: '✓';
    color: #B65A32;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    font-size: 1.1rem;
}

.service-detail-right {
    flex: 1;
    min-width: 320px;
}

.sidebar-cta-card {
    background-color: #444444;
    padding: 45px 35px;
    border-radius: 6px;
    color: #FFFFFF;
    border-left: 4px solid #B65A32;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: sticky;
    top: 130px; /* Se queda pegada a medida que haces scroll */
}

.sidebar-cta-card h3 {
    color: #FFFFFF;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.sidebar-cta-card p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 300;
}

.cta-bullet-points {
    list-style: none;
    padding: 0;
    margin-bottom: 35px;
}

.cta-bullet-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    color: #eeeeee;
}

.cta-bullet-points li i {
    color: #B65A32;
    font-size: 1rem;
}

.cta-card-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #B65A32;
    color: #FFFFFF;
    padding: 14px 0;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid #B65A32;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-card-btn:hover {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .service-detail-columns {
        flex-direction: column;
        gap: 50px;
    }
    
    .service-detail-right {
        width: 100%;
    }
    
    .sidebar-cta-card {
        position: static; /* No sticky en móvil */
    }
}

@media (max-width: 600px) {
    .service-details-header h1 {
        font-size: 2.2rem;
    }
    .service-subtitle {
        font-size: 1.05rem;
    }
}

/* =========================================
   ACTUALIZACIÓN ESTÉTICA DEL FOOTER
   ========================================= */
.main-footer {
    background-color: #444444;
    color: #FFFFFF;
    padding: 60px 5% 20px 5%;
    border-top: 5px solid #B65A32;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    gap: 30px;
}

.footer-logo img {
    height: 200px; /* Tamaño ajustado para que no robe demasiada atención */
    width: auto;
}

.footer-center {
    flex: 1 1 300px;
    text-align: center;
    color: #FFFFFF;
}

.footer-center h3 {
    color: #B65A32;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-center p {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.footer-center a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-center a:hover {
    color: #B65A32;
}

.footer-center i {
    color: #B65A32;
    font-size: 0.95rem;
}

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

.footer-social a {
    color: #B65A32;
    font-size: 1.6rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid #B65A32;
}

.footer-social a:hover {
    color: #FFFFFF;
    background-color: #B65A32;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(182, 90, 50, 0.4);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: #aaaaaa;
}

/* Responsivo para el footer en celulares */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   PÁGINA DE PORTAFOLIO (PROYECTOS)
   ========================================= */
.portfolio-page {
    padding: 80px 5%;
    background-color: #FFFFFF;
}

/* Encabezado igual al de Servicios para mantener consistencia */
.portfolio-header {
    text-align: center;
    margin-bottom: 70px;
}

.portfolio-header h1,
.services-header h1 {
    color: #444444;
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.portfolio-header p {
    color: #666666;
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px; /* Separación entre cada proyecto */
}

/* --- FILA DEL PROYECTO --- */
.project-row {
    display: flex;
    align-items: center;
    background-color: #444444; /* Fondo gris de la paleta */
    border-radius: 8px;
    overflow: hidden; /* Mantiene la imagen dentro de los bordes curvos */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* Invierte el orden para el diseño alterno */
.project-row.reverse {
    flex-direction: row-reverse;
}

/* --- RECUADRO DE TEXTO (IZQUIERDA) --- */
.project-info {
    flex: 0 0 40%; /* Ocupa el 40% del ancho */
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.project-category {
    color: #B65A32;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.project-info h3 {
    color: #FFFFFF;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.2;
}

.project-info p {
    color: #dddddd;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 35px;
}

/* --- IMAGEN (DERECHA) --- */
.project-image {
    flex: 0 0 60%; /* Ocupa el 60% del ancho */
    height: 450px; /* Altura fija para que todas se vean igual de ordenadas */
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que la foto se deforme */
    transition: transform 0.6s ease; /* Efecto zoom al pasar el ratón */
}

.project-row:hover .project-image img {
    transform: scale(1.05); /* Zoom sutil a la foto */
}
/* =========================================
   SECCIÓN DE PROYECTO DESTACADO (VIDEO + TEXTO)
   ========================================= */
.project-showcase-section {
    padding: 80px 5%;
    background-color: #FFFFFF; /* Fondo blanco para todo el showcase destacado */
}

.showcase-header {
    text-align: center;
    margin-bottom: 50px;
}

.showcase-header h2 {
    font-size: 2.2rem;
    color: #444444; /* Color gris oscuro */
    font-weight: 300;
    letter-spacing: 2px;
}

/* Reutilizamos la línea naranja de tu diseño */
.showcase-header .center-line {
    width: 60px;
    height: 3px;
    background-color: #B65A32;
    margin: 15px auto 0;
}

.showcase-split {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilos del contenedor del video */
.showcase-video {
    flex: 1;
    border-radius: 8px;
    overflow: hidden; /* Asegura que el video no se salga de las esquinas redondeadas */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Sombra suave sobre fondo blanco */
}

.showcase-video video {
    width: 100%;
    display: block;
    object-fit: cover;
    background-color: #000; /* Fondo negro por si el video tarda en cargar */
}

/* Estilos del texto */
.showcase-text {
    flex: 1;
    color: #444444; /* Texto en gris oscuro */
}

.showcase-text h3 {
    font-size: 1.8rem;
    color: #444444; /* Título en gris oscuro */
    margin-bottom: 10px;
}

.showcase-text .location {
    color: #B65A32;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.showcase-text .description {
    color: #666666; /* Descripción en gris */
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1rem;
    font-weight: 300;
}

.project-highlights {
    list-style: none;
    margin-bottom: 30px;
}

.project-highlights li {
    color: #444444; /* Puntos destacados en gris oscuro */
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 400;
}

.project-highlights i {
    color: #B65A32; /* Checkmarks color Terra */
    margin-right: 10px;
}

/* =========================================
   PROYECTO DESTACADO - RESPONSIVO (MÓVIL)
   ========================================= */
@media (max-width: 900px) {
    .showcase-split {
        flex-direction: column; /* Apila el video arriba y texto abajo */
        gap: 30px;
    }

    .project-showcase-section {
        padding: 60px 20px;
    }

    .showcase-header h2 {
        font-size: 1.8rem;
    }
}

/* =========================================
   DISEÑO RESPONSIVO (MÓVILES Y TABLETS)
   ========================================= */
@media (max-width: 900px) {
    .project-row, 
    .project-row.reverse {
        /* En pantallas pequeñas, apilamos la imagen arriba y el texto abajo */
        flex-direction: column-reverse; 
    }

    .project-info {
        flex: 1 1 auto;
        width: 100%;
        padding: 40px 25px;
        text-align: center; /* Centramos el texto en celular */
        align-items: center;
    }

    .project-image {
        flex: 1 1 auto;
        width: 100%;
        height: 300px; /* Reducimos la altura de la foto en celular */
    }
}

/* =========================================
   PÁGINA DE CAREERS (BOLSA DE TRABAJO)
   ========================================= */
.careers-page {
    padding: 80px 5%;
    background-color: #FFFFFF;
}

/* Encabezado */
.careers-header {
    text-align: center;
    margin-bottom: 60px;
}

.careers-header h1 {
    color: #444444;
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.careers-header p {
    color: #666666;
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- SECCIÓN DE BENEFICIOS --- */
.benefits-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto 80px auto;
}

.benefit-item {
    flex: 1 1 250px;
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item i {
    font-size: 2.5rem;
    color: #B65A32;
    margin-bottom: 20px;
}

.benefit-item h4 {
    color: #444444;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.benefit-item p {
    color: #666666;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
}

/* --- SECCIÓN DE VACANTES (JOB OPENINGS) --- */
.job-openings-section {
    max-width: 1000px;
    margin: 0 auto;
}

.openings-title {
    color: #444444;
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 2px;
}

.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Tarjeta individual de vacante */
.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFFFFF;
    border: 1px solid #eeeeee;
    border-left: 4px solid #B65A32; /* Línea decorativa Terra */
    padding: 35px 40px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.job-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-left: 8px solid #B65A32; /* Se engrosa al pasar el ratón */
    transform: translateX(5px); /* Se mueve un poquito a la derecha */
}

/* Información de la vacante (Izquierda) */
.job-details {
    flex: 1;
    padding-right: 40px; /* Separación entre el texto y el botón */
}

.job-details h3 {
    color: #444444;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.job-meta {
    display: inline-block;
    color: #B65A32;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.job-meta i {
    margin-right: 5px;
}

.job-details p {
    color: #666666;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
}

/* Botón de acción (Derecha) */
.job-action {
    flex: 0 0 auto; /* Evita que el botón se estire o encoja */
}

/* --- DISEÑO RESPONSIVO PARA CAREERS --- */
@media (max-width: 768px) {
    .job-card {
        flex-direction: column; /* Apila el título y el botón */
        align-items: flex-start;
        padding: 25px;
    }

    .job-details {
        padding-right: 0;
        margin-bottom: 25px; /* Espacio antes del botón en celular */
    }

    .job-action {
        width: 100%;
    }

    .job-action .btn-terra {
        display: block;
        text-align: center;
        width: 100%; /* Botón ocupa todo el ancho en celular */
    }
}

/* =========================================
   PÁGINA DE NEWS & MEDIA (BLOGS Y VIDEOS)
   ========================================= */
.news-page {
    padding: 80px 5%;
    background-color: #FFFFFF;
}

/* Encabezado */
.news-header {
    text-align: center;
    margin-bottom: 60px;
}

.news-header h1 {
    color: #444444;
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.news-header p {
    color: #666666;
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- SECCIÓN DESTACADA (FEATURED) --- */
.featured-media-container {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto 80px auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.featured-video {
    flex: 1 1 55%;
    width: 100%;
}

/* Truco CSS para que el Iframe de YouTube sea 100% responsivo */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Proporción 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.featured-info {
    flex: 1 1 45%;
}

.featured-info h3 {
    color: #444444;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-info p {
    color: #666666;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 35px;
}

/* Etiquetas visuales para diferenciar el tipo de contenido */
.media-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.video-tag { background-color: #ffebee; color: #d32f2f; } /* Rojo suave para YouTube */
.article-tag { background-color: #e3f2fd; color: #1976d2; } /* Azul suave para industria */
.company-tag { background-color: #fdf3eb; color: #B65A32; } /* Terra para la empresa */

/* --- CUADRÍCULA DE BLOGS (LATEST UPDATES) --- */
.latest-updates-section {
    max-width: 1200px;
    margin: 0 auto;
}

.updates-title {
    color: #444444;
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 2px;
}

.news-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.news-card {
    flex: 1 1 320px;
    max-width: 380px;
    background-color: #FFFFFF;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.news-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

/* Overlay para miniaturas de video */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(182, 90, 50, 0.9); /* Color Terra translúcido */
    color: #FFFFFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.news-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.news-content {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-content h4 {
    color: #444444;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content p {
    color: #666666;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 25px;
}

.read-more-link {
    margin-top: auto; /* Empuja el enlace al fondo */
    color: #B65A32;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.read-more-link span {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more-link:hover {
    color: #444444;
}

.read-more-link:hover span {
    transform: translateX(5px); /* Desliza la flechita */
}

/* --- DISEÑO RESPONSIVO --- */
@media (max-width: 900px) {
    .featured-media-container {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
    }

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

/* =========================================
   PÁGINA DE CONTACTO (CONTACT US)
   ========================================= */
.contact-page {
    padding: 120px 5% 140px 5%;
    background-color: #FFFFFF; /* Fondo blanco */
    color: #444444;
}

/* Encabezado de Contacto */
.contact-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    animation: contactFadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.contact-header h1 {
    color: #444444; /* Gris oscuro sobre fondo blanco */
    font-size: 3.2rem;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.contact-header p {
    color: #666666; /* Gris suave sobre fondo blanco */
    font-size: 1.15rem;
    font-weight: 300;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Contenedor Principal (Formulario + Info) */
.contact-page .contact-container {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch; /* Estira ambos lados para que tengan el mismo alto */
}

/* --- FORMULARIO DE CONTACTO PREMIUM --- */
.contact-form {
    flex: 1 1 60%;
    background-color: #2D2D2D; /* Fondo gris oscuro premium */
    padding: 55px 50px;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3); /* Sombra pesada de lujo */
    border: 1px solid #3D3D3D; /* Borde sutil */
    opacity: 0;
    animation: contactFadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s forwards;
}

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

.form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-row input, 
.form-row select {
    flex: 1;
}

/* Estilos para etiquetas (labels) */
.contact-form label {
    color: #B65A32; /* Terracota para labels */
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Estilos para inputs, selects y textareas */
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid #3D3D3D;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
    font-size: 0.95rem;
    background-color: #1A1A1A; /* Entrada oscura */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box; /* Asegura que el padding no rompa el ancho */
}

/* Estilos de las opciones del dropdown */
.contact-form select option {
    background-color: #1A1A1A;
    color: #FFFFFF;
}

.contact-form textarea {
    resize: vertical; /* Solo permite hacer más alto el cuadro, no más ancho */
    margin-bottom: 25px;
}

/* Efecto al hacer clic en los campos de texto */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #B65A32;
    background-color: #222222;
    box-shadow: 0 0 12px rgba(182, 90, 50, 0.25);
}

/* Botón de Enviar */
.btn-terra {
    display: inline-block;
    background-color: #B65A32;
    color: #FFFFFF;
    padding: 18px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.btn-terra:hover {
    background-color: #FFFFFF;
    color: #B65A32;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(182, 90, 50, 0.2);
}

/* --- INFORMACIÓN DE CONTACTO Y MAPA --- */
.contact-info {
    flex: 1 1 40%;
    background-color: #2D2D2D;
    padding: 55px 50px;
    border-radius: 12px;
    border: 1px solid #3D3D3D;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: contactFadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.4s forwards;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info h3 {
    color: #FFFFFF;
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.contact-info p {
    color: #cccccc;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.75;
    margin-bottom: 30px;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 2px solid #3D3D3D;
}

.map-container iframe {
    display: block; /* Elimina un pequeño espacio en blanco que dejan los iframes por defecto */
}

/* --- DISEÑO RESPONSIVO PARA CONTACTO --- */
@media (max-width: 900px) {
    .contact-page .contact-container {
        flex-direction: column-reverse; /* Pone la info arriba y el formulario abajo en tablets */
        gap: 40px;
    }

    .contact-info {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column; /* Apila los inputs (Nombre y Apellido) en celulares */
        gap: 20px;
        margin-bottom: 0;
    }

    .form-row input, 
    .form-row select {
        margin-bottom: 20px;
    }

    .contact-form {
        padding: 25px 20px;
    }
    
    .contact-page {
        padding: 60px 5%;
    }
}

/* =========================================
   ESTILOS PARA LA SECCIÓN DE VLOGS
   ========================================= */
.section-vlogs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 80px 20px;
}

.vlogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.vlog-card {
    background-color: #FFFFFF;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #eeeeee;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.vlog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(182, 90, 50, 0.1);
    border-color: #B65A32;
}

.vlog-thumbnail-wrapper {
    position: relative;
    height: 190px;
    width: 100%;
}

.vlog-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    position: relative;
}

.vlog-thumbnail-placeholder .play-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.85);
    background-color: rgba(0, 0, 0, 0.4);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px; /* Aligns play triangle visually */
    transition: all 0.3s ease;
}

.vlog-card:hover .play-icon {
    transform: scale(1.1);
    background-color: #B65A32;
    color: #FFFFFF;
}

.vlog-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #FFFFFF;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 400;
}

.vlog-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vlog-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #B65A32;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
}

.vlog-info h3 {
    color: #444444;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 1.4;
}

.vlog-info p {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-watch-vlog {
    font-size: 0.85rem;
    font-weight: 600;
    color: #B65A32;
    text-decoration: none;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    margin-top: auto;
}

.btn-watch-vlog:hover {
    color: #8a4628;
}

/* =========================================
   ESTILOS PARA LA SECCIÓN DE OPINIONES
   ========================================= */
.section-opiniones {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 80px 20px;
}

.opiniones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 35px;
    margin-top: 50px;
    margin-bottom: 60px;
}

.opinion-card {
    background-color: #FFFFFF;
    padding: 40px 30px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #eeeeee;
    position: relative;
    transition: all 0.3s ease;
}

.opinion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(182, 90, 50, 0.08);
    border-color: #B65A32;
}

.opinion-rating {
    margin-bottom: 20px;
    color: #B65A32;
    font-size: 0.9rem;
}

.opinion-card .quote-icon {
    position: absolute;
    top: 40px;
    right: 30px;
    font-size: 2.2rem;
    color: rgba(182, 90, 50, 0.08);
}

.opinion-text {
    font-style: italic;
    color: #555555;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 25px;
    font-weight: 300;
}

.opinion-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-info h4 {
    color: #444444;
    font-size: 0.95rem;
    margin: 0 0 3px 0;
    font-weight: 500;
}

.author-info span {
    color: #888888;
    font-size: 0.8rem;
    font-weight: 300;
}

.opiniones-cta {
    text-align: center;
    padding: 50px 30px;
    background-color: #fcfcfc;
    border-radius: 6px;
    border: 1px solid #eeeeee;
    margin-top: 20px;
}

.opiniones-cta h3 {
    color: #444444;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.opiniones-cta p {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.opiniones-cta .btn-terra {
    max-width: 280px;
}

/* --- Responsive Adaptations --- */
@media (max-width: 768px) {
    .opiniones-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .vlogs-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* =========================================
   ESTILOS PARA LOS ARTÍCULOS DEL BLOG (BLOG DETAILS)
   ========================================= */
.article-wrapper {
    max-width: 850px;
    margin: 0 auto;
    padding: 60px 20px 80px 20px;
    font-family: 'Montserrat', sans-serif;
}

.btn-back-blogs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #B65A32;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: transform 0.2s ease, color 0.2s ease;
    margin-bottom: 40px;
}

.btn-back-blogs:hover {
    color: #8a4628;
    transform: translateX(-4px);
}

.article-header {
    text-align: left;
    margin-bottom: 40px;
}

.article-badge {
    background-color: rgba(182, 90, 50, 0.1);
    color: #B65A32;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.article-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    line-height: 1.25;
    color: #333333;
    margin-bottom: 20px;
    font-weight: 700;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #888888;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-body-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #444444;
    font-weight: 300;
}

.article-body-content p {
    margin-bottom: 30px;
}

.lead-paragraph {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333333;
    font-weight: 400;
    margin-bottom: 35px;
}

.drop-cap {
    font-family: 'Playfair Display', Georgia, serif;
    float: left;
    font-size: 4.5rem;
    line-height: 0.8;
    padding-top: 4px;
    padding-right: 12px;
    padding-left: 3px;
    color: #B65A32;
    font-weight: 700;
}

.article-body-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    color: #333333;
    margin-top: 50px;
    margin-bottom: 20px;
    font-weight: 700;
}

.article-bullets {
    list-style: none;
    padding: 0;
    margin-bottom: 35px;
}

.article-bullets li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    line-height: 1.7;
}

.article-bullets li::before {
    content: '•';
    color: #B65A32;
    font-size: 1.5rem;
    position: absolute;
    left: 5px;
    top: -2px;
}

/* Callout Box Style */
.article-callout-box {
    background-color: #fdfaf8;
    border-left: 4px solid #B65A32;
    padding: 35px 40px;
    border-radius: 0 6px 6px 0;
    margin: 45px 0;
    position: relative;
}

.article-callout-box p {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    line-height: 1.6;
    font-style: italic;
    color: #555555;
    margin: 0;
    position: relative;
    z-index: 2;
}

.callout-quote-icon {
    position: absolute;
    top: 15px;
    left: 25px;
    font-size: 4rem;
    color: rgba(182, 90, 50, 0.05);
    z-index: 1;
}

/* Table Style */
.article-table-container {
    overflow-x: auto;
    margin: 40px 0;
    border: 1px solid #eeeeee;
    border-radius: 6px;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.article-table th {
    background-color: #444444;
    color: #FFFFFF;
    padding: 15px 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.article-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eeeeee;
    color: #555555;
    line-height: 1.6;
}

.article-table tr:last-child td {
    border-bottom: none;
}

.article-table tr:nth-child(even) {
    background-color: #fafafa;
}

/* Pro-Tip Box Style */
.article-tip-box {
    background-color: #f9f9f9;
    border: 1px dashed #dddddd;
    padding: 30px;
    border-radius: 6px;
    margin: 40px 0;
}

.article-tip-box h3 {
    color: #B65A32;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-tip-box p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #666666;
    margin: 0;
}

/* =========================================
   CONTACT PAGE ANIMATIONS & SUCCESS POPUP
   ========================================= */
.contact-page {
    animation: contactFadeIn 0.8s ease-out forwards;
}

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

/* Success Alert Modal Popup */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-overlay.active {
    display: flex;
    opacity: 1;
}

.success-card {
    background-color: #FFFFFF;
    width: 90%;
    max-width: 480px;
    padding: 45px 35px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border-top: 6px solid #B65A32;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-overlay.active .success-card {
    transform: scale(1);
}

.success-checkmark-circle {
    width: 80px;
    height: 80px;
    background-color: rgba(182, 90, 50, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    color: #B65A32;
    font-size: 2.2rem;
}

.success-card h3 {
    color: #444444;
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
}

.success-card p {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 300;
}

.success-card .btn-terra {
    max-width: 200px;
    margin: 0 auto;
}

/* Responsive details */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 2.2rem;
    }
    .article-callout-box {
        padding: 25px 30px;
    }
    .article-callout-box p {
        font-size: 1.15rem;
    }
}