/* --- VARIABLES --- */
:root {
    --bg-page: #F3F5F8;
    --navy-dark: #001A3A;
    --gold: #CBA358;
    --gold-gradient: linear-gradient(135deg, #DFB96E 0%, #B88E45 100%);
    --white: #FFFFFF;
    
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-page);
    color: var(--navy-dark);
    font-family: var(--font-body);
    position: relative;
    overflow-x: hidden;
}

/* Fondo arquitectónico en la parte superior derecha */
.bg-architectural {
    position: absolute;
    top: 0; right: 0;
    width: 50vw; height: 900px;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1200&auto=format&fit=crop') no-repeat right top;
    background-size: cover;
    opacity: 0.12;
    mask-image: linear-gradient(to left, black 30%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 30%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

.main-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px 60px 40px;
}

/* --- HEADER --- */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 30px 0 60px 0;
}
nav { display: flex; align-items: center; gap: 40px; }
nav a {
    text-decoration: none; color: var(--navy-dark);
    font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px;
}
.btn-gold {
    background: var(--gold-gradient); color: var(--navy-dark);
    padding: 12px 28px; border-radius: 8px; font-weight: 700;
    box-shadow: 0 8px 20px rgba(203, 163, 88, 0.3);
    transition: transform 0.2s;
}
.btn-gold:hover { transform: translateY(-2px); }

/* --- HERO --- */
.hero { max-width: 750px; margin-bottom: 70px; }
.hero h1 {
    font-family: var(--font-heading); font-size: 3.8rem; font-weight: 800;
    line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 25px; color: var(--navy-dark);
}
.hero p {
    font-size: 1.1rem; color: #4A5568; line-height: 1.6;
    margin-bottom: 35px; max-width: 600px;
}
.btn-dark {
    display: inline-flex; align-items: center; gap: 10px;
    background-color: var(--navy-dark); color: var(--white);
    padding: 16px 32px; border-radius: 8px; text-decoration: none;
    font-weight: 600; font-size: 0.9rem; letter-spacing: 0.5px;
    transition: opacity 0.2s;
}
.btn-dark:hover { opacity: 0.9; }

/* --- 3 TARJETAS SUPERIORES --- */
.grid-3-cols {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    margin-bottom: 50px;
}

/* Imágenes de sustitución de altísima calidad */
.bg-card-1 { background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=800&auto=format&fit=crop'); }
.bg-card-2 { background-image: url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?q=80&w=800&auto=format&fit=crop'); }
.bg-card-3 { background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=800&auto=format&fit=crop'); }
.card-img {
    height: 320px; 
    border-radius: 20px;
    display: flex; align-items: flex-end; /* Mantiene el texto abajo */
    background-size: cover; background-position: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden; /* Muy importante para que el difuminado no se salga de los bordes curvos */
}

.card-label {
    /* LA MAGIA DEL DIFUMINADO: Degradado de tu Azul Oscuro a Transparente */
    background: linear-gradient(to top, rgba(0, 26, 58, 0.95) 0%, rgba(0, 26, 58, 0.5) 60%, transparent 100%);
    
    /* Efecto cristal borroso detrás del texto */
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    
    width: 100%; 
    /* Damos más espacio arriba (60px) para que el degradado sea muy suave */
    padding: 60px 24px 24px 24px; 
    display: flex; justify-content: space-between; align-items: flex-end;
}

.card-label h3 {
    font-family: var(--font-heading); 
    font-size: 1.25rem;
    line-height: 1.2; 
    color: var(--white); /* Pasamos el texto a BLANCO para que se lea perfecto sobre el difuminado oscuro */
    text-shadow: 0 2px 10px rgba(0,0,0,0.4); /* Una pequeña sombra para que las letras resalten aún más */
}
}
.icon-box {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; justify-content: center; align-items: center; font-size: 1.2rem;
}
.icon-box.dark { background: var(--navy-dark); color: var(--white); }
.icon-box.gold { background: var(--gold-gradient); color: var(--navy-dark); }

/* --- SECCIÓN INFERIOR ASIMÉTRICA --- */
.grid-2-cols-masonry {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px;
}
.col-left { display: flex; flex-direction: column; gap: 40px; }
.col-right { display: flex; flex-direction: column; gap: 40px; padding-top: 20px; }

/* Tarjeta Diseño Web */
.web-card {
    display: flex; background: var(--white); border-radius: 24px;
    overflow: hidden; height: 320px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
.web-img-container {
    width: 55%; background: #EAE6DF; /* Color marrón suave de fondo */
    display: flex; align-items: center; justify-content: center;
}
.web-img-container img { width: 100%; height: 100%; object-fit: cover; }
.web-text {
    width: 45%; padding: 40px 30px; display: flex; flex-direction: column; justify-content: center;
}
.web-text h2 { font-family: var(--font-heading); font-size: 1.6rem; margin-bottom: 12px; }
.web-text p { font-size: 0.95rem; color: #555; line-height: 1.5; }

/* Tarjeta Store Grande */
.store-card-large {
    height: 300px; border-radius: 24px; padding: 30px;
    display: flex; align-items: flex-end;
    background-size: cover; background-position: center;
}
.bg-store-large { background-image: linear-gradient(rgba(223, 228, 237, 0.4), rgba(223, 228, 237, 0.9)), url('https://images.unsplash.com/photo-1586528116311-ad8ed7c80a30?q=80&w=1000&auto=format&fit=crop'); }
.store-label h2 { font-family: var(--font-heading); font-size: 1.8rem; color: var(--navy-dark); line-height: 1.2; }

/* Promesa (Derecha) */
.promise-block { padding-right: 40px; }
.eyebrow {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 1px;
    color: var(--navy-dark); display: block; margin-bottom: 20px;
}
.promise-block blockquote {
    font-family: var(--font-body); font-size: 1.5rem; font-weight: 400;
    line-height: 1.4; margin-bottom: 20px; position: relative; color: var(--navy-dark);
}
.promise-block blockquote::before {
    content: '“'; color: var(--gold); position: absolute;
    left: -25px; top: -10px; font-size: 3.5rem; font-family: Georgia, serif; line-height: 1;
}
.promise-block p { font-size: 0.95rem; color: #555; line-height: 1.6; }

/* Tarjeta Store Pequeña */
.store-card-small {
    height: 180px; border-radius: 24px; display: flex; align-items: center; justify-content: center; text-align: center;
    background-size: cover; background-position: center;
}
.bg-store-small { background-image: linear-gradient(rgba(215, 221, 230, 0.85), rgba(215, 221, 230, 0.85)), url('https://images.unsplash.com/photo-1555680202-c86f0e12f086?q=80&w=800&auto=format&fit=crop'); }
.store-card-small h2 { font-family: var(--font-heading); font-size: 1.4rem; color: var(--navy-dark); line-height: 1.3; }

/* Footer */
.footer-texts { margin-top: auto; padding-top: 20px; text-align: center; }
.company-name { font-size: 0.9rem; font-weight: 600; color: var(--navy-dark); margin-bottom: 8px; }
.copyright { font-size: 0.75rem; color: #888; }

/* =========================================
   DISEÑO RESPONSIVE (MÓVILES Y TABLETS)
========================================= */

/* Adaptación para Tablets (Pantallas medianas) */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .grid-2-cols-masonry { grid-template-columns: 1fr; gap: 40px; } /* Pasa de 2 columnas a 1 */
    .col-right { padding-top: 0; }
    .bg-architectural { width: 100vw; opacity: 0.05; }
}

/* Adaptación para Móviles (Pantallas pequeñas) */
@media (max-width: 768px) {
    .main-wrapper { padding: 0 20px 40px 20px; } /* Márgenes más pequeños */
    
    /* Header y Navegación */
    header { flex-direction: column; gap: 20px; padding: 20px 0 30px 0; }
    nav { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .btn-gold { width: 100%; text-align: center; margin-top: 10px; }
    
    /* Hero Section (Textos principales) */
    .hero { margin-bottom: 50px; text-align: center; }
    .hero h1 { font-size: 2.2rem; margin-bottom: 15px; letter-spacing: -0.5px; }
    .hero p { font-size: 1rem; margin: 0 auto 25px auto; }
    .btn-dark { width: 100%; justify-content: center; }
    
    /* Las 3 Tarjetas de Servicios */
    .grid-3-cols { grid-template-columns: 1fr; gap: 20px; }
    .card-img { height: 260px; }
    
    /* Tarjeta de Diseño Web (Pasa a formato vertical) */
    .web-card { flex-direction: column; height: auto; }
    .web-img-container { width: 100%; height: 200px; }
    .web-text { width: 100%; padding: 30px 20px; text-align: center; }
    
    /* Tarjeta Store Grande */
    .store-card-large { height: 250px; padding: 20px; justify-content: center; text-align: center; }
    .store-label h2 { font-size: 1.5rem; }
    
    /* Promesa de la Empresa */
    .promise-block { padding-right: 0; text-align: center; margin-top: 20px; }
    .promise-block blockquote { font-size: 1.3rem; margin-top: 30px; }
    /* Centramos las comillas doradas */
    .promise-block blockquote::before { left: 50%; top: -35px; transform: translateX(-50%); font-size: 4rem; }
    
    /* Tarjeta Store Pequeña */
    .store-card-small { height: 150px; padding: 20px; }
    .store-card-small h2 { font-size: 1.2rem; }
}