/* ==================================================
   RESET & BASE
================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: linear-gradient(180deg, #ffffff 0%, #f3f2f2 45%, #ecebeb 100%);
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden; /* Evita desbordamiento horizontal */
}
html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 120px;
}
/* ==================================================
   HEADER
================================================== */
.main-header {
    position: relative;
    background: linear-gradient(135deg, #090909 0%, #121212 45%, #090909 100%),
                repeating-linear-gradient(45deg, rgba(212,183,107,0.03), rgba(212,183,107,0.03) 1px, transparent 1px, transparent 6px);
    border-bottom: 1px solid rgba(212,183,107,0.25);
    box-shadow: 0 8px 22px rgba(0,0,0,0.7);
    overflow: hidden;
    z-index: 1000;
}

.main-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(to right, transparent, #D4B76B, transparent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px; /* Reducido de 80px para mejor respuesta */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Permite que el menú baje en móviles si es necesario */
}

/* ==================================================
   BRAND
================================================== */
.brand {
    display: flex;
    align-items: center;
}
.brand img {
    height: 140px; /* Ajuste inicial para evitar saltos */
    max-width: 100%;
    border-radius: 50%;
    animation: logoGrow 3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes logoGrow {
    from { transform: scale(0.4); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==================================================
   NAVIGATION
================================================== */
.navigation {
    display: flex;
    gap: 30px;
}

.navigation a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #F2F2F2;
    padding: 6px 15px;
    position: relative;
    transition: all 0.3s ease;
}

.navigation i {
    font-size: 18px;
    color: #f4c430;
}

.navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212,183,107,0.8), transparent);
    transition: width 0.3s ease;
}

.navigation a:hover {
    color: #D4B76B;
    text-shadow: 0 0 8px rgba(212,183,107,0.4);
}

.navigation a:hover::after {
    width: 100%;
}

/* ==================================================
   HEADER ACTION
================================================== */
.header-action a {
    display: inline-block;
    /* Fondo: Blanco muy suave con transparencia para un efecto "glass" */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
    /* Texto: Blanco Puro para máxima legibilidad */
    color: #FFFFFF; 
    padding: 5px 20px;
    /* Borde: Blanco semi-transparente */
    border: 1px solid rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.4s ease;
    /* Animación: El pulso ahora será un aura blanca */
    animation: pulse-white 2.5s infinite;
    letter-spacing: 1px;
}

/* Efecto al pasar el mouse (Hover) */
.header-action a:hover {
    background: #f4c430; /* Se llena de blanco sólido */
    color: #090909;      /* El texto cambia a negro para contraste */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6); /* Brillo intenso blanco */
    border-color: #f4c430;
    transform: translateY(-2px); /* Pequeña elevación */
}

/* Nueva Animación de Pulso Blanco */
@keyframes pulse-white {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}
/* ==================================================
   HERO BANNER
================================================== */
.hero-banner {
    position: relative;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.4s ease;
}

.hero-slides img.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2;
}

.hero-content {
    position: absolute;
    left: 5%;
    bottom: 15%;
    color: #fff;
    z-index: 5;
    max-width: 600px;
}

.hero-content.animate {
    animation: textFade 0.9s ease;
}

@keyframes textFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-label { 
    font-size: clamp(16px, 2vw, 20px); 
    letter-spacing: 4px; 
    color: whitesmoke; /* Cambiamos a Blanco Puro para que brille */
    font-weight: 700;
    text-transform: uppercase;
    
    /* EL TRUCO PARA QUE SE NOTE: */
    background: rgba(0, 0, 0, 0.7); /* Fondo negro translúcido */
    padding: 8px 20px;
    display: inline-block;
    border-radius: 2px;
    border-left: 2px solid #f4c430; /* Mantenemos el detalle dorado en una línea */
    border-right: 2px solid #f4c430; /* Mantenemos el detalle dorado en una línea */
    
    /* Sombra extra para profundidad */
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}
.hero-content h1 { font-size: clamp(40px, 10vw, 75px); margin: 10px 0 20px; }
.hero-content p { font-size: clamp(16px, 2vw, 22px); margin-bottom: 20px; }

.hero-controls {
    position: absolute;
    bottom: 40px;
    left: 5%;
    z-index: 10;
}

.hero-controls button {
    background: none;
    border: 1px solid #fff;
    color: #fff;
    font-size: 22px;
    padding: 6px 14px;
    cursor: pointer;
    margin-right: 10px;
}
/* ==================================================
   PROJECT INTRO
================================================== */
.projects-header {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 40px 0;
}

/* Líneas laterales */
.projects-header::before,
.projects-header::after {
    content: "";
    flex: 1;
    height: 2px;
    background-color: #000;
}

/* Cápsula central */
.projects-header span {
    padding: 10px 45px;
    border: 3px solid #000;
    border-radius: 50px;
    font-weight: 800;
    font-size: 25px;
    letter-spacing: 1px;
    margin: 0 20px;
    white-space: nowrap;
}

/* Adaptabilidad */
/* Responsive: líneas más cortas en móvil */
@media (max-width: 600px) {
    .projects-header span {
        font-size: 14px;
        padding: 8px 20px;
        margin: 0 10px;
    }
}
/* ==================================================
   PROJECTS GRID
================================================== */
.projects-grid {
    width: 100%;
    max-width: 1900px; /* Para que sea ancho profesional */
    margin: 10px auto;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* ==================================================
   PROJECT CARD
================================================== */
.project-card {
    position: relative;
    height: 450px; /* Altura profesional que pediste */
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
    border: 2px solid rgba(160, 157, 157, 0.8);
}

.project-card.show {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    border: 1px solid rgba(197, 168, 115, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ==================================================
   IMAGE & OVERLAY
================================================== */
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    opacity: 0;
    transition: opacity 0.6s ease;
    text-align: center;
    padding: 20px;
}

.project-card:hover img { transform: scale(1.08); }
.project-card:hover .project-overlay { opacity: 1; }

/* ==================================================
   STATUS (ESTADO) - COLOR PROFESIONAL
================================================== */
.project-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 5px;
    z-index: 5;
}

/* ESTADO CON EL AMARILLO EXACTO DEL FOOTER */
.project-status.ejecutado {
    background: linear-gradient(
        135deg,
        #f4c430, /* Amarillo principal del footer */
        #d4a017  /* Amarillo sombra para dar relieve */
    );
    color: black;
    box-shadow: 0 4px 12px rgba(244, 196, 48, 0.5);
    animation: pulse 1.6s infinite;
    font-size: 18px;
}

/* RECUERDA ACTUALIZAR EL COLOR DEL PULSO TAMBIÉN */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 196, 48, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(244, 196, 48, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 196, 48, 0);
    }
}

/* ==================================================
   BOTÓN
================================================== */
.btn-project {
    border: 1px solid #FFFFFF;
    padding: 10px 26px;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 15px;
    border-radius: 10px;
}

.btn-project:hover {
    background-color: #FFFFFF;
    color: #1A1A1A;
}

/* ==================================================
   ANIMACIÓN ÚNICA
================================================== */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(197, 168, 115, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(197, 168, 115, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 168, 115, 0); }
}

/* ==================================================
   RESPONSIVE (UNIFICADO)
================================================== */
@media (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-card {
        height: 450px;
    }
    .projects-intro {
        padding: 0 20px;
        margin: 40px 0 20px;
    }
}

/* ==================================================
   FOOTER
================================================== */
.footer-arch {
    background: #090909;
    color: #fff;
    padding: 50px 0px 0;
    position: relative;
    border-top: 3px solid #f4c430;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    padding-bottom: 30px;
}

.footer-col { flex: 1; min-width: 250px; }

.footer-title {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 60px; height: 1px; background: #f4c430;
}

.footer-info-row a {
    display: block;
    color: #e0e0e0;
    margin-bottom: 15px;
    text-decoration: none;
    font-size: 14px;
}

.footer-info-row i { color: #f4c430; margin-right: 10px; }

.footer-nav a { display: block; color: #ccc; margin-bottom: 10px; text-decoration: none; }
.footer-nav a:hover { color: #f4c430; padding-left: 5px; transition: 0.3s; }

.footer-socials a {
    display: inline-flex; width: 40px; height: 40px;
    border: 1px solid #f4c430; border-radius: 50%;
    align-items: center; justify-content: center;
    color: #f4c430; text-decoration: none; transition: 0.3s;
}

.footer-socials a:hover { background: #f4c430; color: #000; }

.footer-bottom {
    text-align: center;
    padding: 20px;
    background: #111;
    font-size: 12px;
    color: #777;
}

.footer-bottom p {
    text-align: center;
    font-size: 10px;
    color: #777;
    margin-top: 10px;
    font-family: "Playfair Display", "Georgia", serif;


}
/* ==================================================
   MODAL GALERÍA (ESTILOS PROFESIONALES)
================================================== */
.modal-gallery {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95); /* Fondo oscuro profundo */
    display: none; /* Se activa con JS */
    flex-direction: column;
    z-index: 2000;
    padding: 20px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #D4B76B; /* Dorado para que combine */
    cursor: pointer;
    transition: 0.3s;
    z-index: 2100;
}

.modal-close:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Contenedor principal de la imagen y flechas */
.modal-main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* La imagen grande */
.modal-slider {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-slide {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: none; /* Ocultamos todas por defecto */
    animation: fadeIn 0.5s;
}

.modal-slide.active {
    display: block; /* Solo mostramos la activa */
}

/* Botones de navegación */
.modal-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 30px;
    padding: 20px 10px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 5px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.modal-btn:hover {
    background: #D4B76B;
    color: #000;
}

.modal-btn.prev { left: -60px; }
.modal-btn.next { right: -60px; }

/* Miniaturas */
.modal-thumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
    overflow-x: auto;
}

.modal-thumbs img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: 0.3s;
}

.modal-thumbs img.active {
    opacity: 1;
    border-color: #D4B76B;
}

/* Adaptación para móviles */
@media (max-width: 768px) {
    .modal-btn.prev { left: 10px; }
    .modal-btn.next { right: 10px; }
    .modal-btn { font-size: 20px; padding: 15px 5px; }
    .modal-thumbs img { width: 60px; height: 45px; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================================================
   MEDIA QUERIES (LO QUE HACE QUE SEA RESPONSIVE)
================================================== */

/* TABLETS */
@media (max-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-btn.prev { left: 10px; }
    .modal-btn.next { right: 10px; }
}

/* CELULARES */
@media (max-width: 768px) {
    .container { flex-direction: column; gap: 20px; text-align: center; }
    .navigation { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .navigation a { font-size: 14px; padding: 5px; }
    
    .hero-content { left: 5%; bottom: 10%; width: 90%; text-align: center; }
    .hero-controls { left: 50%; transform: translateX(-50%); }

    .projects-grid { grid-template-columns: 1fr; }
    .project-card { height: 350px; }

    .footer-container { flex-direction: column; text-align: center; }
    .footer-col { margin-left: 0 !important; }
    .footer-title::after { left: 50%; transform: translateX(-50%); }
    .footer-info-row a span { justify-content: center; }
}

@media (max-width: 480px) {
    .brand img { height: 70px; }
    .header-action a { font-size: 14px; padding: 8px 15px; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212,183,107,0.6); }
    70% { box-shadow: 0 0 0 12px rgba(212,183,107,0); }
    100% { box-shadow: 0 0 0 0 rgba(212,183,107,0); }
}

@media (max-width: 1024px) {
    /* Invertimos el orden del contenedor: Logo a la derecha, Botón a la izquierda */
    .container {
        flex-direction: row-reverse !important;
        justify-content: space-between !important;
        padding: 10px 20px;
    }

    .menu-toggle {
        display: block !important;
        background: none;
        border: none;
        color: #f4c430 !important;
        font-size: 28px !important;
        cursor: pointer;
        z-index: 2100;
    }

    .brand img {
        height: 80px; /* Tamaño ajustado para móvil */
    }

    /* Ajustamos la navegación para que salga de la IZQUIERDA */
    .navigation {
        position: fixed;
        top: 0;
        left: -100% !important; /* Ahora se esconde a la izquierda */
        right: auto !important;
        width: 280px;
        height: 100vh;
        background: #090909;
        flex-direction: column;
        padding-top: 80px;
        transition: 0.5s all ease;
        z-index: 2000;
        display: flex !important;
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    }

    /* Clase activa para mostrar el menú desde la izquierda */
    .navigation.active {
        left: 0 !important;
    }

    .navigation a {
        padding: 20px;
        font-size: 18px;
        width: 100%;
        border-bottom: 1px solid rgba(212,183,107,0.1);
        justify-content: flex-start;
    }

    /* Aseguramos que el botón de contacto no flote raro en el menú móvil */
    .header-action {
        margin-top: 20px;
        padding: 0 5px;
    }
}

/* En PC mantenemos el orden normal */
@media (min-width: 1025px) {
    .menu-toggle {
        display: none !important;
    }
    .container {
        flex-direction: row !important; /* Orden normal en PC */
    }
}
