/* --- VARIABLES Y CONFIGURACIÓN --- */
:root {
    --bg-dark: #0f1216;       /* Negro azulado profundo */
    --bg-card: #1a1d23;       /* Gris muy oscuro */
    --gold: #d4af37;          /* Dorado elegante */
    --gold-light: #f3e5ab;    /* Dorado claro para textos */
    --text-main: #e0e0e0;     /* Blanco suave */
    --text-muted: #a0a0a0;    /* Gris texto secundario */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: #fff;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* --- UTILIDADES DE ANIMACIÓN --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-gold {
    background: linear-gradient(135deg, #b8860b 0%, #d4af37 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    border: 1px solid var(--gold);
    color: var(--gold);
    background: transparent;
}

.btn-outline:hover {
    background: var(--gold);
    color: #000;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

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

/* --- HEADER --- */
header {
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 18, 22, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo span { color: var(--gold); font-size: 0.8rem; letter-spacing: 3px; margin-top: 3px; }

nav ul { display: flex; gap: 30px; }
nav ul li a { font-size: 0.9rem; color: var(--text-main); position: relative; }
nav ul li a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px; background: var(--gold); transition: 0.3s;
}
nav ul li a:hover::after { width: 100%; }

.mobile-menu-icon { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    background: radial-gradient(circle at 70% 20%, rgba(212, 175, 55, 0.08), transparent 60%);
    margin-top: 60px;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.label-top {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

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

.hero-image-side {
    position: absolute;
    right: 5%;
    top: 20%;
    width: 40%;
    height: 70%;
background: url('https://blog.casa-andina.com/wp-content/uploads/2025/01/plaza-armas-huaraz.jpg') no-repeat center/cover;    opacity: 0.2;
    border-radius: 20px;
    z-index: 1;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    /* Efecto de máscara para suavizar bordes */
    -webkit-mask-image: linear-gradient(to left, black, transparent);
    mask-image: linear-gradient(to left, black, transparent);
}

/* --- FEATURES / VALUE PROPS --- */
.features {
    padding: 4rem 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    background: #13161b;
}

.feature-box {
    padding: 2rem;
    border-left: 1px solid rgba(212, 175, 55, 0.3);
    transition: var(--transition);
}

.feature-box:hover {
    border-left: 3px solid var(--gold);
    background: rgba(255,255,255,0.02);
}

.feature-box i { color: var(--gold); font-size: 1.5rem; margin-bottom: 1rem; }
.feature-box h3 { font-size: 1.2rem; margin-bottom: 0.5rem; font-family: 'Inter', sans-serif; }
.feature-box p { font-size: 0.9rem; color: var(--text-muted); }

/* --- SECTIONS GENERALES --- */
.section { padding: 5rem 10%; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--gold); }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* --- CASOS REALES (GRID) --- */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.case-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
    transition: var(--transition); 
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.case-card:hover::before { transform: scaleX(1); }
.case-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }

.case-tag { 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    color: var(--gold); 
    letter-spacing: 1px; 
    margin-bottom: 10px; 
    display: inline-block;
}

.case-card h3 { margin-bottom: 1rem; font-family: 'Inter', sans-serif; font-weight: 600; }
.problem-text { font-style: italic; color: #888; margin-bottom: 1rem; border-left: 2px solid #444; padding-left: 10px; }
.solution-text { color: #ccc; font-size: 0.95rem; margin-bottom: 1.5rem; }

/* --- SERVICES --- */
.services-section { background: #13161b; }
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 1.5rem;
    background: var(--bg-dark);
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    transition: var(--transition);
}

.service-item:hover { border-color: var(--gold); }
.service-icon { 
    background: rgba(212, 175, 55, 0.1); 
    color: var(--gold); 
    padding: 12px; 
    border-radius: 50%; 
}

/* --- PROCESO (HOW WE WORK) --- */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    color: rgba(255,255,255,0.05);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.step-content { position: relative; z-index: 1; }
.step h3 { margin-bottom: 10px; color: var(--gold-light); }
.step p { font-size: 0.9rem; color: var(--text-muted); }

/* --- TEAM --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.member-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 2rem;
}

.member-img {
    width: 100%;
    height: 250px;
    background-color: #222;
    background-size: cover;
    background-position: center;
    margin-bottom: 1rem;
    filter: grayscale(80%);
    transition: var(--transition);
}

.member-card:hover .member-img { filter: grayscale(0%); }

.member-card h3 { font-size: 1.2rem; color: #fff; font-family: 'Inter', sans-serif; }
.member-role { color: var(--gold); font-size: 0.85rem; margin-bottom: 1rem; display: block; }
.member-quote { font-size: 0.9rem; font-style: italic; color: #999; padding: 0 1.5rem; margin-bottom: 1.5rem; }

.member-btn {
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 3px;
}

/* --- SECCIÓN CONTACTO (FORMULARIO) --- */
.contact-content {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
}

.contact-info, .contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.contact-detail i {
    color: var(--gold);
    font-size: 1.2rem;
}
.contact-detail span {
    font-size: 0.95rem;
}

.contact-form-container h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
}

.contact-form .input-group {
    margin-bottom: 15px;
}

.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #101010;
    color: var(--text-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

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

.contact-form button {
    width: 100%;
    border-radius: 4px;
    margin-top: 10px;
}


/* --- FOOTER --- */
footer {
    background: #0a0c0f;
    padding: 4rem 10% 2rem;
    border-top: 1px solid #222;
}

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

.footer-col h4 { color: var(--gold); margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #888; font-size: 0.9rem; }
.footer-col ul li a:hover { color: #fff; padding-left: 5px; }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1a1a1a;
    color: #555;
    font-size: 0.8rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .contact-content { flex-direction: column; }
}

@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; justify-content: center; height: auto; padding: 150px 5% 80px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-image-side { display: none; }
    
    /* Menú móvil */
    nav ul { 
        display: none; 
        flex-direction: column; 
        position: absolute; 
        top: 70px; 
        left: 0; 
        width: 100%; 
        background: #0f1216; 
        padding: 20px; 
        text-align: center; 
    }
    nav ul.active { display: flex; }
    .mobile-menu-icon { display: block; color: white; }
    
    .contact-content { padding: 2rem; }
}
/* --- FOOTER MEJORADO --- */
#footer-mejorado {
    background: #0a0c0f; /* Un poco más oscuro que el fondo general */
    padding: 4rem 10% 1.5rem;
    border-top: 5px solid var(--gold); /* Línea dorada fuerte arriba */
}

.footer-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col {
    padding: 0;
}

.col-title { 
    color: var(--gold); 
    margin-bottom: 1.8rem; 
    font-size: 1.2rem; 
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 10px;
}

/* Marca y Slogan */
.footer-col-brand {
    padding-right: 20px;
}
.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.gold-accent-text {
    color: var(--gold);
}
.brand-slogan {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-footer-cta {
    border-radius: 4px; /* Botón más cuadrado para el footer */
    font-size: 0.9rem;
    padding: 10px 20px;
}

/* Navegación */
.footer-links li {
    margin-bottom: 12px;
}
.footer-links li a {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}
.footer-links li a:hover {
    color: #fff;
    padding-left: 5px;
}
.link-arrow {
    font-size: 0.6rem;
    color: var(--gold);
    margin-right: 10px;
}

/* Contacto Directo */
.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 0.95rem;
}
.footer-contact .contact-item i {
    color: var(--gold);
    font-size: 1.1rem;
    margin-top: 2px;
}
.sub-info {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
    margin-top: -10px; /* Para acercarlo al elemento de dirección */
    padding-left: 30px;
}

/* Compromiso y Social */
.commitment-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}
.social-icons a {
    color: var(--gold);
    font-size: 1.5rem;
    transition: var(--transition);
}
.social-icons a:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Copyright (Parte Inferior) */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #1a1a1a;
    color: #555;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Media Query (Asegurar que sea responsive) */
@media (max-width: 768px) {
    #footer-mejorado {
        padding: 3rem 5% 1rem;
    }
    .footer-grid-container {
        grid-template-columns: 1fr;
    }
}