:root {
    --primary: #1D3F85; /* Azul Fonsacal */
    --accent: #E31E24;  /* Rojo Fonsacal */
    --dark: #05070a;    /* Negro técnico (Mucho mejor que el #0F172A) */
    --white: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.03); /* Cristal sutil */
    --bg-light: #f8fafc;   /* Blanco técnico */
    --card-white: #ffffff;
    --text-main: #0f172a;  /* Gris casi negro para máxima lectura */
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background: #f4f7f6; 
    overflow-x: hidden; /* Solo evitamos el scroll lateral */
}

.container { max-width: 1250px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 5; }

/* NAVBAR */
.glass-nav {
    position: fixed; top: 0; width: 100%; height: 100px;
    background: rgba(255, 255, 255, 0.98); 
    backdrop-filter: blur(10px);
    z-index: 1000; 
    border-bottom: 3px solid var(--primary);
    display: flex; align-items: center;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-content { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo-btn { display: flex; align-items: center; gap: 15px; text-decoration: none; transition: 0.3s; }
.logo-btn:hover { transform: scale(1.03); }
.main-logo { height: 75px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1)); }
.brand-name { font-size: 2.4rem; font-weight: 900; color: var(--primary); letter-spacing: -1.5px; }

.nav-links { display: flex; gap: 35px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 700; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* BOTÓN NAV */
.btn-shine {
    background: var(--accent); color: white; padding: 14px 28px; border-radius: 50px;
    font-weight: 800; text-decoration: none; font-size: 0.9rem;
    position: relative; overflow: hidden; display: inline-block;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.3);
}

/* HERO */
.hero {
    height: 100vh; position: relative;
    display: flex; align-items: center; color: white;
    background: url('../images/hero.jpg') center/cover no-repeat;
    overflow: hidden; /* Importante para el brillo global */
}

.hero-bg-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 20%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}

.hero-content { position: relative; z-index: 10; width: 100%; }

h1 { font-size: 4.8rem; font-weight: 800; line-height: 1.1; margin: 20px 0; }
.highlight { color: var(--accent); }
p { font-size: 1.3rem; margin-bottom: 40px; max-width: 750px; opacity: 0.9; }

.btn-main {
    background: var(--accent); color: white; padding: 20px 45px;
    border-radius: 12px; font-weight: 800; text-decoration: none;
    display: inline-block; position: relative; overflow: hidden;
    border-bottom: 5px solid #b0151a; font-size: 1.2rem;
}

.btn-phone { color: #FFFFFF; font-weight: 700; text-decoration: none; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }

.services-overview { padding: 100px 0; background: var(--white); }

/* DISEÑO TÍTULO PREMIUM */
.section-title {
    text-align: center;
    margin-bottom: 70px;
    padding: 0 20px;
}

.sub-heading {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 10px;
    opacity: 0.8;
}

.main-heading {
    font-size: 3.5rem; /* Más grande y potente */
    font-weight: 900;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    background-clip: text; /* Propiedad estándar */
    -webkit-background-clip: text; /* Compatibilidad para Chrome/Safari */
    -webkit-text-fill-color: transparent;
    display: inline-block; /* Asegura que el gradiente se aplique solo al texto */
}

.title-divider {
    width: 80px;
    height: 5px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 10px;
    position: relative;
}

.title-divider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 5px;
    background: var(--primary);
    right: -30px;
    border-radius: 10px;
}
/* Espaciado del título */
.section-title.margin-bottom-lg {
    margin-bottom: 90px; /* Aumentado de 70px a 90px para dar más aire */
}

/* Espaciado extra en la rejilla de tarjetas */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; /* Un poco más de separación entre tarjetas también */
    padding-top: 20px;
}

.service-card {
    background: #f8fafc;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-15px);
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--primary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: 0.3s;
}

.service-card:hover .service-icon { color: var(--accent); transform: scale(1.1); }

.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--dark); }

.link-more {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.link-more i { transition: 0.3s; }
.service-card:hover .link-more i { transform: translateX(5px); }

/* SECCIÓN ESTADÍSTICAS */
.stats-section {
    background: var(--primary);
    padding: 80px 0;
    color: white;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent); /* Rojo para los iconos */
    margin-bottom: 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.stat-text {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Decoración extra: Un sutil degradado para que no sea un bloque plano */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.2) 0%, transparent 100%);
    pointer-events: none;
}

.features-section {
    padding: 100px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid transparent;
    transition: 0.4s all ease;
}

.feature-item:hover {
    border-color: #eee;
    background: #fdfdfd;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(29, 63, 133, 0.1); /* Azul muy clarito */
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border-radius: 50%;
    margin: 0 auto 25px;
    transition: 0.3s;
}

.feature-item:hover .feature-icon {
    background: var(--accent);
    color: white;
    transform: rotateY(360deg);
}

.feature-item h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
}

.cta-final {
    padding: 60px 0 100px;
}

.cta-box {
    background: var(--primary);
    border-radius: 30px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(29, 63, 133, 0.2);
}

.cta-box h2 { font-size: 2.2rem; margin-bottom: 15px; }
.cta-box p { opacity: 0.8; font-size: 1.1rem; }

/* El botón del CTA con un efecto extra */
.cta-box .btn-main {
    background: white;
    color: var(--primary);
    border-bottom: 5px solid #d1d5db;
}

.cta-box .btn-main:hover {
    background: var(--accent);
    color: white;
    border-color: #b0151a;
}

/* Decoración de fondo para que no sea plano */
.cta-box::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

/* FOOTER BASE */
.main-footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 60px;
    padding-bottom: 50px;
}

.footer-logo {
    height: 90px; /* Tamaño equilibrado, ni gigante ni minúsculo */
    width: auto;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.footer-info p {
    font-size: 0.95rem; /* Tamaño elegante */
    color: #94a3b8;
    line-height: 1.7;
    max-width: 320px;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block;
    transition: 0.3s ease;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    color: #cbd5e1;
    font-size: 0.95rem;
    width: fit-content; /* Área de interacción real */
}

.footer-contact i {
    color: var(--accent);
    font-size: 1.1rem;
    width: 20px; /* Alineación perfecta */
}

/* REFINAMIENTO LÍNEA FINAL COPYRIGHT */
.footer-bottom {
    padding: 25px 0; /* Espaciado interno más sutil */
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Línea divisoria muy fina */
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem; /* Tamaño reducido para que no sea "tocho" */
    color: #64748b; /* Gris suave para que no brille tanto como el contenido principal */
    letter-spacing: 0.5px; /* Un poco de aire entre letras */
    margin: 0;
    opacity: 0.8;
}

.footer-bottom strong {
    color: var(--white); /* Resaltamos nuestra marca RSW Studio con el blanco puro */
    font-weight: 600;
    opacity: 1;
    transition: color 0.3s ease;
}

/* Efecto sutil al pasar el ratón por nuestra marca */
.footer-bottom strong:hover {
    color: var(--accent); /* Un toque de rojo al pasar el ratón */
    cursor: default;
}

/* HERO SERVICES - RECONSTRUCCIÓN TOTAL */
.hero-services-final {
    position: relative;
    height: 100vh;
    min-height: 800px;
    background: #05070a;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.overlay-dark {
    position: absolute;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, #05070a 30%, rgba(5, 7, 10, 0.4) 100%);
    z-index: 2;
}

.bg-parallax {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transform: scale(1.1); /* Efecto de profundidad */
}

/* CONTENIDO */
.hero-wrapper {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
}

.hero-main-info h1 {
    font-size: 5.5rem; /* Impacto total */
    font-weight: 900;
    line-height: 0.95;
    color: var(--white);
    margin: 25px 0;
}

.accent-text {
    color: var(--accent); /* Rojo Fonsacal */
    -webkit-text-stroke: 1px var(--accent);
}

.hero-main-info p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 550px;
    line-height: 1.7;
    margin-bottom: 45px;
}

/* DATA PANEL (DIFERENTE AL ANTERIOR) */
.hero-data-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.data-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-left: 3px solid var(--accent);
    border-radius: 0 15px 15px 0;
    transition: 0.4s;
}

.data-card:hover { background: rgba(255, 255, 255, 0.07); }

.data-card strong {
    display: block; font-size: 2.5rem; color: var(--white);
}

.data-card span { color: #64748b; font-weight: 600; text-transform: uppercase; font-size: 0.8rem; }

/* ==========================================================================
   HERO SERVICIOS - RSW STUDIO PREMIUM (2026)
   ========================================================================== */

.hero-services-final {
    position: relative;
    height: 100vh;
    min-height: 800px;
    background: #05070a; /* Fondo ultra oscuro para resaltar el texto */
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Manejo de Imagen de Fondo y Overlay */
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-parallax {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5; /* Intensidad similar a la Home para legibilidad */
    transform: scale(1.1);
    transition: transform 0.1s ease-out;
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #05070a 30%, transparent 100%);
    z-index: 2;
}

/* Contenedor y Tipografía */
.hero-content {
    position: relative;
    z-index: 3;
    padding-top: 80px; /* Espacio para el header unificado */
}

.top-tag {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: block;
}

.hero-content h1 {
    font-size: 5.5rem; /* Tamaño masivo como en el Index */
    font-weight: 900;
    line-height: 0.95;
    color: var(--white);
    margin: 0 0 30px 0;
}

.text-accent {
    color: var(--accent); /* Rojo corporativo FONSACAL */
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 50px;
}

/* BOTONERA - ADIÓS ENLACES AZULES */
.hero-btns {
    display: flex;
    align-items: center;
    gap: 25px;
}

.hero-btns a {
    text-decoration: none; /* Eliminamos el subrayado feo */
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-rsw-solid {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(227, 30, 36, 0.3);
}

.btn-rsw-solid:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(227, 30, 36, 0.5);
    background: #ff2a30; /* Un rojo un pelo más vivo al hover */
}

.btn-rsw-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-rsw-outline:hover {
    background: var(--white);
    color: var(--dark);
    transform: translateY(-5px);
}

/* Animación de Entrada */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   SECCIÓN DE ESPECIALIDADES (DEBAJO DEL HERO)
   ========================================================================== */
.specialties-section {
    background-color: var(--dark); /* Tu fondo #05070a */
    padding: 120px 0;
    color: var(--white);
}

.section-header-centered {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px auto;
}

.eyebrow-text {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.section-header-centered h2 {
    font-size: clamp(2.5rem, 6vw, 4rem); /* Título grande y adaptable */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.highlight-red { color: var(--accent); }
.highlight-blue { color: var(--primary); } /* Usamos tu azul Fonsacal aquí */

.section-description {
    font-size: 1.15rem;
    color: var(--gray-text);
    max-width: 700px;
    margin: 0 auto;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.specialty-card {
    display: block; /* Para que el <a> ocupe todo el espacio */
    background: rgba(255, 255, 255, 0.03); /* Fondo de cristal */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 40px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden; /* Importante para el efecto diagonal */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: left; /* Alineado a la izquierda para un look más técnico */
}

/* Efecto de desplazamiento diagonal al hover */
.specialty-card.card-diagonal-hover:before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(227, 30, 36, 0.1) 100%); /* Degradado sutil */
    transform: translateX(-100%) translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.specialty-card.card-diagonal-hover:hover:before {
    transform: translateX(0) translateY(0);
}

.specialty-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card-icon-wrapper {
    position: relative; /* Para que los iconos queden por encima del before */
    z-index: 1;
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 25px;
    display: inline-block; /* Para el hover del icono */
    transition: transform 0.3s ease;
}

.specialty-card:hover .card-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
}

.card-title {
    position: relative; z-index: 1;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--white);
}

.card-text {
    position: relative; z-index: 1;
    font-size: 1rem;
    color: var(--gray-text);
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-tags {
    position: relative; z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.card-tags span {
    background: rgba(227, 30, 36, 0.1); /* Fondo del tag más sutil */
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.fonsacal-services {
    background-color: var(--bg-light);
    padding: 100px 0;
    font-family: 'Segoe UI', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabecera con Jerarquía */
.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.badge-tag {
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.services-header h1 {
    font-size: 3.5rem;
    color: var(--text-dark);
    line-height: 1.1;
    margin-top: 10px;
}

.txt-blue { color: var(--primary); }
.txt-red { color: var(--accent); }

.experience-box {
    background: var(--white);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.exp-num { font-size: 2.5rem; font-weight: 900; color: var(--accent); }
.exp-txt { font-size: 0.7rem; font-weight: 700; color: var(--primary); }

.header-desc {
    max-width: 700px;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 60px;
}

/* Grid de Tarjetas */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 35px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(29, 63, 133, 0.1);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.icon-red { background: #fff1f2; color: var(--accent); }
.icon-blue { background: #eff6ff; color: var(--primary); }
.icon-dark { background: #f8fafc; color: var(--text-dark); }

.service-card h3 { font-size: 1.6rem; margin-bottom: 15px; }
.service-card p { color: var(--text-muted); line-height: 1.6; }

.card-pills { margin-top: 25px; display: flex; gap: 10px; }
.pill {
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* VARIABLES RSW STUDIO ACTUALIZADAS [cite: 2026-01-22] */
:root {
    --primary: #1D3F85; 
    --accent: #E31E24;  
    --dark-text: #0f172a;
    --light-text: #475569;
    --white: #ffffff;
    --grad: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.fonsacal-trust-section {
    padding: 140px 0;
    background: var(--white);
}

.trust-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.eyebrow {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
}

.trust-title {
    font-size: 3.8rem;
    font-weight: 900;
    color: var(--dark-text);
    line-height: 1.1;
    margin: 20px 0;
}

.text-gradient {
    background: var(--grad);
    background-clip: text; /* Versión estándar */
    -webkit-background-clip: text; /* Para Chrome/Safari */
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback */
    display: inline-block; /* Asegura que el gradiente se aplique bien al bloque de texto */
}

.trust-description {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Lista de Beneficios */
.trust-list { list-style: none; margin-bottom: 50px; }
.trust-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
}
.dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* Botón Estilo Consulting */
.btn-rsw-premium {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 20px 40px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 800;
    transition: 0.4s;
}
.btn-rsw-premium:hover {
    background: var(--dark-text);
    transform: translateY(-5px);
}

/* Contenedor de Imagen con el borde de la captura */
.image-wrapper {
    position: relative;
    padding: 15px;
    border-radius: 45px;
    background: var(--grad); /* El borde degradado */
}

.main-img {
    width: 100%;
    border-radius: 35px;
    display: block;
}

.location-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    padding: 20px 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.location-card i { color: var(--accent); font-size: 1.5rem; }

/* SECCIÓN PROCESO [cite: 2026-01-22] */
.fonsacal-process {
    padding: 100px 0;
    background-color: #ffffff;
    border-top: 1px solid #edf2f7;
}

.process-header {
    text-align: center;
    margin-bottom: 80px;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
}

/* La línea conectora sutil */
.process-timeline::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #edf2f7;
    z-index: 1;
}

.process-step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.step-number {
    width: 90px;
    height: 90px;
    background: var(--white);
    border: 3px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0 auto 25px auto;
    transition: 0.4s ease;
}

.process-step:hover .step-number {
    background: var(--grad);
    color: var(--white);
    border-color: transparent;
    transform: scale(1.1);
}

.process-step h3 {
    font-size: 1.4rem;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.process-step p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* DISEÑO DE PROCESO [cite: 2026-01-22] */
.process-section { padding: 80px 0; background: #ffffff; text-align: center; }
.process-timeline { 
    display: flex; justify-content: space-between; gap: 20px; 
    margin-top: 50px; position: relative;
}
@media (max-width: 768px) { .process-timeline { flex-direction: column; } }

.step-circle {
    width: 70px; height: 70px; border: 3px solid var(--primary);
    border-radius: 50%; display: flex; align-items: center; 
    justify-content: center; margin: 0 auto 20px;
    font-size: 1.4rem; font-weight: 800; color: var(--primary);
}

/* VARIABLES Y ESTILO BASE [cite: 2026-01-22] */
:root {
    --primary: #1D3F85; 
    --accent: #E31E24;  
    --dark: #0f172a;
    --white: #ffffff;
    --grad: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.sectors-premium {
    padding: 120px 0;
    background-color: #fcfdfe;
}

.sectors-intro { text-align: center; margin-bottom: 70px; }

/* Grid Estilo Bento [cite: 2026-01-22] */
.bento-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    height: 650px;
}

.bento-card {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 70%);
    z-index: 1;
}

.card-body {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 40px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Glassmorphism Icon [cite: 2026-01-22] */
.card-icon-c {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.sector-tag {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.card-text h3 { color: var(--white); font-size: 2rem; margin: 10px 0; }
.card-text p { color: rgba(255,255,255,0.7); line-height: 1.6; }

/* Efectos Hover [cite: 2026-01-22] */
.bento-card:hover .card-bg { transform: scale(1.1); }
.bento-side { display: flex; flex-direction: column; gap: 30px; }
.side-card { flex: 1; }

@media (max-width: 992px) {
    .bento-grid { grid-template-columns: 1fr; height: auto; }
    .main-card { height: 400px; }
    .side-card { height: 300px; }
}

/* Rutas de imágenes para los sectores [cite: 2026-01-22] */
.bg-home { 
    background-image: url('../images/chalet-aerotermia.png'); 
}
.bg-industry { 
    background-image: url('../images/nave-industrial-clima.jpg'); 
}
.bg-commercial { 
    background-image: url('../images/local-comercial-carcaixent.jpg'); 
}

/* SECCIÓN CTA FINAL [cite: 2026-01-22] */
.rsw-final-cta {
    padding: 60px 0 140px; /* Más aire abajo para el footer */
    background-color: #fcfdfe;
}

.cta-premium-card {
    background: linear-gradient(135deg, #1D3F85 0%, #E31E24 100%);
    padding: 80px;
    border-radius: 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 30px 60px rgba(29, 63, 133, 0.25);
    position: relative;
    overflow: hidden;
}

/* Adorno visual sutil de fondo */
.cta-premium-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.cta-info {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.cta-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.9;
    display: block;
    margin-bottom: 15px;
}

.cta-info h2 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
}

.cta-info p {
    font-size: 1.15rem;
    opacity: 0.85;
    line-height: 1.6;
}

/* Botón Estilo "Apple" Premium [cite: 2026-01-22] */
.btn-rsw-white {
    background: white;
    color: #1D3F85;
    padding: 22px 45px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-rsw-white:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    background: #f8fafc;
}

.btn-rsw-white i {
    transition: 0.3s;
}

.btn-rsw-white:hover i {
    transform: translateX(5px);
}

@media (max-width: 992px) {
    .cta-premium-card {
        flex-direction: column;
        text-align: center;
        padding: 50px 30px;
        gap: 40px;
    }
    .cta-info h2 { font-size: 2.2rem; }
}

.fonsacal-hero-contact {
    background: #ffffff; /* Fondo blanco puro solicitado */
    padding: 100px 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #1a1a1a;
}

.rsw-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.tag-line { color: #E31E24; font-weight: 800; font-size: 0.9rem; letter-spacing: 2px; }

.hero-main-title { font-size: 4.5rem; line-height: 1.1; font-weight: 900; margin: 20px 0; }

/* Gradiente corregido sin errores visuales */
.rsw-gradient-text {
    background: linear-gradient(90deg, #1D3F85 0%, #E31E24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle { font-size: 1.2rem; color: #4b5563; margin-bottom: 40px; }

/* Información en pastillas */
.hero-contact-info { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 40px; }
.info-pill { background: #f3f4f6; padding: 10px 20px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; }

/* Mapa Protegido (image_88e6aa.png fix) */
.hero-map-frame { border-radius: 20px; overflow: hidden; height: 250px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.hero-map-frame iframe { width: 100%; height: 100%; border: none; }

/* Formulario Estilo Limpio */
.hero-form-card {
    background: #ffffff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.08);
    border: 1px solid #f1f1f1;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-box { margin-bottom: 25px; }
.field-box label { display: block; font-weight: 700; margin-bottom: 10px; font-size: 0.9rem; }

.field-box input, .field-box textarea, .field-box select {
    width: 100%;
    padding: 15px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    outline: none;
    transition: 0.3s;
}

.field-box input:focus { border-color: #1D3F85; background: #fff; }

/* Botón de alto impacto */
.rsw-btn-submit {
    width: 100%;
    padding: 20px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(90deg, #1D3F85, #E31E24);
    color: white;
    font-weight: 800;
    cursor: pointer;
    transition: 0.4s;
    box-shadow: 0 15px 30px rgba(227, 30, 36, 0.2);
}

.rsw-btn-submit:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(227, 30, 36, 0.4); }

@media (max-width: 992px) { .hero-split { grid-template-columns: 1fr; } .hero-main-title { font-size: 3rem; } }

/* ==========================================================================
   ELEMENTOS CORE DEL HERO (FONDO BLANCO PREMIUM)
   ========================================================================== */

.hero-main-titlee {
    font-size: 4.5rem;          /* Impacto visual masivo */
    line-height: 1.1;           /* Interlineado compacto de ingeniería */
    font-weight: 900;           /* Peso máximo para autoridad */
    color: var(--dark)    !important;     /* Uso de tu variable #05070a */
    margin: 20px 0;
    letter-spacing: -2px;       /* Un toque más "pro" y apretado */
}

/* Fix del gradiente para el span dentro del h1 */
.rsw-gradient-textt {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;      /* Evita errores de renderizado en Chrome */
    position: relative;
}

.hero-subtitlee {
    font-size: 1.25rem;         /* Legibilidad alta */
    color: var(--light-text)    !important;   /* Tu variable #475569 para suavizar el tono */
    line-height: 1.7;           /* Espacio para que el texto "respire" */
    margin-bottom: 45px;
    max-width: 600px;           /* Evita líneas demasiado largas */
    font-weight: 500;
    opacity: 0.9;
}

/* Ajuste específico para cuando el fondo es blanco */
.fonsacal-hero-contactt .hero-main-titlee {
    color: #0f172a;             /* Forzamos el gris oscuro técnico */
}

/* Responsivo para que no se rompa en móvil */
@media (max-width: 768px) {
    .hero-main-titlee {
        font-size: 3rem;
        letter-spacing: -1px;
    }
    
    .hero-subtitlee {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
}

/* --- ESTILO CONFIGURADOR FONSACAL --- */
.budget-section {
    padding: 60px 0;
    background-color: #fcfcfc;
    min-height: 100vh;
}

/* Título Centrado (Como en image_7df657.png) */
.budget-header-centered {
    text-align: center;
    margin-bottom: 50px;
}

.main-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1d3f85; /* Azul RSW */
}

.text-accent { color: #e31e24; } /* Rojo Fonsacal */

/* Grid y Sidebar */
.config-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 15px;
    background: #fff;
    margin-bottom: 15px;
    transition: 0.3s ease;
    border: 1px solid #eee;
}

.nav-item.active {
    border: 2px solid #1d3f85;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.nav-dot {
    width: 40px; height: 40px;
    background: #4a67a1; /* Azul desaturado */
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center; justify-content: center;
    font-weight: 800;
}

.nav-item.active .nav-dot { background: #1d3f85; }

/* Tarjeta del Formulario */
.form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

/* Campos de entrada con icono */
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.rsw-field {
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 1rem;
}

/* Selector de servicios (image_7d81ff.png) */
.service-cards-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.s-box {
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.s-option input { display: none; }

.s-option input:checked + .s-box {
    border-color: #1d3f85;
    background: #f0f4ff;
}

.s-box i { font-size: 1.8rem; color: #1d3f85; margin-bottom: 10px; display: block; }

/* Botones */
.btn-rsw-prim {
    width: 100%;
    background: #0f172a;
    color: white;
    padding: 20px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    margin-top: 30px;
}

/* CENTRADO DE TÍTULO ABSOLUTO */
.budget-header-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 50px;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1d3f85;
    margin: 15px 0;
    line-height: 1.1;
}

.text-accent { color: #e31e24; }

/* GRID DEL CONFIGURADOR */
.config-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* PANELS (animations.css integrado) */
.step-pane {
    display: none;
    opacity: 0;
    transform: translateX(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.step-pane.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* BOTONERA */
.form-nav {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.btn-rsw-prim {
    flex: 1;
    background: #0f172a;
    color: white;
    padding: 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-rsw-prim:hover { background: #e31e24; }

.btn-rsw-sec {
    background: #f1f5f9;
    color: #1d3f85;
    padding: 20px 30px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
}

/* Centrado de Título Absoluto */
.budget-header-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 0 auto 50px auto;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1d3f85;
    margin: 10px 0;
}

/* Control de Paneles (Evita que el botón no haga nada) */
.step-pane {
    display: none; /* Por defecto ocultos */
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.step-pane.active {
    display: block !important; /* Forzamos visibilidad */
    opacity: 1;
    transform: translateX(0);
}

/* Estilo del botón cuando está en el paso final */
#btn-next {
    transition: background 0.3s;
}
#btn-next:active {
    transform: scale(0.98);
}

