/* --- CONFIGURACIÓN CROMÁTICA DE ALTO CONTRASTE (DISEÑO PREMIUM OSCURO) --- */
:root {
    --bg-primary: #0B0B0C;      /* Fondo general ultra oscuro estilo estudio */
    --bg-card: #141416;         /* Tarjetas oscuras elevadas */
    --bg-white: #ffffff;
    
    --text-main: #FFFFFF;       /* Títulos principales en blanco titanio absoluto */
    --text-muted: #A1A1A5;      /* Textos secundarios y párrafos en plata mate */
    --text-dark: #121212;
    
    --border-light: #242426;     /* Líneas finas arquitectónicas */
    --accent: #FFFFFF;          /* Color de acento */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & ESTRUCTURA --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 100px 24px;
}

/* --- TIPOGRAFÍA Y COMPONENTES REUTILIZABLES --- */
.section-tag {
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.section-title {
    font-size: 38px;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px auto;
}

/* Botones con inversión de contraste */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--bg-white);
}

.btn-primary:hover {
    background-color: #e5e5ea;
    border-color: #e5e5ea;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--bg-white);
    background-color: rgba(255,255,255,0.05);
}

/* --- NAVEGACIÓN SUPERIOR IMMERSIVE --- */
.header-nav {
    background-color: rgba(11, 11, 12, 0.85);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.04em;
    border: 2px solid var(--text-main);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 0;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.nav-item:hover {
    color: var(--text-main);
}

/* Dropdown de Navegación */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    width: 760px;
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr) 1.3fr;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-col h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.dropdown-col ul {
    list-style: none;
}

.dropdown-col ul li {
    margin-bottom: 12px;
}

.dropdown-col ul li a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
}

.dropdown-col ul li p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.dropdown-cta-box {
    background-color: var(--bg-primary);
    padding: 20px;
    border: 1px solid var(--border-light);
}

.dropdown-cta-box h5 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.dropdown-cta-box p {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.dropdown-cta-box .btn-download {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

/* --- HERO (FONDO CON IMAGEN REAL ADAPTATIVA) --- */
.hero-section {
    position: relative;
    padding: 180px 24px;
    text-align: center;
    background-image: url(Imagenes/1.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
}

/* Máscara oscura para legibilidad tipográfica impecable */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 11, 12, 0.7) 0%, rgba(11, 11, 12, 0.85) 100%);
    z-index: 1;
}

/* Ocultar tag IMG sobrante si existiera en el HTML */
.hero-bg {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-title {
    font-size: 52px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-main);
    margin: 24px auto 24px auto;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 18px;
    color: #E1E1E6;
    max-width: 620px;
    margin: 0 auto 40px auto;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* --- SERVICES SECTIONS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: #48484a;
}

.card-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    flex-grow: 1;
}

.service-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
}

/* --- PORTFOLIO --- */
.portfolio-section {
    background-color: #020202;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
}

.image-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-item:hover .image-wrapper img {
    transform: scale(1.02);
}

.portfolio-info h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.portfolio-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.portfolio-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

/* --- PROCESO --- */
.process-section {
    background-color: var(--bg-primary);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.process-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 40px 24px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.step-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.process-card h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
}

.process-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* --- SPLIT / DETALLE TÉCNICO --- */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-text div {
    margin-bottom: 32px;
}

.split-text h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.split-text p {
    font-size: 15px;
    color: var(--text-muted);
}

.split-image img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border: 1px solid var(--border-light);
}

/* --- BLOG GRIDS --- */
.blog-section {
    border-top: 1px solid var(--border-light);
}

/* --- BLOG GRIDS (ESTRUCTURA DE 3x2) --- */
.blog-section {
    border-top: 1px solid var(--border-light);
}

.blog-grid {
    display: grid;
    /* Forzamos 3 columnas idénticas y fluidas */
    grid-template-columns: repeat(3, 1fr); 
    gap: 32px;
}

.blog-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%; /* Asegura que todas las tarjetas tengan el mismo alto si el texto varía */
}

.blog-card:hover {
    border-color: #48484a;
}

.blog-img-wrapper {
    width: 100%;
    height: 220px; /* Reducimos sutilmente el alto de la imagen para equilibrar las 3 columnas */
    overflow: hidden;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.03);
}

.blog-card-content {
    padding: 24px; /* Un padding un poco más compacto para que respire mejor en 3 columnas */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.blog-card-content h3 {
    font-size: 18px; /* Ajustamos el tamaño del título para que no se encime */
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-card-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1; /* Empuja el botón "Leer más" siempre hacia abajo para mantener la línea */
}

.blog-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    margin-top: auto; /* Anclaje perfecto al fondo de la tarjeta */
}

.blog-card:hover {
    border-color: #48484a;
}

.blog-img-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.03);
}

.blog-card-content {
    padding: 32px;
}

.blog-meta {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-card-content h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}

.blog-card-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.blog-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
}

/* --- TESTIMONIOS --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 40px 32px;
}

.stars {
    color: #FFD700;
    font-size: 14px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 32px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background-color: #2c2c2e;
    border-radius: 50%;
}

.author-info h4 {
    font-size: 14px;
    font-weight: 600;
}

.author-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* --- FAQ --- */
.faq-section {
    border-bottom: 1px solid var(--border-light);
}

.faq-container {
    max-width: 740px;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
}

.faq-icon {
    position: relative;
    width: 12px;
    height: 12px;
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-main);
    transition: var(--transition-smooth);
}
.faq-icon::before { top: 5px; left: 0; width: 100%; height: 2px; }
.faq-icon::after { left: 5px; top: 0; width: 2px; height: 100%; }

.faq-item.active .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-item.active .faq-icon::before { transform: rotate(180deg); }

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-panel p {
    padding-bottom: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

/* --- DISPOSICIÓN: CONTACTO + MAPA --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    margin-top: 40px;
}

.cta-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-card h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
}

.cta-card p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    gap: 16px;
}

/* Contenedor del Mapa Estilizado */
.map-wrapper {
    width: 100%;
    height: 400px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    filter: invert(90%) hue-rotate(180deg) opacity(0.85);
    transition: var(--transition-smooth);
}

.map-wrapper:hover {
    filter: invert(90%) hue-rotate(180deg) opacity(1);
}

/* --- CORRECCIÓN: ZONAS DE SERVICIO --- */
.service-zones {
    margin-top: 48px;
    padding: 32px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    text-align: left;
}

.service-zones h3 {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    color: var(--text-main);
}

.service-zones p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* --- FOOTER --- */
.main-footer {
    background-color: #020202;
    border-top: 1px solid var(--border-light);
    padding: 64px 0 32px 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand-col p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
}

.footer-links-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 16px;
}

.footer-links-col ul { list-style: none; }
.footer-links-col ul li { margin-bottom: 10px; }
.footer-links-col ul li a { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.footer-links-col ul li a:hover { color: var(--text-main); }

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* --- CORRECCIÓN INTEGRAL: BOTÓN FLOTANTE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 32px;
    right: 32px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
    
    /* El valor aislado evita superposiciones con los mapas de Google e iframes */
    z-index: 99999; 
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: #FFFFFF;
}

/* --- DISEÑO RESPONSIVE CORREGIDO --- */
@media (max-width: 900px) {
    .dropdown-menu { width: 92vw; grid-template-columns: 1fr; position: fixed; top: 70px; height: 75vh; overflow-y: auto; background-color: #141416; }
    .portfolio-grid, .split-section, .contact-grid, .blog-grid { grid-template-columns: 1fr; gap: 32px; }
    .map-wrapper { height: 300px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .nav-links, .nav-actions .btn-secondary { display: none; }
    .hero-title { font-size: 34px; }
    .hero-section { padding: 120px 24px; min-height: 70vh; }
    .hero-buttons { flex-direction: column; gap: 12px; }
    .footer-top { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: column; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    
    /* Reposicionamiento sutil en teléfonos móviles para que no estorbe */
    .whatsapp-float {
        bottom: 24px;
        right: 24px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* ==========================================================================
   NUEVOS ESTILOS PARA LA SECCIÓN CONTACTO (REDES SOCIALES INTEGRADAS)
   ========================================================================== */

/* Hace que la tarjeta de contacto ocupe el 100% al no haber mapa */
.contact-grid.full-width-grid {
    grid-template-columns: 1fr;
    max-width: 850px;
    margin: 40px auto 0 auto;
}

/* Contenedor de botones de redes sociales */
.cta-social-buttons {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Botones de contacto premium */
.btn-social-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-main);
    border-radius: 4px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-social-contact i {
    font-size: 16px;
}

/* Colores de marca sutiles con hover controlado para no romper la estética oscura */
/* Contenedor de botones de redes sociales */
.cta-social-buttons {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Botón base de red social - Estilo de lujo minimalista */
.btn-social-contact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.03em;
    border-radius: 0px; /* Bordes rectos y arquitectónicos, combinan más con tu diseño */
    transition: var(--transition-smooth);
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.btn-social-contact i {
    font-size: 16px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

/* --- EFECTOS HOVER INDIVIDUALES (Elegancia pura) --- */

/* ==========================================================================
   CTA REDES SOCIALES - ESTILO ESTUDIO PURO (NEGRO / GRIS / BLANCO)
   ========================================================================== */

/* Contenedor de botones de redes sociales */
.cta-social-buttons {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Botón base: Arquitectónico, bordes filosos, fondo transparente y texto plata mate */
.btn-social-contact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase; /* Le da un aspecto más editorial y de catálogo */
    letter-spacing: 0.08em;
    border-radius: 0px; /* Esquinas rectas y puras */
    background-color: transparent;
    color: var(--text-muted); /* Empiezan integrados en el gris secundario */
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

/* Íconos en gris mate por defecto */
.btn-social-contact i {
    font-size: 15px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   SECCIÓN CONTACTO: BOTONES ACROMÁTICOS (NEGRO, GRIS, BLANCO)
   ========================================================================== */

/* Contenedor de los tres botones */
.cta-social-buttons {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* El botón base: Sin fondo de color, esquinas rectísimas y texto gris mate */
.btn-social-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase; /* Forzar mayúsculas estilo catálogo */
    letter-spacing: 0.08em;
    border-radius: 0px; /* Bordes rectos tipo estudio de arquitectura */
    background-color: transparent; /* Adiós al verde/rosa/azul de fondo */
    color: var(--text-muted); /* Color gris plata mate por defecto */
    border: 1px solid var(--border-light); /* Borde fino oscuro */
    transition: var(--transition-smooth);
    flex: 1; /* Hace que los tres botones tengan el mismo ancho de forma equilibrada */
    min-width: 160px;
}

/* Íconos integrados en el mismo gris */
.btn-social-contact i {
    font-size: 15px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

/* --- EFECTOS HOVER (Interactividad Premium) --- */

/* WhatsApp (Botón de acción principal): Al pasar el mouse hace inversión completa a blanco */
.btn-social-contact.btn-main-social:hover {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border-color: var(--bg-white);
}
.btn-social-contact.btn-main-social:hover i {
    color: var(--text-dark); /* Ícono negro sobre fondo blanco */
}

/* Instagram y Facebook (Secundarios): Encienden el borde y las letras a blanco titanio */
.btn-social-contact.btn-sec-social:hover {
    color: var(--text-main);
    border-color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.02); /* Brillo de fondo casi imperceptible */
}
.btn-social-contact.btn-sec-social:hover i {
    color: var(--text-main);
}

/* Estilizado de las cajas de zonas (Misiones / Online) */
.service-zones .zone-box {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    padding: 24px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.service-zones .zone-box:hover {
    border-color: #343437;
    background-color: rgba(255, 255, 255, 0.04);
}


/* ==========================================================================
   REDISEÑO TOTAL DEL FOOTER (PREMIUM & ALINEADO)
   ========================================================================== */

.main-footer {
    background-color: #050506; /* Un tono sutilmente diferente al fondo puro para dar profundidad */
    border-top: 1px solid var(--border-light);
    padding: 80px 0 40px 0;
    width: 100%;
}

/* Contenedor interno para respetar el max-width del sitio */
.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
    align-items: start;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand-col p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 320px;
    line-height: 1.6;
}

.footer-links-col h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 24px;
    letter-spacing: 0.1em;
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-col ul li {
    margin-bottom: 14px;
}

.footer-links-col ul li a {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-links-col ul li a:hover {
    color: var(--text-main);
    transform: translateX(4px); /* Efecto sutil de desplazamiento al pasar el mouse */
}

/* Parte baja del footer */
.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom strong {
    color: var(--text-main);
    font-weight: 500;
}


/* ==========================================================================
   ADAPTACIONES RESPONSIVE ACTUALIZADAS
   ========================================================================== */

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-brand-col {
        grid-column: span 2;
        margin-bottom: 20px;
    }
    .contact-grid.full-width-grid {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-brand-col {
        grid-column: span 1;
    }
    .footer-links-col h4 {
        margin-bottom: 16px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-top: 24px;
    }
    .cta-social-buttons {
        flex-direction: column;
    }
    .btn-social-contact {
        justify-content: center;
        width: 100%;
    }
}
/* --- PORTFOLIO CON CARRUSEL INTEGRADO --- */
.portfolio-section {
    background-color: #020202;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
}

/* Contenedor del carrusel con máscara táctil */
.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

/* La pista interna que permite el deslizamiento horizontal */
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* Fuerza a la imagen a centrarse perfectamente */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    .carousel-track {
    /* ... tus otras propiedades ... */
    cursor: grab; /* Muestra la mano abierta por defecto */
}

.carousel-track:active {
    cursor: grabbing; /* Muestra la mano cerrada cuando hace clic y arrastra */
}
}

/* Ocultar la barra de scroll horrible para mantener la limpieza visual */
.carousel-track::-webkit-scrollbar {
    display: none;
}
.carousel-track {
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.carousel-container {
    position: relative;
    width: 100%;
    /* Bajamos la altura a una proporción arquitectónica estándar (16:9) */
    height: 320px; 
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.carousel-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Volvemos al reencuadre automático */
    
    /* Importante: focaliza el encuadre en el centro para que no se desfase el zoom */
    object-position: center center; 
    
    transition: var(--transition-smooth);
}

/* Indicador sutil minimalista en la esquina inferior */
/* --- FLECHAS DEL CARRUSEL (ESTILO ESTUDIO MODERNO) --- */

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(11, 11, 12, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-smooth);
    opacity: 0; /* Ocultas por defecto para no ensuciar la foto */
}

/* Las flechas aparecen sutilmente solo cuando pasás el mouse sobre el proyecto */
.carousel-container:hover .carousel-arrow {
    opacity: 1;
}

/* Posicionamiento de cada lado */
.prev-arrow {
    left: 16px;
}
.next-arrow {
    right: 16px;
}

/* Hover individual de la flecha */
.carousel-arrow:hover {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border-color: var(--bg-white);
}

/* En pantallas táctiles (móviles) las dejamos visibles fijas pero más chicas, ya que no hay 'hover' */
@media (max-width: 768px) {
    .carousel-arrow {
        opacity: 1;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .prev-arrow { left: 8px; }
    .next-arrow { right: 8px; }
}
/* Al poner el mouse arriba del carrusel, el indicador se vuelve blanco brillante */
.carousel-container:hover .carousel-indicator {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Ajuste responsive para pantallas medianas */
@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .carousel-container {
        height: 320px; /* Un poco más bajo en tablets/móviles para balancear */

        
    }
.blog-grid {
        /* En tablets pasa a 2 columnas y en celulares a 1 */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
        gap: 24px;}

    
    
}
/* ==========================================================================
   VISTA EN PANTALLA COMPLETA (LIGHTBOX PREMIUM)
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 11, 12, 0.98); /* Fondo ultra oscuro traslúcido */
    z-index: 999999; /* Por encima de absolutamente todo */
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
}

/* El contenedor interno para deslizar las fotos gigantes */
.lightbox-track {
    display: flex;
    width: 100%;
    height: 85vh;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}
.lightbox-track::-webkit-scrollbar { display: none; } /* Ocultar barra */

/* Formato de las fotos dentro de la pantalla completa */
.lightbox-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Se muestra entera sin zoom tosco */
    scroll-snap-align: start;
    user-select: none;
}

/* Botón de cerrar (esquina superior derecha) */
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: var(--text-muted);
    font-size: 38px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1010;
    transition: var(--transition-smooth);
}
.lightbox-close:hover { color: var(--text-main); }

/* Flechas de navegación gigantes */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    z-index: 1010;
    padding: 20px;
    transition: var(--transition-smooth);
}
.lightbox-arrow:hover { color: var(--text-main); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ==========================================================================
   VISTA EN PANTALLA COMPLETA (LIGHTBOX PREMIUM)
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 11, 12, 0.98); /* Fondo ultra oscuro traslúcido */
    z-index: 999999; /* Por encima de absolutamente todo */
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
}

/* El contenedor interno para deslizar las fotos gigantes */
.lightbox-track {
    display: flex;
    width: 100%;
    height: 85vh;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}
.lightbox-track::-webkit-scrollbar { display: none; } /* Ocultar barra */

/* Formato de las fotos dentro de la pantalla completa */
.lightbox-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Se muestra entera sin zoom tosco */
    scroll-snap-align: start;
    user-select: none;
}

/* Botón de cerrar (esquina superior derecha) */
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: var(--text-muted);
    font-size: 38px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1010;
    transition: var(--transition-smooth);
}
.lightbox-close:hover { color: var(--text-main); }

/* Flechas de navegación gigantes */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    z-index: 1010;
    padding: 20px;
    transition: var(--transition-smooth);
}
.lightbox-arrow:hover { color: var(--text-main); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
/* ==========================================================================
   ESTILOS DEL LECTOR DE BLOG (MODAL) - MSFWEB
   ========================================================================== */

/* Contenedor de pantalla completa (Fondo oscuro) */
.blog-reader-modal {
    display: none;             /* Arranca oculto, el JS lo cambia a flex */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fondo negro semitransparente */
    backdrop-filter: blur(5px); /* Desenfoque estético de fondo */
    z-index: 99999;            /* Por encima de todo el sitio web */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Caja blanca/oscura central donde va la nota */
.blog-reader-content {
    background-color: #1a1a1a; /* O cambiá a #fff si tu estética es clara */
    color: #ffffff;            /* Color del texto */
    padding: 40px;
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;          /* No pasa del 85% de la pantalla */
    overflow-y: auto;          /* Si la nota es larga, genera scroll interno */
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Botón de cerrar (X) */
.blog-reader-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: #a1a1a5;
    transition: color 0.2s ease;
}

.blog-reader-close:hover {
    color: #fff;               /* Color al pasar el mouse por la X */
}

/* Estilos internos del texto inyectado */
.blog-reader-body h2 {
    font-size: 28px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-reader-body .modal-blog-meta {
    display: block;
    font-size: 14px;
    color: #a1a1a5;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.blog-reader-body p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #e1e1e5;
}
/* Contenedor principal de la grilla */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjeta del Blog: Estructura ultra simétrica y limpia */
.blog-card-content {
    background-color: #141414; /* Fondo oscuro integrado */
    border: 1px solid #222222; /* Borde sutil */
    border-radius: 4px; /* Bordes rectos minimalistas */
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 250px; /* Asegura simetría exacta en toda la grilla */
    transition: all 0.3s ease;
}

/* Efecto Hover elegante */
.blog-card-content:hover {
    border-color: #444444;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Categoría/Tag superior */
.blog-card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888888;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Título principal de la tarjeta */
.blog-card-content h3 {
    font-size: 1.35rem;
    line-height: 1.4;
    color: #ffffff;
    margin: 0 0 auto 0; /* Empuja el botón abajo para mantener simetría */
    font-weight: 400;
    letter-spacing: -0.5px;
}

/* Botón de acción - Leer Más */
.btn-read-more {
    display: inline-block;
    font-size: 0.8rem;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1.5px;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 4px;
    margin-top: 2rem;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.btn-read-more:hover {
    opacity: 0.7;
}

/* Estilos para el texto renderizado dentro del modal */
.modal-blog-meta {
    display: block;
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* ==========================================================================
   ESTILOS DEL LECTOR DE BLOG (MODAL) - MSFWEB
   ========================================================================== */

/* Contenedor de pantalla completa (Fondo oscuro) */
.blog-reader-modal {
    display: none;             /* Arranca oculto, el JS lo cambia a flex */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fondo negro semitransparente */
    backdrop-filter: blur(5px); /* Desenfoque estético de fondo */
    z-index: 99999;            /* Por encima de todo el sitio web */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Caja blanca/oscura central donde va la nota */
.blog-reader-content {
    background-color: #1a1a1a; /* O cambiá a #fff si tu estética es clara */
    color: #ffffff;            /* Color del texto */
    padding: 40px;
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;          /* No pasa del 85% de la pantalla */
    overflow-y: auto;          /* Si la nota es larga, genera scroll interno */
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Botón de cerrar (X) */
.blog-reader-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: #a1a1a5;
    transition: color 0.2s ease;
}

.blog-reader-close:hover {
    color: #fff;               /* Color al pasar el mouse por la X */
}

/* Estilos internos del texto inyectado */
.blog-reader-body h2 {
    font-size: 28px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-reader-body .modal-blog-meta {
    display: block;
    font-size: 14px;
    color: #a1a1a5;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.blog-reader-body p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #e1e1e5;
}