/* --- VARIABLES --- */
:root {
    --gold: #c6a84b;
    --gold-light: #f3e5ab;
    --gold-dark: #8a7431;
    --black: #000000;
    --dark-grey: #101010;
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --white: #ffffff;
    --text: #cfcfcf;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- SCROLLBAR PERSONALIZADO --- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(var(--black), var(--gold-dark)); 
    border-radius: 5px; 
    border: 2px solid var(--black);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* --- RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--black);
    color: var(--text);
    overflow-x: hidden;
    selection-background-color: var(--gold);
    selection-color: var(--black);
}

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: var(--white); font-weight: 700; letter-spacing: -0.5px; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* Efecto Oro Metálico para textos */
.text-gold { color: var(--gold); }
.text-gradient {
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 100px 0; }

/* --- NAV --- */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 15px 0; 
    background: #000000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo-img { height: 55px; display: block; filter: drop-shadow(0 0 5px rgba(255,255,255,0.1)); } 
.nav-links { display: flex; gap: 35px; align-items: center; }
.nav-links a { 
    font-weight: 500; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px;
    background: var(--gold); transition: var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.btn-nav-contact {
    border: 1px solid var(--gold); padding: 10px 25px; border-radius: 50px; color: var(--gold) !important;
}
.btn-nav-contact::after { display: none; }
.btn-nav-contact:hover { 
    background: var(--gold); color: var(--black) !important; box-shadow: 0 0 15px rgba(198, 168, 75, 0.4);
}
.mobile-menu-btn { display: none; font-size: 1.5rem; color: var(--white); cursor: pointer; }

/* --- HERO --- */
.hero {
    height: 100vh; position: relative; display: flex;
    align-items: center; justify-content: center; text-align: center; overflow: hidden;
}
.hero-bg-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://german210522.github.io/wvl-website/images/patio4.jpg') center/cover no-repeat;
    animation: zoomEffect 25s infinite alternate;
    z-index: 1;
}
@keyframes zoomEffect { 0% { transform: scale(1); } 100% { transform: scale(1.2); } }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.9) 100%);
    z-index: 2;
}
.hero-content { position: relative; z-index: 3; padding: 0 20px; }
.location-badge {
    display: inline-block; background: rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
    padding: 10px 20px; border-radius: 50px; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 3px; margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.1); color: var(--gold);
}
.hero h1 { font-size: 4.5rem; line-height: 1.05; margin-bottom: 25px; text-shadow: 0 20px 40px rgba(0,0,0,0.6); }
.hero p { font-size: 1.3rem; margin-bottom: 45px; color: #e0e0e0; max-width: 700px; margin-left: auto; margin-right: auto; font-weight: 300; }

/* Scroll Indicator Animado */
.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; flex-direction: column; align-items: center; cursor: pointer; opacity: 0.7;
}
.mouse {
    width: 26px; height: 40px; border: 2px solid var(--white); border-radius: 20px;
    position: relative; margin-bottom: 5px;
}
.wheel {
    width: 2px; height: 6px; background: var(--gold); border-radius: 2px;
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    animation: scrollMouse 1.5s infinite;
}
@keyframes scrollMouse { 0% { top: 8px; opacity: 1; } 100% { top: 20px; opacity: 0; } }

/* --- BUTTONS --- */
.cta-group { display: flex; gap: 20px; justify-content: center; }
.btn {
    padding: 16px 40px; font-weight: 700; text-transform: uppercase;
    border-radius: 2px; letter-spacing: 1px; cursor: pointer; position: relative; overflow: hidden; z-index: 1;
}
.btn-primary {
    background: transparent; color: var(--gold); border: 1px solid var(--gold);
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%;
    background: var(--gold); z-index: -1; transition: var(--transition);
}
.btn-primary:hover { color: var(--black); box-shadow: 0 0 30px rgba(198, 168, 75, 0.3); border-color: var(--gold); }
.btn-primary:hover::before { width: 100%; }

.btn-transparent { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); color: var(--white); backdrop-filter: blur(5px); }
.btn-transparent:hover { background: var(--white); color: var(--black); }

/* --- STATS BAR --- */
.stats-bar { 
    background: #0a0a0a; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 40px 0; 
    position: relative; z-index: 5;
}
.stats-container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.stat-item { display: flex; align-items: center; color: var(--white); transition: transform 0.3s; }
.stat-item:hover { transform: translateY(-5px); }
.stat-item i { font-size: 2.2rem; color: var(--gold); margin-right: 20px; text-shadow: 0 0 10px rgba(198, 168, 75, 0.3); }
.stat-item div { display: flex; flex-direction: column; }
.stat-item strong { font-size: 1.2rem; line-height: 1.2; font-weight: 700; }
.stat-item span { font-size: 0.85rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }

/* --- HEADERS --- */
.section-header { text-align: center; margin-bottom: 70px; }
.subtitle { color: var(--gold); font-weight: 700; letter-spacing: 4px; font-size: 0.85rem; text-transform: uppercase; display: block; margin-bottom: 10px; }
.section-header h2 { font-size: 3rem; margin: 0 0 20px; }
.line { width: 80px; height: 2px; background: var(--gold); margin: 0 auto; box-shadow: 0 0 10px var(--gold); }

/* --- SERVICES (GLASSMORPHISM) --- */
.services-bg { 
    background: radial-gradient(circle at top right, #1a1a1a, #000000); 
}
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card {
    background: var(--glass-bg); 
    backdrop-filter: blur(10px);
    padding: 50px 35px; border-radius: 0;
    border: 1px solid var(--glass-border); 
    transition: var(--transition);
    position: relative;
}
.service-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px;
    background: var(--gold); transition: var(--transition);
}
.service-card:hover { transform: translateY(-10px); border-color: rgba(198, 168, 75, 0.3); }
.service-card:hover::after { width: 100%; }

.icon-box {
    width: 70px; height: 70px; background: rgba(255,255,255,0.03);
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%; margin-bottom: 30px; color: var(--gold); font-size: 1.8rem;
    border: 1px solid rgba(255,255,255,0.1); transition: var(--transition);
}
.service-card:hover .icon-box { background: var(--gold); color: var(--black); box-shadow: 0 0 20px var(--gold); border-color: var(--gold); }
.service-card h3 { font-size: 1.4rem; margin-bottom: 15px; }

/* --- ABOUT --- */
.about-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image { position: relative; }
.about-image img { width: 100%; border-radius: 2px; position: relative; z-index: 2; box-shadow: 0 20px 50px rgba(0,0,0,0.5); filter: grayscale(20%); transition: var(--transition); }
.about-image:hover img { filter: grayscale(0%); }
.about-frame {
    position: absolute; top: 30px; left: -30px; width: 100%; height: 100%;
    border: 2px solid var(--gold); z-index: 1;
}
.check-list { margin: 30px 0; }
.check-list li { margin-bottom: 15px; display: flex; align-items: center; color: var(--white); font-weight: 500; }
.check-list i { color: var(--gold); margin-right: 15px; font-size: 1.1rem; }
.founder-quote {
    background: rgba(255,255,255,0.03); padding: 25px; border-left: 4px solid var(--gold);
    font-style: italic; color: #ddd;
}
.founder-quote span { display: block; margin-top: 10px; font-size: 0.85rem; color: var(--gold); font-style: normal; font-weight: 700; text-transform: uppercase; }

/* --- PORTFOLIO (GRID 3 COLUMNAS) --- */
.portfolio-grid {
    display: grid;
    /* FORZAMOS 3 COLUMNAS EN ESCRITORIO */
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
}

.project-item { 
    position: relative; height: 350px; overflow: hidden; border-radius: 0; cursor: pointer;
}
.project-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

.project-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: var(--transition); 
    border: 1px solid var(--gold);
    backdrop-filter: blur(2px);
}
.project-overlay h4 { 
    font-size: 1.5rem; color: var(--white);
    text-transform: uppercase; letter-spacing: 3px; 
    transform: translateY(30px); transition: var(--transition); text-align: center; 
}

/* Efecto Hover solo en Escritorio */
@media (min-width: 901px) {
    .project-item:hover img { transform: scale(1.1); }
    .project-item:hover .project-overlay { opacity: 1; }
    .project-item:hover h4 { transform: translateY(0); }
}

/* --- LIGHTBOX MODAL (VISOR DE IMAGENES GRANDE) --- */
.lightbox-modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; overflow: hidden;
    background-color: rgba(0,0,0,0.96); /* Fondo negro inmersivo */
    backdrop-filter: blur(5px);
    justify-content: center; align-items: center; flex-direction: column;
}

.modal-content {
    margin: auto; display: block; 
    max-width: 95%; max-height: 90vh; /* Imagen lo más grande posible */
    width: auto; height: auto;
    object-fit: contain; /* Sin recortar */
    border: 2px solid var(--gold); 
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn { from {transform:scale(0.9); opacity: 0;} to {transform:scale(1); opacity: 1;} }

#caption {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.7); padding: 10px 30px; border-radius: 50px;
    color: var(--gold); font-size: 1.1rem; font-weight: 700; letter-spacing: 1px;
    text-align: center; border: 1px solid var(--gold); z-index: 2002;
}

.close-modal {
    position: absolute; top: 15px; right: 25px; color: #fff;
    font-size: 50px; font-weight: bold; cursor: pointer; transition: 0.3s;
    line-height: 1; z-index: 2003; text-shadow: 0 0 10px #000;
}
.close-modal:hover { color: var(--gold); }

/* Flechas Lightbox */
.prev-btn, .next-btn {
    cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%);
    width: 60px; height: 100px; display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 50px; transition: 0.3s ease;
    user-select: none; -webkit-user-select: none; z-index: 2002;
}
.prev-btn { left: 0; }
.next-btn { right: 0; }
.prev-btn:hover, .next-btn:hover { background-color: rgba(0,0,0,0.5); color: var(--gold); }

/* --- CONTACT (DISEÑO DORADO ORIGINAL + ARREGLO DE FORMULARIO) --- */
.contact-box {
    display: grid; grid-template-columns: 1fr 1.5fr;
    background: var(--dark-grey); border-radius: 8px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--gold-dark);
}
.contact-info-side { 
    background: var(--gold); /* Fondo Dorado */
    padding: 60px; color: var(--black); 
}
.contact-info-side h3 { color: var(--black); margin-bottom: 25px; font-size: 2.2rem; }
.contact-info-side p { margin-bottom: 40px; color: #333; font-weight: 500; }

.c-row { display: flex; margin-bottom: 30px; align-items: flex-start; }
.c-row i { font-size: 1.5rem; margin-right: 20px; color: var(--black); margin-top: 5px; }
.c-row span { font-weight: 700; display: block; color: var(--black); margin-bottom: 5px; }
.c-row a, .c-row p { font-size: 1rem; color: #222; transition: 0.3s; }
.c-row a:hover { color: #fff; }

.contact-form-side { padding: 60px; background: #080808; }

.input-group { margin-bottom: 25px; }
.input-group input, .input-group textarea {
    width: 100%; padding: 18px; 
    background: rgba(255,255,255,0.05); /* Fondo oscuro transparente */
    border: 1px solid rgba(255,255,255,0.1); /* Borde sutil */
    color: var(--white); /* Texto blanco */
    border-radius: 2px; font-family: 'Open Sans', sans-serif; font-size: 1rem;
    transition: var(--transition);
    resize: none; 
}
.input-group input:focus, .input-group textarea:focus { 
    outline: none; border-color: var(--gold); background: rgba(255,255,255,0.08);
}
.btn-submit {
    width: 100%; padding: 18px; background: var(--gold); color: var(--black);
    border: none; font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
    cursor: pointer; transition: var(--transition);
}
.btn-submit:hover { background: var(--white); box-shadow: 0 0 20px rgba(255,255,255,0.4); }

/* --- FOOTER ACTUALIZADO (CENTRADO Y CRÉDITOS) --- */
footer { background: #000; padding: 60px 0 40px; border-top: 1px solid #151515; }

/* Centrar el contenedor del contenido del footer */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo { height: 70px; margin-bottom: 25px; opacity: 1; }

/* Estilos para el texto del copyright y el nuevo enlace */
.copyright-text {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.6;
}
.separator { margin: 0 10px; color: #555; }

.developer-link {
    color: var(--gold);
    font-weight: 700;
    transition: var(--transition);
}
.developer-link:hover { color: var(--white); text-decoration: underline; }

.socials { margin-top: 30px; }
.socials a { 
    width: 45px; height: 45px; display: inline-flex; justify-content: center; align-items: center; 
    border: 1px solid #333; border-radius: 50%; margin: 0 8px; color: #888; transition: var(--transition);
}
.socials a:hover { border-color: var(--gold); color: var(--black); background: var(--gold); transform: translateY(-5px); }

/* --- WHATSAPP PULSE --- */
.whatsapp-btn {
    position: fixed; bottom: 30px; right: 30px;
    width: 65px; height: 65px; background: #25d366;
    color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 35px; box-shadow: 0 10px 20px rgba(0,0,0,0.3); z-index: 2000;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-btn:hover { transform: translateY(-5px); animation: none; }

/* =========================================
   MEDIA QUERIES (ESTILOS MÓVIL)
   ========================================= */
@media (max-width: 900px) {
    .hero h1 { font-size: 2.8rem; }
    
    .about-wrapper, .contact-box { grid-template-columns: 1fr; }
    
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .cta-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .stats-container { gap: 40px; }
    .contact-info-side, .contact-form-side { padding: 30px 20px; }
    .about-image { order: -1; }
    
    .modal-content { max-width: 100%; border: none; }
    .close-modal { right: 20px; top: 10px; }
    .prev-btn, .next-btn { font-size: 30px; width: 40px; }

    /* PORTFOLIO GRID MÓVIL: Forzar 1 Columna (Vertical) */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Fix Proyectos Móvil: Overlay siempre visible abajo */
    .project-overlay {
        opacity: 1 !important; 
        top: auto; bottom: 0; height: auto; 
        padding: 15px;
        background: linear-gradient(to top, #000 0%, transparent 100%);
        border: none; border-bottom: 4px solid var(--gold);
        justify-content: center;
    }
    .project-overlay h4 { transform: translateY(0); font-size: 1rem; text-shadow: 0 2px 4px #000; }
    
    /* Ajuste para el separador del footer en móviles pequeños */
    .separator { display: none; }
    .copyright-text { display: flex; flex-direction: column; gap: 5px; }
}