:root {
    --accent: #C7D600; /* Color Institucional */
    --dark: #000000;
    --white: #ffffff;
    --off-white: #f9f9f9;
    --soft-gray: #f2f2f0;
}

body, html { margin: 0; padding: 0; width: 100%; background: var(--dark); color: var(--white); font-family: 'Inter', sans-serif; scroll-behavior: smooth; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 600; }

/* Header */
header { position: fixed; top: 0; width: 100%; padding: 40px 0; z-index: 1000; transition: 0.3s; display: flex; justify-content: space-around; align-items: center; }
header.scrolled { background: rgba(0, 0, 0, 0.95); padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.logo-nav { font-weight: 700; letter-spacing: 7px; font-size: 1.4rem; text-transform: uppercase; }
nav ul { list-style: none; display: flex; gap: 40px; margin: 0; padding: 0; }
nav a { text-decoration: none; color: white; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.7; transition: 0.3s; }
nav a:hover { opacity: 1; color: var(--accent); }

/* Hero */
.hero { position: relative; width: 100%; height: 100vh; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.fondo-container { position: absolute; width: 100%; height: 120%; top: -10%; z-index: 1; opacity: 0.6; }
.mascara-container { position: absolute; width: 100%; height: 100vh; z-index: 50; display: flex; justify-content: center; align-items: center; pointer-events: none; }
.recorte-A { width: 100%; height: 100%; -webkit-mask-image: url('A_transparente.png'); mask-image: url('A_transparente.png'); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; transform: scale(1.1); pointer-events: auto; }
.slideshow { position: relative; width: 100%; height: 100%; }
.slide { position: absolute; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 2s ease-in-out; }
.slide.active { opacity: 1; }

/* Secciones */
.estudio-section { padding: 140px 15%; background: var(--white); color: #1a1a1a; text-align: center; }
.estudio-section h2 { font-size: 3rem; margin-bottom: 30px; }
.estudio-section p { font-size: 1.2rem; max-width: 800px; margin: 0 auto; color: #444; line-height: 1.8; }

/* Proyectos (4 columnas) */
.projects-section { background: var(--white); }
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.project-card { position: relative; overflow: hidden; height: 500px; background: #000; }
.project-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: 0.6s; opacity: 0.8; }
.project-card:hover .project-img { transform: scale(1.05); opacity: 1; }
.project-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: white; }

/* Capacidades */
.capabilities { padding: 120px 10%; background: var(--soft-gray); color: #1a1a1a; text-align: center; }
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 60px; margin-top: 60px; }

/* Contacto */
.contact-section { padding: 120px 10%; background: var(--white); color: #1a1a1a; display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }
.btn-action { padding: 18px 30px; border: 1px solid #1a1a1a; text-decoration: none; color: #1a1a1a; font-size: 0.8rem; text-transform: uppercase; font-weight: 600; }
.btn-action.wa { background: #1a1a1a; color: #fff; }
.btn-action:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.form-group { margin-bottom: 25px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 15px 0; border: none; border-bottom: 1px solid #ccc; background: transparent; font-family: 'Inter', sans-serif; }
.submit-btn { width: 100%; padding: 20px; background: #1a1a1a; color: #fff; border: none; text-transform: uppercase; cursor: pointer; }

/* Responsivo */
@media (max-width: 1024px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .project-grid { grid-template-columns: 1fr; } .contact-section { grid-template-columns: 1fr; } }
/* Asegurar que las tarjetas sigan viÃ©ndose bien siendo enlaces */
.project-card { 
    display: block; 
    text-decoration: none; 
    color: inherit; 
    cursor: pointer;
}
/* --- ESTILOS COMPLEMENTARIOS PARA CATÃLOGOS INTERACTIVOS --- */
.catalog-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); 
    gap: 30px; 
    padding: 0 10%; 
    margin-bottom: 80px;
}

.project-card-catalog { 
    position: relative; 
    width: 100%; 
    height: 550px; 
    overflow: hidden; 
    background: #000000; 
}

.project-img-switch { 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    transition: transform 0.6s ease, opacity 0.4s ease; 
    opacity: 0.9;
}

.project-card-catalog:hover .project-img-switch {
    transform: scale(1.03);
}

/* Ficha TÃ©cnica Moderna que se revela con Hover */
.info-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.88); 
    color: #ffffff; 
    padding: 50px; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.4s ease, visibility 0.4s ease;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    box-sizing: border-box;
}

.project-card-catalog:hover .info-overlay { 
    opacity: 1; 
    visibility: visible; 
}

.info-overlay h3 { 
    font-size: 2.2rem; 
    margin-bottom: 25px; 
    color: var(--accent); /* Usa tu color institucional #C7D600 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.info-overlay p {
    font-size: 1rem;
    margin: 12px 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.info-overlay strong {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    display: inline-block;
    width: 140px;
}

/* Controles de cambio de imagen rÃ¡pidos (Puntos inferiores) */
.img-controls { 
    position: absolute; 
    bottom: 25px; 
    left: 25px; 
    display: flex; 
    gap: 12px; 
    z-index: 20; 
}

.btn-dot { 
    width: 14px; 
    height: 14px; 
    border-radius: 50%; 
    border: 1px solid #ffffff; 
    cursor: pointer; 
    background: transparent; 
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-dot:hover { 
    background: #ffffff; 
    transform: scale(1.2);
}

/* AdaptaciÃ³n para pantallas de tablets y mÃ³viles */
@media (max-width: 768px) {
    .catalog-grid { grid-template-columns: 1fr; padding: 0 5%; }
    .project-card-catalog { height: 450px; }
    .info-overlay { padding: 30px; }
}