
.whatsapp-btn {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-icon {
  width: 35px;
  height: 35px;
  fill: #ffffff;
}

/* ==========================================================================
   PLACA SOBREPUESTA CON DESENFOQUE (OVERLAY)
   ========================================================================== */
.placa-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4); /* Fondo semi-transparente oscuro */
    backdrop-filter: blur(8px);            /* Desenfoca la web de fondo */
    -webkit-backdrop-filter: blur(8px);    /* Soporte para Safari */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;                         /* Se asegura de estar sobre todo */
    padding: 20px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Ocultar la placa con desvanecimiento */
.placa-overlay.oculto {
    opacity: 0;
    display: none;
    visibility: hidden;
    pointer-events: none;
    transition: none;
}

/* Tarjeta Central */
.placa-contenido {
    background-color: #FFFFFF;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    border-top: 4px solid #A37A3E; /* Color dorado/acento de Herencia Criolla */
}

.placa-contenido h2 {
    font-family: 'Cinzel', serif; /* O la tipografía de tus títulos */
    color: #1A2229;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.placa-contenido p {
    color: #62686E;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Cruz de cierre en la esquina superior derecha */
.placa-cerrar-cruz {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.placa-cerrar-cruz:hover {
    color: #1A2229;
}

/* Botón principal de cierre */
.placa-btn {
    background-color: #1A2229;
    color: #FFFFFF;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.placa-btn:hover {
    background-color: #A37A3E;
}


/* ==========================================================================
   1. VARIABLES Y ESTILOS BASE
   ========================================================================== */
:root {
    --primary-color: #132149;      /* Verde oscuro elegante */
    --accent-color: #C59B27;       /* Dorado/Mostaza para botones y detalles */
    --bg-light: #F9F8F3;           /* Blanco hueso/crema suave */
    --text-color: #333333;
    --text-muted: #666666;
    --white: #FFFFFF;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-serif: "Cinzel", serif; 
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

p, li, span, input{font-family: "Plus Jakarta Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* ==========================================================================
   2. TOP BAR & HEADER
   ========================================================================== */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    gap: 10px;
}

header {
    background-color: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 1px;
    line-height: 1.1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links > li > a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 15px 0;
    display: block;
    transition: color 0.3s;font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.nav-links > li > a:hover {
    color: var(--accent-color);
}

.flecha {
    font-size: 0.75rem;
    margin-left: 2px;
    transition: transform 0.3s;
}

/* --- ESTRUCTURA DEL MEGA MENÚ (OCUPA EL 100% DE LA PANTALLA) --- */
.mega-menu {
    position: absolute;
    top: 80%;
    left: 0;
    width: 100vw; /* Fuerza el 100% del ancho de la pantalla */
    margin-left: calc(-50vw + 50%); /* Centra el ancho completo relativo a la ventana */
    background-color: var(--white);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    border-top: 3px solid var(--accent-color);
    
    /* Efecto para ocultar y mostrar suavemente */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1100;
}

/* Contenedor interno alineado con el contenido de la web */
.mega-menu-content {
    max-width: 90%;
    margin: 0 auto;
    padding: 30px 5%;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columnas 
    /* grid-template-columns: [first content-start] 1fr [content-end sidebar-start] 300px [lastline];*/
    gap: 40px;
    text-align: left;
}

.mega-col h4 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
    border-bottom: 1px solid #EAEAEA;
    padding-bottom: 8px;
    line-height: normal;
}

.mega-col ul {
    list-style: none;
}

.mega-col ul li {
    margin-bottom: 10px;
}

.mega-col ul a span{
    font-style: italic;
    font-weight: normal;
    color: var(--accent-color);
}

.mega-col ul a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.mega-col ul a:hover {
    color: var(--text-color);
    padding-left: 5px; /* Pequeño desplazamiento dinámico */
}

/* Tarjeta destacada dentro del mega menú */
.mega-destacado {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
}

.mega-destacado img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.mega-destacado p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.mega-btn {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.85rem;
    text-decoration: none;
}

/* ==========================================================================
   MEGA MENÚ NATIVO MEDIANTE CLIC (.open)
   ========================================================================== */

/* Asegurar que el botón desplegable tenga cursor interactivo */
.dropdown-btn {
    cursor: pointer;
    user-select: none;
}

/* Ocultar el Mega Menú por defecto en todas las pantallas */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: var(--white);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    border-top: 3px solid var(--accent-color);
    
    /* Transición de desvanecimiento al abrir/cerrar */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 1100;
}

/* ESTADO ABIERTO POR CLIC (Clase .open) */
.mega-dropdown.open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Rotación de la flecha al abrir */
.mega-dropdown.open .flecha {
    transform: rotate(180deg);
}

/* --- ADAPTACIÓN RESPONSIVE PARA MÓVILES (Max-Width: 992px) --- */
@media (max-width: 992px) {
    .mega-menu {
        position: static;
        width: 100%;
        margin-left: 0;
        box-shadow: none;
        border-top: none;
        background-color: var(--bg-light);
        
        /* En móvil se oculta en el flujo con display: none */
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .mega-dropdown.open .mega-menu {
        display: block;
    }
}

/* --- BOTÓN EN EL HEADER --- */
.btn-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-header:hover {
    background-color: var(--accent-color);
}



nav ul {
    display: grid;
    list-style: none;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

.btn-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s;
}

.btn-header:hover {
    background-color: var(--accent-color);
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('img/slide1.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 60px 8%;
    color: var(--white);
}

.hero-content {
    max-width: 650px;
}

.hero-subtitle {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #E2D193;
    display: block;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.2rem); /* Escala dinámicamente según la pantalla */
    line-height: 1.2;
    margin-bottom: 15px;font-weight: 300;
}

.hero p {
    font-size: 1.05rem;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
}
.btn-primary:hover {background-color: var(--white);
    color:var(--accent-color) ;
    border:1px solid var(--accent-color) ;
}
    

.btn-secondary {
    border: 1px solid var(--white);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
}

/* ==========================================================================
   4. SECCIONES Y TARJETAS
   ========================================================================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 40px 8%;
    background-color: var(--white);
    text-align: center;
}

.feature-card h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin: 10px 0;
    color: var(--primary-color);
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.section {
    padding: 60px 8%;
    text-align: center;
}

.section.cat {
    padding: 0px 8% 60px 0px;
    text-align: center;
}

.section-fluid {
    padding: 60px 1% 1%;
    text-align: center;
}

.section-tag {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    display: block;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--primary-color);
    margin-bottom: 40px;
    font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.section-title.int {
    margin-bottom: 0px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 10px;
}

.service-card {
    background: var(--white);
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    overflow: hidden;
    padding: 7px;
    transition: transform 0.3s;
    text-align: left;
    position: relative;
}

.service-card .precio{
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 7px 15px;
    background: rgba(255,255, 255, .7);
    color: #000;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 2px 2px 2px #C59B27;
    border: 1px solid #C59B27;
}

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

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

.service-card h3 {
    font-family: var(--font-serif);
    margin: 15px 0 5px;
    font-size: 1.1rem;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 2px 0 ;
}

.service-card p span{
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 300;
}

.service-card a {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
}

/* --- ABOUT SECTION --- */
.about-container {
    display: flex;
    gap: 40px;
    text-align: left;
}

.about-img {
    flex: 1;
    width: 100%;
    margin: -16px 0 0 ;
}

.about-img img {
    width: 100%;
    height: auto;
    border-radius: 0px 20px 20px 0px;
    display: block;
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px 0 0;
}

.about-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-text ul {
    list-style: none;
    margin: 20px 0;
}

.about-text li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* --- GALLERY GRID --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

/* ==========================================================================
   CARRUSEL DE RESEÑAS
   ========================================================================== */
.reseñas-section {
    background-color: var(--white);
    padding: 70px 8%;
    overflow: hidden;
}

.carrusel-contenedor {
    position: relative;
    max-width: 1200px;
    margin: 30px auto 0;
    display: flex;
    align-items: center;
}

.carrusel-track-container {
    width: 100%;
    overflow: hidden;
    padding: 10px 5px;
}

.carrusel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

/* Tamaño de las tarjetas en la fila */
.carrusel-slide {
    min-width: calc(33.333% - 13.33px); /* Muestra 3 tarjetas a la vez en PC */
    box-sizing: border-box;
}

.reseña-card {
    background-color: var(--bg-light);
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 30px 25px 25px;
    position: relative;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reseña-comillas {
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: var(--font-titulos);
    font-size: 3.5rem;
    color: var(--accent-color);
    opacity: 0.25;
    line-height: 1;
}

.reseña-estrellas {
    color: var(--accent-color);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.reseña-texto {
    font-size: 0.92rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
}

.reseña-usuario {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 15px;
}

.usuario-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.usuario-info h4 {
    font-family: var(--font-titulos);
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.usuario-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

/* Botones Flecha */
.carrusel-btn {
    background: var(--white);
    border: 1px solid #EAEAEA;
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.carrusel-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.prev-btn { margin-right: 15px; }
.next-btn { margin-left: 15px; }

/* Puntos de navegación (Dots) */
.carrusel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #DDDDDD;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* RESPONSIVE: Adaptación en Pantallas Pequeñas */
@media (max-width: 992px) {
    .carrusel-slide {
        min-width: calc(50% - 10px); /* 2 tarjetas a la vez en Tablets */
    }
}

@media (max-width: 650px) {
    .carrusel-slide {
        min-width: 100%; /* 1 tarjeta a la vez en Celulares */
    }

    .prev-btn, .next-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   SECCIÓN GALERÍA MASONRY
   ========================================================================== */
.galeria-section {
    padding: 60px 8%;
    background-color: var(--bg-light);
}

/* Filtros opcionales */
.galeria-filtros {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filtro-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtro-btn.active,
.filtro-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- DISPOSICIÓN MASONRY NATIVA --- */
.masonry-grid {
    /* Muestra 3 columnas en computadoras por defecto */
    column-count: 4;
    column-gap: 20px;
}

.masonry-item {
    /* Evita que una imagen se corte o divida entre dos columnas */
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background-color: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.masonry-item img {
    width: 100%;
    height: auto; /* Mantiene la proporción natural de cada foto */
    display: block;
    transition: transform 0.5s ease;
}

.masonry-item:hover img {
    transform: scale(1.05); /* Efecto zoom suave al hacer hover */
}

/* --- OVERLAY CON INFORMACIÓN AL PASAR EL MOUSE --- */
.masonry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-align: left;
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
    visibility: visible;
}

.masonry-overlay h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 3px;
    color: #E2D193;
}

.masonry-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* --- ADAPTACIÓN RESPONSIVE EN DISPOSITIVOS --- */
@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2; /* 2 Columnas en Tablets */
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1; /* 1 Columna en Celulares */
    }
    
    .galeria-section {
        padding: 40px 5%;
    }
}

/* ==========================================================================
   SECCIÓN CONTACTO Y FORMULARIO
   ========================================================================== */
.contacto-section {
    background-color: var(--bg-light);
    padding: 70px 8%;
}

.contacto-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

/* Info Lateral */
.contacto-info h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contacto-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    font-size: 1.5rem;
    background-color: var(--white);
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.info-item h4 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 2px;
}

.info-item p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Tarjeta del Formulario */
.contacto-form-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid #EAEAEA;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.campo-full {
    grid-column: span 2;
}

.formulario-contacto .campo {
    display: flex;
    flex-direction: column;
}

.formulario-contacto label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.formulario-contacto input,
.formulario-contacto select,
.formulario-contacto textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: var(--font-main);
    background-color: #FAFAFA;
    transition: border-color 0.3s, background-color 0.3s;
}

.formulario-contacto input:focus,
.formulario-contacto select:focus,
.formulario-contacto textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--white);
}

.btn-submit {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--white);
    color:var(--accent-color) ;
    border:1px solid var(--accent-color) ;
}

/* Adaptación para pantallas táctiles/móviles */
@media (max-width: 850px) {
    .contacto-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .campo-full {
        grid-column: span 1;
    }

    .contacto-form-card {
        padding: 25px 20px;
    }

    .contacto-section {
        padding: 40px 5%;
    }
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 8% 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-col h4 {
    font-family: var(--font-serif);
    margin-bottom: 15px;
    color: #E2D193;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #D1D1D1;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #AAAAAA;
}

/* ==========================================================================
   6. MEDIA QUERIES (RESPONSIVE PARA TABLETS Y MÓVILES)
   ========================================================================== */

/* --- Tablets y pantallas medianas (Menos de 992px) --- */
@media (max-width: 992px) {
    header {
        flex-wrap: wrap;
        gap: 15px;
    }

    .about-container {
        flex-direction: column; /* Apila la imagen y el texto */
    }

    .hero {
        min-height: 60vh;
    }
}

/* --- Móviles (Menos de 768px) --- */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        display: none;
    }

    header {
        flex-direction: column;
        text-align: center;
        padding: 15px 4%;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
        margin: 10px 0;
    }

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

    .hero {
        padding: 40px 5%;
        text-align: center;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    .section, .section.cat {
        padding: 40px 5%;
    }

    .features {
        grid-template-columns: 1fr; /* Una columna en celulares */
        padding: 30px 5%;
    }

    .services-grid, 
    .gallery-grid {
        grid-template-columns: 1fr; /* Una columna para servicios y galería en pantallas chicas */
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


/* ==========================================================================
   ESTILOS PARA EL BOTÓN HAMBURGUESA (3 LÍNEAS)
   ========================================================================== */
.nav-toggle {
    display: none; /* Oculto en computadoras */
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    padding: 0;
    z-index: 1200;
}

.nav-toggle .linea {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color); /* Utiliza tu color oscuro principal */
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Animación a Cruz (X) cuando el menú está activo */
.nav-toggle.active .linea:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active .linea:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .linea:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   COMPORTAMIENTO RESPONSIVE EN MÓVILES (Max-Width: 992px)
   ========================================================================== */
@media (max-width: 992px) {
    /* Mostrar el botón de 3 líneas */
    .nav-toggle {
        display: flex;
    }

    /* Ocultar el botón del presupuesto en pantallas chicas para dar espacio */
    .btn-header {
        display: none;
    }

    /* Menú móvil desplegable */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 2px solid var(--accent-color);
        padding: 20px 0;
        
        /* Oculto por defecto */
        display: none;
        flex-direction: column;
    }

    /* Clase que activa la visibilidad al hacer clic */
    .nav-menu.active {
        display: flex;
        overflow-y: scroll;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-links > li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #F0F0F0;
    }

    .nav-links > li > a {
        padding: 15px 20px;
    }

    /* Ajuste de Mega Menú dentro del móvil */
    .mega-menu {
        position: static;
        width: 100%;
        margin-left: 0;
        box-shadow: none;
        border-top: none;
        background-color: var(--bg-light);
    }

    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px 20px;
        text-align: center;
    }
}