/* ============================================================================
   style.css — Hoja principal del sitio
   ============================================================================
   Se importa desde src/layouts/MainLayout.astro, asi que es GLOBAL: aplica a
   las 6 paginas. Junto con animations.css y responsive.css es todo el CSS del
   proyecto (no hay Tailwind ni preprocesador; es CSS plano).

   Ojo con el orden de carga, porque define quien gana:
       1. style.css        <- este archivo (base)
       2. animations.css   <- animaciones
       3. responsive.css   <- media queries, va al final para poder pisar
   Ademas, los bloques <style> dentro de un .astro se cargan DESPUES y solo
   aplican a ese archivo, asi que le ganan a lo de aqui.

   Contenido, en orden:
       1. VARIABLES (:root)      — colores, tipografia, espaciados
       2. RESET                  — normalizacion basica
       3. CONTENEDOR Y GRID      — .container, .row, .col-md-*
       4. TIPOGRAFIA             — encabezados, parrafos, enlaces, listas
       5. BOTONES                — .btn y variantes
       6. COMPONENTES            — header, hero, secciones, tarjetas, footer...

   AVISO: algunas clases definidas aqui ya no las usa ningun .astro (quedaron
   del sitio estatico anterior: galeria, lightbox, mapa, timeline, tarjetas de
   estadisticas). Antes de reutilizar una clase, busca si de verdad se aplica
   en algun lado; y antes de borrarla, confirma que no se use en ninguna de las
   6 paginas.
   ========================================================================= */

/* ----------------------------------------------------------------------------
   1. VARIABLES GLOBALES
   ----------------------------------------------------------------------------
   Todo el sitio usa estos valores con var(--nombre). Cambiar un color AQUI lo
   cambia en las 6 paginas de golpe: es el lugar correcto para ajustar la
   identidad visual, en vez de andar escribiendo colores sueltos por ahi.

   Si agregas una variable, ponla aqui y usala con var(); no dupliques codigos
   de color en los componentes.
   -------------------------------------------------------------------------- */
/* Base Styles */
:root {
    /* Color Palette
       --primary-color : azul oscuro corporativo. Es el color base de la marca.
                         Se usa en el header, los degradados de los encabezados
                         de pagina, los botones primarios y los titulos.
       --primary-hover : el mismo azul un poco mas claro. Para el estado hover
                         de los botones y como segundo tono de los degradados
                         de .page-header (4 de las 5 paginas internas).
       --secondary-color: verde. Acento: palomitas de las listas de features y
                         segundo tono del degradado en /productos y en el
                         bloque CTA del catalogo.
       --accent-color  : beige. Practicamente sin uso hoy; disponible.
       --dark-color    : gris muy oscuro. Color del texto normal del sitio
                         (se aplica en body) y de varios titulos.
       --light-color   : blanco. Fondos claros y texto sobre fondos oscuros.
                         Uselo en vez de escribir #fff suelto.
       --grey-light    : gris de fondo para las secciones alternas (.section-alt).
       --grey-medium   : gris de bordes (inputs, separadores).
       --grey-dark     : gris de texto secundario (descripciones, pies). */
    --primary-color: #1E3A4B; /* Deep blue */
    --primary-hover: #2A4A5C; /* Lighter blue for hover */
    --secondary-color: #4F7942; /* Green */
    --accent-color: #F5F5DC; /* Beige */
    --dark-color: #333333;
    --light-color: #FFFFFF;
    --grey-light: #F5F5F5;
    --grey-medium: #DDDDDD;
    --grey-dark: #666666;

    /* Success, Warning, Error States
       Estados del formulario de contacto: verde de exito y rojo de error los
       usa el <div id="formStatus"> de Contact.astro y los campos invalidos.
       --warning-color hoy no se usa en ningun lado. */
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;

    /* Typography
       Las DOS familias vienen de Google Fonts, cargadas en el <head> de
       MainLayout.astro. Si quitas ese <link>, estas variables se quedan sin
       fuente real y todo cae al sans-serif del sistema.
       --heading-font : Montserrat, para h1-h6.
       --body-font    : Open Sans, para el texto (se aplica en body). */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;

    /* Spacing (8px system)
       Escala de espaciados en multiplos de 8px. Usa estas variables en vez de
       numeros sueltos para que los margenes del sitio se mantengan parejos. */
    --space-xs: 0.5rem;  /* 8px */
    --space-sm: 1rem;    /* 16px */
    --space-md: 1.5rem;  /* 24px */
    --space-lg: 2rem;    /* 32px */
    --space-xl: 3rem;    /* 48px */

    /* Other Variables
       --border-radius : redondeo estandar de cajas e inputs.
       --box-shadow    : sombra estandar de las tarjetas.
       --transition    : duracion/curva estandar de las transiciones. Usala
                         para que todos los hover del sitio se sientan igual. */
    --border-radius: 4px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ----------------------------------------------------------------------------
   2. RESET
   ----------------------------------------------------------------------------
   Normalizacion minima: quita margenes y padding por defecto del navegador y
   pone box-sizing: border-box en todo (el padding no suma al ancho).
   `scroll-behavior: smooth` en html es lo que hace que el boton "volver
   arriba" y los enlaces con # se desplacen suavecito.
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* ----------------------------------------------------------------------------
   3. CONTENEDOR Y GRID PROPIO
   ----------------------------------------------------------------------------
   El sitio NO usa Bootstrap. Este es un mini-grid propio, escrito a mano, que
   solo imita los nombres de Bootstrap (.row, .col-md-*). Solo existe lo que
   esta definido aqui y en responsive.css: no esperes que funcione ninguna otra
   clase de Bootstrap, porque no esta.

   Como se usa (el patron que veras en todos los componentes):

       <div class="container">      <- centra y limita el ancho a 1200px
         <div class="row">          <- fila flex con margenes negativos
           <div class="col-md-6">   <- columna
           <div class="col-md-6">

   ⚠️ Las columnas solo se reparten el ancho a partir de 768px: eso se define en
   src/styles/responsive.css, NO aqui. Aqui todas las columnas son width: 100%
   (movil primero). Si agregas un ancho de columna nuevo, tienes que declararlo
   alla tambien o se vera a todo lo ancho en escritorio.

   Anchos disponibles hoy: .col-md-4, .col-md-6, .col-md-8, .col-md-12.
   (.col-md-2 y .col-md-3 estan definidos pero no los usa ninguna pagina.)
   -------------------------------------------------------------------------- */
/* Container and Grid */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

[class*="col-"] {
    padding-right: 15px;
    padding-left: 15px;
    width: 100%;
}

/* ----------------------------------------------------------------------------
   4. TIPOGRAFIA
   ----------------------------------------------------------------------------
   Estilos base de encabezados, parrafos, enlaces y listas. Se aplican por
   ETIQUETA, no por clase: cualquier <h2> que escribas en cualquier pagina ya
   sale con Montserrat y su tamaño, sin ponerle nada.

   Nota: `ul, ol` viene sin viñeta (list-style: none). Por eso las listas del
   sitio usan un icono <i class="fas fa-check"> como viñeta manual. Si quieres
   una lista con viñetas normales, tienes que devolverle el list-style tu.
   -------------------------------------------------------------------------- */
/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    color: var(--dark-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--space-sm);
}

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

a:hover {
    color: var(--secondary-color);
}

ul, ol {
    padding-left: var(--space-md);
    margin-bottom: var(--space-sm);
}

/* ----------------------------------------------------------------------------
   5. BOTONES
   ----------------------------------------------------------------------------
   Se usan siempre en pareja: la clase base .btn + una variante.
       <a class="btn btn-primary">   o   <button class="btn btn-primary">
   Funcionan igual en <a> y en <button>.

   Variantes definidas: .btn-primary (la unica que se usa hoy en las paginas),
   .btn-secondary y .btn-outline (definidas pero sin uso actual).

   Ojo: varias paginas y componentes vuelven a pintar .btn-primary en su propio
   <style> local (por ejemplo el CTA de la portada y el del catalogo, que lo
   invierten a fondo blanco). Si cambias el boton aqui y en alguna seccion no
   se ve el cambio, busca un <style> en ese .astro pisandolo.
   -------------------------------------------------------------------------- */
/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
    font-weight: 700;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

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

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

.btn-outline {
    background-color: transparent;
    color: var(--light-color);
    border-color: var(--light-color);
}

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

/* ============================================================================
   6. COMPONENTES
   ============================================================================
   De aqui hasta el final: los estilos de cada pieza del sitio, en el mismo
   orden en que aparecen las secciones. Cada bloque corresponde a un archivo
   de src/components/ o a una seccion de una pagina:

       Header & Navigation -> Header.astro (incluye el menu movil)
       Hero Section        -> Hero.astro
       Section Styles      -> clases comunes a todas las secciones
                              (.section, .section-alt, .section-title, .divider)
       About Section       -> About.astro
       Values Section      -> SIN USO (no queda ningun .astro que lo aplique)
       Services Section    -> Services.astro (pestañas .tab-pane)
       Model Section       -> BusinessModel.astro
       Gallery / Lightbox  -> SIN USO (herencia del sitio estatico anterior)
       Contact Section     -> Contact.astro (incluye el formulario)
       Map Section         -> SIN USO (nunca se agrego el mapa)
       Footer              -> Footer.astro
       Back to Top Button  -> el <a class="back-to-top"> de MainLayout.astro

   Los bloques marcados SIN USO se pueden ignorar; no los borres sin confirmar
   antes que no aparecen en ninguna de las 6 paginas.
   ========================================================================= */

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
    padding: var(--space-sm) 0;
    transition: var(--transition);
}

.header.scrolled {
    background-color: var(--light-color);
    box-shadow: var(--box-shadow);
    padding: var(--space-xs) 0;
}

.header.scrolled .nav-link {
    color: var(--dark-color);
}

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

.logo {
    display: block;
}

.logo img {
    height: 50px;
    transition: var(--transition);
}

.header.scrolled .logo img {
    height: 40px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--light-color);
    border-radius: 3px;
    transition: var(--transition);
}

.header.scrolled .nav-toggle span {
    background-color: var(--dark-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: var(--space-md);
}

.nav-link {
    color: var(--light-color);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    padding: 0.5rem;
    position: relative;
}

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

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 var(--space-md);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--light-color);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--light-color);
}

/* Section Styles */
.section {
    padding: var(--space-xl) 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: var(--space-sm);
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--grey-dark);
    max-width: 700px;
    margin: 0 auto;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 0 auto var(--space-md);
}

/* About Section */
.about-img {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

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

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

.about-content {
    padding: var(--space-md) 0;
}

.about-content h3 {
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

.about-content h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.about-card {
    display: flex;
    margin-top: var(--space-md);
    padding: var(--space-md);
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: var(--space-md);
}

.about-text h4 {
    margin-bottom: var(--space-xs);
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.value-card {
    background-color: var(--light-color);
    padding: var(--space-md);
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.value-card h3 {
    margin-bottom: var(--space-xs);
}

/* Services Section */
.services-tabs {
    margin-top: var(--space-lg);
}

.tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--grey-medium);
}

.tab-btn {
    background: none;
    border: none;
    padding: var(--space-sm) var(--space-md);
    margin: 0 var(--space-xs);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--grey-dark);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    margin-top: var(--space-lg);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.service-img {
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

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

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

.service-content {
    padding: var(--space-md) 0;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: var(--space-md);
}

.service-features li {
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
}

.service-features li i {
    color: var(--success-color);
    margin-right: var(--space-xs);
}

/* Model Section */
.modelo-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-md) 0;
}

.modelo-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-lg);
}

.timeline-dot {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 4px solid var(--light-color);
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: var(--space-md);
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    top: 15px;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--light-color);
    transform: rotate(45deg);
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    top: 15px;
    right: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--light-color);
    transform: rotate(45deg);
}

.modelo-content {
    padding: var(--space-lg);
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: var(--space-md);
    color: var(--dark-color);
}

.modelo-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    font-size: 1.8rem;
}

.modelo-features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-lg);
}

.modelo-features li {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.modelo-features li i {
    color: var(--success-color);
    margin-right: var(--space-sm);
}

.modelo-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    color: var(--grey-dark);
}

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

.modelo-stats {
    margin-top: var(--space-xl);
}

.stat-card {
    text-align: center;
    padding: var(--space-md);
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
}

.stat-title {
    font-size: 1.1rem;
    color: var(--dark-color);
}

/* Gallery Section */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    color: var(--light-color);
    padding: 0 var(--space-sm);
}

.gallery-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
    color: var(--light-color);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80%;
    object-fit: contain;
}

.lightbox-caption {
    margin: auto;
    width: 80%;
    max-width: 900px;
    text-align: center;
    color: var(--light-color);
    padding: var(--space-sm) 0;
    height: 150px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--light-color);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Contact Section */
.contact-info {
    padding-right: var(--space-md);
}

.contact-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: var(--space-md);
}

.contact-details h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.25rem;
}

.contact-form {
    background-color: var(--light-color);
    padding: var(--space-md);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--grey-medium);
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 75, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

#formStatus {
    margin-top: var(--space-md);
    padding: var(--space-sm);
    border-radius: var(--border-radius);
    display: none;
    font-weight: 600;
}

#formStatus.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
    display: block;
}

#formStatus.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
    display: block;
}

#formStatus.loading {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
    display: block;
}

/* Map Section */
.map-section {
    height: 450px;
}

.map-container {
    width: 100%;
    height: 100%;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding-top: var(--space-xl);
}

.footer-top {
    padding-bottom: var(--space-lg);
}

.footer-logo {
    margin-bottom: var(--space-md);
}

.footer-logo img {
    height: 50px;
}

.footer-about {
    margin-bottom: var(--space-md);
    color: var(--grey-medium);
}

.social-links {
    display: flex;
    margin-bottom: var(--space-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: var(--space-xs);
    color: var(--light-color);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.footer-title {
    color: var(--light-color);
    margin-bottom: var(--space-md);
    font-size: 1.25rem;
    position: relative;
    padding-bottom: var(--space-xs);
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: var(--grey-medium);
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--light-color);
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: flex-start;
    color: var(--grey-medium);
}

.footer-contact li i {
    margin-right: var(--space-xs);
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-md) 0;
    text-align: center;
}

.copyright {
    color: var(--grey-medium);
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    box-shadow: var(--box-shadow);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
}/* Modern Scroll Animations */

/* Base animation setup */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.animate-on-scroll.in-view {
    opacity: 1;
}

/* Fade In Animation - Elegant entrance */
.fade-in {
    animation: fadeInSmooth 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

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

/* Staggered fade in for hero content */
.fade-in:nth-child(1) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.4s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.6s;
}

/* Slide animations with easing */
[data-animation="fade-right"] {
    transform: translateX(-60px);
    opacity: 0;
}

[data-animation="fade-right"].in-view {
    transform: translateX(0);
    opacity: 1;
}

[data-animation="fade-left"] {
    transform: translateX(60px);
    opacity: 0;
}

[data-animation="fade-left"].in-view {
    transform: translateX(0);
    opacity: 1;
}

[data-animation="fade-up"] {
    transform: translateY(60px);
    opacity: 0;
}

[data-animation="fade-up"].in-view {
    transform: translateY(0);
    opacity: 1;
}

[data-animation="fade-down"] {
    transform: translateY(-60px);
    opacity: 0;
}

[data-animation="fade-down"].in-view {
    transform: translateY(0);
    opacity: 1;
}

/* Scale animations */
[data-animation="zoom-in"] {
    transform: scale(0.85);
    opacity: 0;
}

[data-animation="zoom-in"].in-view {
    transform: scale(1);
    opacity: 1;
}

[data-animation="zoom-out"] {
    transform: scale(1.15);
    opacity: 0;
}

[data-animation="zoom-out"].in-view {
    transform: scale(1);
    opacity: 1;
}

/* Rotate + Scale animation */
[data-animation="rotate-in"] {
    transform: rotate(-10deg) scale(0.9);
    opacity: 0;
}

[data-animation="rotate-in"].in-view {
    transform: rotate(0) scale(1);
    opacity: 1;
}

/* Blur to focus animation */
[data-animation="blur"] {
    filter: blur(10px);
    opacity: 0;
}

[data-animation="blur"].in-view {
    filter: blur(0);
    opacity: 1;
}

/* Flip animation */
[data-animation="flip"].in-view {
    animation: flipIn 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes flipIn {
    0% {
        transform: perspective(800px) rotateY(90deg);
        opacity: 0;
    }
    50% {
        transform: perspective(800px) rotateY(-5deg);
        opacity: 1;
    }
    100% {
        transform: perspective(800px) rotateY(0deg);
        opacity: 1;
    }
}

/* Elastic bounce animation */
[data-animation="bounce"].in-view {
    animation: elasticBounce 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes elasticBounce {
    0% {
        transform: translateY(100px) scale(0.5);
        opacity: 0;
    }
    60% {
        transform: translateY(-20px) scale(1.05);
        opacity: 1;
    }
    80% {
        transform: translateY(5px) scale(0.95);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Staggered delays for list items and cards */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }
[data-delay="700"] { transition-delay: 0.7s; }
[data-delay="800"] { transition-delay: 0.8s; }

/* Parallax effect for backgrounds and images */
.parallax {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Section title animations */
.section-title {
    position: relative;
    overflow: hidden;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.in-view::after {
    width: 100%;
}

/* Divider animation */
.divider {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.divider.in-view {
    transform: scaleX(1);
}

/* Card hover effects - Modern and smooth */
.feature-card,
.service-card,
.value-card,
.about-card,
.contact-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-card::before,
.service-card::before,
.value-card::before,
.about-card::before,
.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 75, 0.05), rgba(79, 121, 66, 0.05));
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: inherit;
    z-index: 0;
}

.feature-card:hover::before,
.service-card:hover::before,
.value-card:hover::before,
.about-card:hover::before,
.contact-card:hover::before {
    opacity: 1;
}

.feature-card:hover,
.service-card:hover,
.value-card:hover,
.about-card:hover,
.contact-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Image hover effects */
.about-img img,
.service-img img,
.modelo-img img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
}

.about-img:hover img,
.service-img:hover img,
.modelo-img:hover img {
    transform: scale(1.08) rotate(1deg);
    filter: brightness(1.1) contrast(1.05);
}

/* Button animations - Premium feel */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Nav link animations */
.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Logo animation */
.logo img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 0 transparent);
}

.logo:hover img {
    transform: scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Social links with modern hover */
.social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    transform: translateY(-4px) rotate(5deg) scale(1.1);
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.float {
    animation: float 4s ease-in-out infinite;
}

/* Pulse animation for attention */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(30, 58, 75, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(30, 58, 75, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(30, 58, 75, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Shimmer effect for loading states */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Shake animation for errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

.shake {
    animation: shake 0.5s;
}

/* Slide in for mobile menu */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.nav-menu.active {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Progress bar animation */
@keyframes progress {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.progress-bar {
    transform-origin: left;
    animation: progress 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Back to top button animation */
.back-to-top {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Breadcrumb animation */
.breadcrumb {
    overflow: hidden;
}

.breadcrumb > * {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.breadcrumb > *:nth-child(1) { animation-delay: 0.1s; }
.breadcrumb > *:nth-child(2) { animation-delay: 0.2s; }
.breadcrumb > *:nth-child(3) { animation-delay: 0.3s; }

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

/* Feature icon animation */
.feature-icon,
.contact-icon,
.about-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon,
.contact-card:hover .contact-icon,
.about-card:hover .about-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 20px rgba(30, 58, 75, 0.3);
}

/* Service features list animation */
.service-features li,
.modelo-features li {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-features.in-view li,
.modelo-features.in-view li {
    opacity: 1;
    transform: translateX(0);
}

.service-features li:nth-child(1),
.modelo-features li:nth-child(1) { transition-delay: 0.1s; }
.service-features li:nth-child(2),
.modelo-features li:nth-child(2) { transition-delay: 0.2s; }
.service-features li:nth-child(3),
.modelo-features li:nth-child(3) { transition-delay: 0.3s; }
.service-features li:nth-child(4),
.modelo-features li:nth-child(4) { transition-delay: 0.4s; }
.service-features li:nth-child(5),
.modelo-features li:nth-child(5) { transition-delay: 0.5s; }
.service-features li:nth-child(6),
.modelo-features li:nth-child(6) { transition-delay: 0.6s; }

/* Form input focus animations */
.form-group input:focus,
.form-group textarea:focus {
    transform: scale(1.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tab button animations */
.tab-btn {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn.active::after,
.tab-btn:hover::after {
    width: 100%;
}

.tab-btn:hover {
    transform: translateY(-2px);
}

/* Smooth page transitions */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: pageEnter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* Responsive Styles */

/* Extra Small Devices (Phones) */
@media only screen and (max-width: 575px) {
    /* Typography */
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Hero Section */
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--light-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 30px;
        transition: 0.4s;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        margin: 0 0 20px 0;
        width: 100%;
    }
    
    .nav-link {
        color: var(--dark-color);
        font-size: 1.1rem;
        width: 100%;
        display: block;
        padding: 0.5rem 0;
    }
    
    /* Services */
    .tab-nav {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-btn {
        margin: 0.25rem 0;
        width: 100%;
        border-bottom: 1px solid var(--grey-medium);
    }
    
    .tab-btn::after {
        bottom: -1px;
    }
    
    /* Timeline */
    .modelo-timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -10px;
        right: auto;
    }
    
    /* Gallery */
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-card {
        flex-direction: column;
    }
    
    .contact-icon {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    /* Footer */
    .footer-top {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Small Devices (Tablets) */
@media only screen and (min-width: 576px) and (max-width: 767px) {
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--light-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        transition: 0.4s;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        margin: 0 0 20px 0;
        width: 100%;
    }
    
    .nav-link {
        color: var(--dark-color);
        font-size: 1.1rem;
        width: 100%;
        display: block;
        padding: 0.5rem 0;
    }
    
    /* Timeline */
    .modelo-timeline::before {
        left: 40px;
    }
    
    .timeline-dot {
        left: 40px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -10px;
        right: auto;
    }
    
    /* Gallery */
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer [class*="col-"] {
        margin-bottom: var(--space-md);
    }
}

/* Medium Devices (Laptops) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    /* Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--light-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        transition: 0.4s;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        margin: 0 0 20px 0;
        width: 100%;
    }
    
    .nav-link {
        color: var(--dark-color);
        font-size: 1.1rem;
        width: 100%;
        display: block;
        padding: 0.5rem 0;
    }
    
    /* Columns */
    .col-md-6 {
        width: 50%;
    }
    
    .col-md-4 {
        width: 33.33%;
    }
    
    .col-md-3 {
        width: 25%;
    }
    
    .col-md-2 {
        width: 16.66%;
    }
    
    /* Footer */
    .footer [class*="col-"] {
        margin-bottom: var(--space-md);
    }
}

/* Large Devices (Desktops) */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    /* Columns */
    .col-md-6 {
        width: 50%;
    }
    
    .col-md-4 {
        width: 33.33%;
    }
    
    .col-md-3 {
        width: 25%;
    }
    
    .col-md-2 {
        width: 16.66%;
    }
}

/* Extra Large Devices */
@media only screen and (min-width: 1200px) {
    /* Columns */
    .col-md-6 {
        width: 50%;
    }
    
    .col-md-4 {
        width: 33.33%;
    }
    
    .col-md-3 {
        width: 25%;
    }
    
    .col-md-2 {
        width: 16.66%;
    }
}