/* 1. Estilo globales para toda la pagina */
html {
    scroll-behavior: smooth;
}

body {
    background-color:#1e1e1e;
    color:#E6C687;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 2. Estilo del encabezado */
.header-principal {
    text-align: center;
    padding: 60px 20px;
}

.header-principal h1 {
    color: #D4AF37;
    font-size: 3.5rem;
    margin: 0 0 10px 0;
}

.header-principal p {
    font-size: 1.2rem;
    color: #AA8828;
}

.btn-contacto {
    display: inline-block;
    color: #D4AF37;
    border: 1px solid #D4AF37;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(212, 175, 55, 0.4), transparent);
    transition: all 0.6s ease;
}

.btn-contacto:hover::before {
    left: 100%;
}

.btn-contacto:hover {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

/* 3. Titulo de la seccion de servicio */
.seccion-servicios h2 {
    color: #D4AF37;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

/* 4. EL CONTENEDOR: Aqui alineamos los 3 recuadros en fila de servicios */
.contenedor-tarjetas {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 5. LOS RECUADROS */
.tarjeta-servicio {
    background-color: #292929;
    border: 2px solid #D4AF37;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tarjeta-servicio:hover {
    transform: translateY(-10px);
    border-color: #FFF;
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.2);
    cursor: pointer;
}

/* 6. Estilos para las imágenes dentro de los recuadros */
.tarjeta-servicio img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

/* 7. Estilos específicos para los textos dentro de las tarjetas */
.tarjeta-servicio p {
    text-align: justify;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 10px;
}

.tarjeta-servicio h3 { 
    color: #D4AF37;
    margin: 10px 0;
}

.tarjeta-servicio:hover img {
    transform: translateY(-10px) scale(1.05);
}

/* 8. ESTILOS DE LA BARRA SUPERIOR DE NAVEGACIÓN */
.barra-navegacion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #292929;
    padding: 15px 40px;
    border-bottom: 1px solid #D4AF37;
    position: relative;
    z-index: 1000;
}

.logo-nav {
    color: #D4AF37;
    font-weight: bold;
    font-size: 1.5rem;
}

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

.menu-nav a {
    color: #E6C687;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.menu-nav a:hover {
    color: #D4AF37;
}

/* Botón Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #d4af37;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 9. ESTILOS DEL HERO BANNER */
.hero-banner {
    position: relative;
    width: 100%;
    height: 70vh;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
}

.overlay-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* SECCIÓN: QUIÉNES SOMOS */
.seccion-quienes-somos {
    padding: 80px 40px;
    background-color: #1a1a1a;
    text-align: center;
}

.seccion-quienes-somos h2 {
    color: #D4AF37;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.contenido-quienes-somos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: justify;
}

.texto-quienes {
    flex: 1;
    line-height: 1.7;
    font-size: 1.05rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.equipo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.equipo-tags span {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid #D4AF37;
    color: #E6C687;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.imagen-quienes {
    flex: 1;
}

.imagen-quienes img {
    width: 100%;  
    min-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #D4AF37;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* SECCIÓN: CONTACTO */
.seccion-contacto {
    padding: 80px 20px;
    background-color: #1e1e1e;
    text-align: center;
}

.seccion-contacto h2 {
    color: #D4AF37;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.subtitulo-contacto {
    color: #E6C687;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contenedor-contacto {
    max-width: 600px;
    margin: 0 auto;
    background-color: #292929;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #D4AF37;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.grupo-input {
    margin-bottom: 20px;
    text-align: left;
}

.grupo-input label {
    display: block;
    color: #D4AF37;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: bold;
}

.grupo-input input,
.grupo-input textarea {
    width: 100%;
    padding: 12px;
    background-color: #1e1e1e;
    border: 1px solid #AA8828;
    border-radius: 6px;
    color: #FFF;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.grupo-input input:focus,
.grupo-input textarea:focus {
    outline: none;
    border-color: #D4AF37;
}

.btn-enviar {
    width: 100%;
    background-color: transparent;
    color: #D4AF37;
    border: 2px solid #D4AF37;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-enviar:hover {
    background-color: #D4AF37;
    color: #1e1e1e;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* SECCIÓN: NOTICIAS */
.seccion-noticias {
    padding: 80px 40px;
    background-color: #1a1a1a;
    text-align: center;
}

.seccion-noticias h2 {
    color: #D4AF37;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.subtitulo-noticias {
    color: #E6C687;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contenedor-noticias {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tarjeta-noticia {
    background-color: #292929;
    border: 1px solid #AA8828;
    border-radius: 8px;
    overflow: hidden;
    width: 360px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-noticia:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.15);
    border-color: #D4AF37;
}

.imagen-noticia img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.contenido-noticia {
    padding: 20px;
}

.categoria-noticia {
    background-color: #AA8828;
    color: #1e1e1e;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
}

.contenido-noticia h3 {
    color: #D4AF37;
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.contenido-noticia p {
    color: #E6C687;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.leer-mas {
    color: #D4AF37;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.leer-mas:hover {
    color: #FFF;
}

/* ANIMACIONES Y EFECTOS DINÁMICOS */
.tarjeta-servicio, 
.tarjeta-noticia {
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.35s ease, 
                border-color 0.35s ease;
}

.tarjeta-servicio:hover, 
.tarjeta-noticia:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.25);
    border-color: #D4AF37;
}

.tarjeta-servicio img, 
.tarjeta-noticia img {
    transition: transform 0.5s ease;
}

.tarjeta-servicio:hover img, 
.tarjeta-noticia:hover img {
    transform: scale(1.04);
}

.revelar {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
}

.revelar.activo {
    opacity: 1;
    transform: translateY(0);
}

.btn-whatsapp-flotante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 58px;
    height: 58px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 999;
    transition: transform 0.3s ease;
    text-decoration: none;
    animation: pulsoWhatsapp 2s infinite;
}

.btn-whatsapp-flotante:hover {
    transform: scale(1.1);
    color: #FFF;
}

.btn-whatsapp-flotante svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

@keyframes pulsoWhatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================================
   ÚNICO BLOQUE RESPONSIVE PARA MÓVILES (MAX 768px)
   ========================================================= */
@media (max-width: 768px) {
    /* Barra y Botón Hamburguesa */
    .barra-navegacion {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: flex !important;
    }

    .menu-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #111111;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        border-bottom: 2px solid #d4af37;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .menu-nav.active {
        display: flex !important;
    }

    /* Ajustes generales de secciones para celulares */
    .hero-banner {
        height: 50vh;
    }

    .contenedor-tarjetas {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .tarjeta-servicio {
        width: 100%;
        max-width: 340px;
    }

    .contenido-quienes-somos {
        flex-direction: column;
        gap: 30px;
    }

    .contenedor-contacto {
        padding: 25px 20px;
    }

    .contenedor-noticias {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .tarjeta-noticia {
        width: 100%;
        max-width: 340px;
    }
}