/* ESTILOS GENERALES */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f8f8f8;
    color: #000000;
    font-weight: bold;
}

img, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   MENÚ PRINCIPAL
========================================== */
#inicio, #servicios, #nosotros, #proyectos, #cotizacion {
    scroll-margin-top: 85px;
}

.menu-principal {
    position: sticky;
    top: 0;
    z-index: 950;
    width: 100%;
    background-color: #0b0b0b;
    border-bottom: 1px solid #222;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

.menu-principal a {
    text-decoration: none;
}

.menu-contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
    box-sizing: border-box;
}

.logo-nav {
    height: 45px; 
    width: auto;
    display: block;
}

.enlaces-nav {
    display: flex;
    gap: 25px;
}

.enlaces-nav a {
    color: #cccccc;
    font-size: 15px;
    font-weight: bold;
    transition: color 0.3s;
    white-space: nowrap;
}

.enlaces-nav a:hover {
    color: #F39C12; 
}

.btn-llamar {
    background: #F39C12;
    color: #000000;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-llamar:hover {
    background: #e67e22;
}

/* ==========================================
   ENCABEZADO (HERO)
========================================== */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.8)), url("img/zina2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px 120px; 
}

.overlay {
    max-width: 1100px;
    margin: 0 auto;
    text-align: left; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.insignia {
    background: rgba(243, 156, 18, 0.15);
    color: #F39C12;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 25px;
    border: 1px solid rgba(243, 156, 18, 0.5);
}

.hero-titulo {
    color: #ffffff; 
    font-size: 52px;
    font-weight: 900;
    margin: 0 0 15px 0;
    max-width: 700px;
    line-height: 1.1;
}

.hero-subtitulo {
    color: #cccccc;
    font-size: 18px;
    font-weight: normal;
    margin: 0 0 35px 0;
    max-width: 600px;
    line-height: 1.5;
}

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

.btn-principal, .btn-secundario {
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-principal {
    background: #F39C12;
    color: #000000;
}

.btn-principal:hover {
    background: #e67e22;
}

.btn-secundario {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secundario:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ==========================================
   SECCIONES GENERALES
========================================== */
section {
    padding: 40px 20px;
    max-width: 1100px;
    margin: auto;
    box-sizing: border-box;
}

.titulo-seccion {
    text-align: left;
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 25px;
    color: #F39C12;
    font-weight: bold;
}

/* ==========================================
   SERVICIOS Y TARJETAS BÁSICAS
========================================== */
.servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: rgb(249, 249, 247);
    padding: 25px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.card h2, .card h3, .card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: left;
}

.card p {
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.5;
    text-align: left;
    font-weight: bold;
}

.card p:last-child {
    margin-bottom: 0;
}

.card-informacion {
    width: 100%;
    padding: 30px;
    text-align: left;
}

.card-informacion p {
    font-size: 16px;
    font-weight: bold;
}

/* ==========================================
   NUEVA GALERÍA DE PROYECTOS
========================================== */
.proyectos-realizados {
    max-width: none;
    width: 100%;
    margin-top: 45px;
    padding: 70px 20px;
    background: #eeeeee;
    box-sizing: border-box;
}

.encabezado-proyectos {
    max-width: 900px;
    margin: 0 auto 25px;
    text-align: center;
}

.etiqueta-proyectos {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 18px;
    border-radius: 999px;
    background: #15120e;
    color: #F39C12;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.encabezado-proyectos h2 {
    margin: 0 0 16px;
    color: #F39C12;
    font-size: 42px;
    line-height: 1.15;
}

.encabezado-proyectos p {
    max-width: 800px;
    margin: 0 auto;
    color: #333333;
    font-size: 18px;
    line-height: 1.65;
}

.galeria-proyectos-light {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.card-proyecto-light {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-proyecto-light:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.card-proyecto-light img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.info-proyecto-light {
    padding: 20px;
    text-align: left;
}

.ubicacion-tag-light {
    font-size: 12px;
    color: #F39C12;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

.info-proyecto-light h3 {
    margin: 0;
    font-size: 18px;
    color: #1a1a1a;
    line-height: 1.4;
}

/* ==========================================
   TESTIMONIOS
========================================== */
.Testimonios {
    display: flex;
    gap: 20px; 
    justify-content: center; 
    margin-top: 30px;
    flex-wrap: wrap; 
}

.card-testimonio {
    background-color: #ffffff; 
    padding: 25px;
    border-radius: 12px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
    max-width: 320px;
    width: 100%;
    text-align: center;
    border-top: 4px solid #f39c12;
}

.card-testimonio h3 {
    color: #333333;
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-top: 0;
}

.card-testimonio p {
    font-style: italic; 
    color: #555555;
    line-height: 1.5;
}

/* ==========================================
   CONTACTO
========================================== */
.contacto {
    max-width: 700px;
    margin: 60px auto;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,.15);
}

.contacto h2 {
    text-align: center;
    margin-bottom: 20px;
}

.contacto form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacto input,
.contacto select,
.contacto textarea,
.contacto button {
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
}

.contacto textarea {
    min-height: 120px;
    resize: vertical;
}

.contacto button {
    background: #25D366;
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    transition: .3s;
}

.contacto button:hover {
    background: #1fa851;
    transform: scale(1.02);
}

/* ==========================================
   PIE DE PÁGINA
========================================== */
footer {
    background: #F39C12;
    color: rgb(25, 25, 23);
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    font-weight: bold;
}

footer p {
    margin: 0;
}

/* ==========================================
   WHATSAPP FLOTANTE
========================================== */
.whatsapp-flotante {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white;
    font-size: 31px;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    z-index: 900;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    animation: pulso-whatsapp 2s infinite;
}

.whatsapp-flotante:hover {
    background: #1ebe5d;
    transform: scale(1.12);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

@keyframes pulso-whatsapp {
    0% { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================
   VISOR DE IMÁGENES
========================================== */
.visor {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999;
    text-align: center;
    padding: 30px;
    box-sizing: border-box;
}

.contenido-visor {
    max-width: 900px;
    margin: auto;
}

.visor img {
    max-width: 90%;
    max-height: 70vh;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
}

.visor h3, .visor p {
    color: white;
}

.visor h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 24px;
}

.visor p {
    max-width: 800px;
    margin: 18px auto 0;
    font-size: 18px;
    line-height: 1.5;
}

#cerrar {
    color: white;
    font-size: 40px;
    position: absolute;
    top: 15px;
    right: 30px;
    cursor: pointer;
}

.flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 45px;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 50%;
}

.flecha:hover { background: rgba(255, 255, 255, 0.4); }
.flecha-izq { left: 25px; }
.flecha-der { right: 25px; }

/* ==========================================
   BANNER DE COOKIES
========================================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    background-color: #1e1e1e;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none; 
    font-size: 0.9rem;
    border: 1px solid #333;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.cookie-content p {
    margin: 0;
    line-height: 1.4;
}

.cookie-link { color: #F39C12; text-decoration: underline; }
.cookie-link:hover { color: #e65100; }

.btn-accept-cookies {
    background-color: #F39C12;
    color: #ffffff;
    border: none;
    padding: 8px 22px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-accept-cookies:hover { background-color: #d68910; }

@media (min-width: 600px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ==========================================
   ANIMACIONES AL HACER SCROLL
========================================== */
.animar-entrada {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animar-entrada.visible {
    opacity: 1;
    transform: translateY(0);
}

.logo-principal { animation: entrada-logo 0.8s ease; }
.hero-titulo { animation: entrada-titulo 0.9s ease; }
.hero-subtitulo { animation: entrada-subtitulo 1s ease; }

@keyframes entrada-logo {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes entrada-titulo {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes entrada-subtitulo {
    from { opacity: 0; transform: translateY(35px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .animar-entrada {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================
   MEDIA QUERIES - TABLET Y CELULAR
========================================== */
@media (max-width: 768px) {
    html { scroll-padding-top: 70px; }
    #inicio, #servicios, #nosotros, #proyectos, #cotizacion { scroll-margin-top: 70px; }
    
    .menu-contenedor {
        flex-wrap: wrap;
        row-gap: 10px;
        padding: 12px 15px;
    }
    .enlaces-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 18px;
        scrollbar-width: none;
        padding-bottom: 2px;
    }
    .enlaces-nav::-webkit-scrollbar { display: none; }
    .enlaces-nav a { padding: 6px 2px; font-size: 14px; }
    
    .hero { padding: 30px 15px 40px; }
    .hero-titulo { font-size: 27px; padding: 12px 18px; text-align: center; margin: 0 auto 15px;}
    .hero-subtitulo { font-size: 17px; padding: 12px 15px; text-align: center; margin: 0 auto;}
    .hero-botones { justify-content: center; width: 100%; }
    
    section { padding: 30px 15px; }
    .titulo-seccion { font-size: 27px; }
    
    .servicios { grid-template-columns: 1fr; }
    .galeria-proyectos-light { grid-template-columns: 1fr; gap: 20px; }
    
    .visor { padding: 25px 12px; }
    .visor img { max-width: 85%; max-height: 65vh; }
    .flecha { font-size: 30px; padding: 7px 12px; }
    .flecha-izq { left: 5px; }
    .flecha-der { right: 5px; }
    
    .encabezado-proyectos h2 { font-size: 34px; }
    .proyectos-realizados { padding: 52px 15px; }
}

@media (max-width: 480px) {
    html { scroll-padding-top: 62px; }
    #inicio, #servicios, #nosotros, #proyectos, #cotizacion { scroll-margin-top: 62px; }
    
    .menu-contenedor { padding: 10px 12px; }
    .logo-nav { height: 36px; }
    .enlaces-nav a { font-size: 13px; }
    .btn-llamar { padding: 8px 14px; font-size: 13px; }
    
    .hero { padding: 25px 12px 32px; }
    .hero-titulo { font-size: 22px; padding: 11px 10px; }
    .hero-subtitulo { font-size: 14px; padding: 11px 10px; }
    .hero-botones { flex-direction: column; }
    
    .titulo-seccion { font-size: 24px; }
    .card, .card-informacion { padding: 18px; border-radius: 12px; }
    .card h3 { font-size: 19px; }
    .card p, .card-informacion p { font-size: 15px; }
    
    .card-proyecto-light img { height: 200px; }
    .encabezado-proyectos h2 { font-size: 29px; }
    .proyectos-realizados { padding: 42px 12px; margin-top: 25px; }
    .etiqueta-proyectos { padding: 7px 14px; font-size: 12px; }
    
    .contacto { margin: 30px auto; padding: 20px; }
    footer { padding: 18px 12px; font-size: 14px; }
    
    .whatsapp-flotante { width: 56px; height: 56px; right: 15px; bottom: 18px; font-size: 27px; }
    
    .visor img { max-width: 82%; max-height: 60vh; }
    .visor h3 { font-size: 18px; }
    .visor p { font-size: 14px; }
    #cerrar { top: 8px; right: 14px; font-size: 34px; }
    .flecha { display: none; } /* Ocultar flechas en celular (se usa touch) */
}