/*
Theme Name: Conri
Theme URI: https://conri.com.sv
Description: Tema oficial de Conri
Author: Conri
Version: 1.0.0
Text Domain: conri
*/

/* ============================================================
   1. VARIABLES
   ============================================================ */
:root {
    --primary: #063559;
    --primary-dark: #042844;
    --primary-light: #0a4a7a;
    --secondary: #3c678f;
    --accent: #4c82c6;
    --accent-dark: #3c678f;
    --white: #ffffff;
    --bg: #fcfcfc;
    --bg-muted: #f8f8f8;
    --text: #0b1317;
    --text-muted: rgba(11, 19, 23, 0.65);
    --border: #e6e4e4;
    --icon-bg: rgba(6, 53, 89, 0.06);
    /* Even more subtle */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(6, 53, 89, 0.08);
    --shadow-lg: 0 12px 32px rgba(6, 53, 89, 0.12);
    --radius: 4px;
    /* Reduced from 8px */
    --radius-lg: 6px;
    /* Reduced from 12px */
    --transition: cubic-bezier(0.16, 1, 0.3, 1);
    --container: 1200px;
    --font: 'Montserrat', system-ui, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

/* ============================================================
   2. ANIMATIONS
   ============================================================ */

/* Scroll-reveal base */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--transition),
        transform 0.8s var(--transition);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Reveal variants */
.reveal-left {
    transform: translateX(-32px);
}

.reveal-right {
    transform: translateX(32px);
}

.reveal-zoom {
    transform: scale(0.95);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================================
   3. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-dark);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

/* ============================================================
   3. LAYOUT
   ============================================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

/* Alinea el contenido de todas las secciones con el header (1200px) */
/* hero-section y cta-section quedan excluidas — ya gestionan el ancho de sus hijos */
.wp-block-group[class*="-section"]:not(.hero-section):not(.cta-section)>.wp-block-group__inner-container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 32px;
    width: 100%;
}

/* Encabezado de sección: h2 + p introductorio, estilo unificado */
/* Excluye hero y cta — tienen fondo oscuro y gestionan sus propios colores */
.wp-block-group[class*="-section"]:not(.hero-section):not(.cta-section) .wp-block-group__inner-container>.wp-block-heading {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
    text-align: center;
    margin-bottom: 16px;
}

/* Heading sin p seguido: lleva la raya y el mb él mismo */
.wp-block-group[class*="-section"]:not(.hero-section):not(.cta-section) .wp-block-group__inner-container>.wp-block-heading.reveal.is-visible:not(:has(+ p)) {
    padding-bottom: 24px;
    position: relative;
    margin-bottom: 64px;
}

.wp-block-group[class*="-section"]:not(.hero-section):not(.cta-section) .wp-block-group__inner-container>.wp-block-heading.reveal.is-visible:not(:has(+ p))::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.wp-block-group[class*="-section"]:not(.hero-section):not(.cta-section) .wp-block-group__inner-container>.wp-block-heading+p {
    font-size: 16px;
    color: var(--text-muted);
    text-align: center;
    max-width: 560px;
    margin-inline: auto;
    margin-bottom: 64px;
    line-height: 1.7;
    padding-bottom: 24px;
    position: relative;
}

.wp-block-group[class*="-section"]:not(.hero-section):not(.cta-section) .wp-block-group__inner-container>.wp-block-heading+p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* ============================================================
   4. HEADER & NAV
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.main-nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 48px;
    transition: height 0.4s var(--transition);
}

.main-nav.scrolled .container {
    height: 64px;
}

.nav-logo {
    flex-shrink: 0;
}

.nav-logo-img {
    height: 48px;
    width: auto;
}

.nav-logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.nav-menu li a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item>a,
.nav-menu li a.active {
    color: var(--primary);
}

.nav-menu li a:hover::after,
.nav-menu li.current-menu-item>a::after,
.nav-menu li a.active::after {
    transform: scaleX(1);
}

.nav-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--primary-light);
    color: var(--white) !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 28px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.wp-block-button__link {
    background: var(--primary);
    color: var(--white) !important;
    border-color: var(--primary);
}

.wp-block-button__link:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--white) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--primary) !important;
    border-color: var(--primary);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--primary);
    color: var(--white) !important;
}

/* CTA section buttons (on dark bg) */
.cta-section .wp-block-button__link {
    background: var(--white);
    color: var(--primary) !important;
    border-color: var(--white);
}

.cta-section .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 11px 28px;
}

.cta-section .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white) !important;
}

.cta-section .wp-block-button__link:hover {
    background: transparent;
    color: var(--white) !important;
    border-color: var(--white);
}

.btn-whatsapp .wp-block-button__link {
    background: #25d366;
    border-color: #25d366;
    color: var(--white) !important;
}

.btn-whatsapp .wp-block-button__link:hover {
    background: #1ebe59;
    border-color: #1ebe59;
}

/* ============================================================
   6. ICON CONTAINER (shared across sections)
   ============================================================ */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--icon-bg);
    flex-shrink: 0;
    color: var(--primary);
}

.icon-box svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
}

/* ============================================================
   7. SECTION HEADERS
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   8. PAGE INTRO (inner pages — reemplaza el page-banner)
   ============================================================ */
.page-intro {
    background: var(--primary);
    background-image:
        linear-gradient(rgba(4, 40, 68, 0.92), rgba(4, 40, 68, 0.80)),
        url('assets/images/hero-bg-premium.png');
    background-size: cover;
    background-position: center;
    padding: 80px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Dot overlay igual que el hero */
.page-intro::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: 0.4;
}

.page-intro .container {
    position: relative;
    z-index: 1;
}

.page-intro-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 0;
}

/* Línea decorativa inferior igual que el acento de secciones */
.page-intro::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ============================================================
   9. HERO SECTION
   ============================================================ */
.wp-block-group.hero-section {
    background: var(--primary);
    background-image:
        linear-gradient(rgba(4, 40, 68, 0.88), rgba(4, 40, 68, 0.65)),
        var(--hero-bg, url('assets/images/hero-bg-premium.png'));
    background-size: cover;
    background-position: center calc(50% + var(--hero-y, 0px));
    padding: 180px 32px 200px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
    will-change: background-position;
}

/* Overlay decorative background */
.wp-block-group.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: 0.4;
}

/* Large faded circle top-right */
.wp-block-group.hero-section::after {
    content: '';
    position: absolute;
    top: -180px;
    right: -180px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 130, 198, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.wp-block-group.hero-section>* {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-group.hero-section .wp-block-heading {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -2px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 75%;
    margin: 0 auto 2rem;
}

/* Highlight last word with accent color */
.wp-block-group.hero-section .wp-block-heading em {
    font-style: normal;
    color: var(--accent);
    background-image: linear-gradient(120deg, var(--accent) 0%, #73a9e6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wp-block-group.hero-section>p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    width: 50%;
    margin: 0 auto 48px;
}

.wp-block-group.hero-section .hero-note {
    display: none;
}

.wp-block-group.hero-section .wp-block-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.wp-block-group.hero-section .wp-block-buttons .wp-block-button:first-child .wp-block-button__link {
    background: var(--white);
    border-color: var(--white);
    color: var(--primary) !important;
    padding: 13px 32px;
}

.wp-block-group.hero-section .wp-block-buttons .wp-block-button:first-child .wp-block-button__link:hover {
    background: var(--bg-muted);
    border-color: var(--bg-muted);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.wp-block-group.hero-section .wp-block-buttons .wp-block-button:last-child .wp-block-button__link {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--white) !important;
    padding: 13px 32px;
}

.wp-block-group.hero-section .wp-block-buttons .wp-block-button:last-child .wp-block-button__link:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ============================================================
   10. HERO TAGLINE BAR
   ============================================================ */
.hero-tagline {
    background: linear-gradient(105deg, var(--primary) 0%, var(--accent-dark) 100%);
    padding: 20px 32px;
    text-align: center;
}

.hero-tagline p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.hero-tagline p span {
    font-weight: 600;
    color: var(--white);
}

/* ============================================================
   11. SERVICES SECTION
   ============================================================ */
.wp-block-group.services-section {
    padding: 130px 0;
    background: var(--bg-muted);
}

.wp-block-group.services-section .wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.wp-block-group.services-section .wp-block-column {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100% !important;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    border: 1px solid var(--border);
    transition: box-shadow 0.4s var(--transition), transform 0.4s var(--transition);
}

.wp-block-group.services-section .wp-block-column:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

/* Icono como marca de agua */
.wp-block-group.services-section .service-icon {
    position: absolute;
    bottom: -52px;
    right: -71px;
    width: 246px;
    height: 244px;
    opacity: 0.06;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.wp-block-group.services-section .wp-block-column:hover .service-icon {
    opacity: 0.1;
}

.wp-block-group.services-section .service-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wp-block-group.services-section .wp-block-column h3 {
    font-size: 25px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.wp-block-group.services-section .wp-block-column p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================================
   11. TRUST SECTION
   ============================================================ */
.wp-block-group.trust-section {
    padding: 130px 0;
    background: var(--bg);
}

.wp-block-group.trust-section .wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.wp-block-group.trust-section .wp-block-column {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100% !important;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border);
    transition: box-shadow 0.4s var(--transition), transform 0.4s var(--transition);
}

.wp-block-group.trust-section .wp-block-column:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.wp-block-group.trust-section .trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--icon-bg);
    margin: 0 auto 24px;
    transition: background 0.25s ease;
}

.wp-block-group.trust-section .wp-block-column:hover .trust-icon {
    background: var(--primary);
}

.wp-block-group.trust-section .trust-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.25s ease;
}

.wp-block-group.trust-section .wp-block-column:hover .trust-icon svg {
    stroke: var(--white);
}

.wp-block-group.trust-section .wp-block-column h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    min-height: 2lh;
}

.wp-block-group.trust-section .wp-block-column p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================================
   12. PROCESS SECTION
   ============================================================ */
.wp-block-group.process-section {
    padding: 100px 0;
    background: var(--bg-muted);
}

.wp-block-group.process-section .wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.wp-block-group.process-section .wp-block-column {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    width: 100% !important;
}

/* Número del paso */
.wp-block-group.process-section .wp-block-column::before {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    font-family: var(--font);
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    box-shadow: 0 4px 12px rgba(6, 53, 89, 0.2);
}

.wp-block-group.process-section .wp-block-column:nth-child(1)::before {
    content: '1';
}

.wp-block-group.process-section .wp-block-column:nth-child(2)::before {
    content: '2';
}

.wp-block-group.process-section .wp-block-column:nth-child(3)::before {
    content: '3';
}

.wp-block-group.process-section .wp-block-column:nth-child(4)::before {
    content: '4';
}

/* Flecha conectora entre pasos */
.wp-block-group.process-section .wp-block-column:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: -33px;
    transform: translateY(-50%);
    width: 32px;
    text-align: center;
    font-size: 20px;
    color: var(--accent);
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.wp-block-group.process-section .wp-block-column h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.wp-block-group.process-section .wp-block-column p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============================================================
   13. CTA SECTION
   ============================================================ */
.wp-block-group.cta-section {
    padding: 130px 32px;
    background: var(--primary);
    background-image:
        linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Diagonal stripe texture */
.wp-block-group.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(-45deg,
            rgba(255, 255, 255, 0.025) 0px,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px,
            transparent 24px);
    pointer-events: none;
}

/* Large decorative ring */
.wp-block-group.cta-section::after {
    content: '';
    position: absolute;
    bottom: -140px;
    left: -140px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.wp-block-group.cta-section .wp-block-group__inner-container {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
}

.wp-block-group.cta-section .wp-block-heading {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.wp-block-group.cta-section .wp-block-group__inner-container>p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 40px;
    line-height: 1.75;
}

.wp-block-group.cta-section .wp-block-buttons {
    justify-content: center;
    gap: 12px;
}

.wp-block-group.cta-section .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   14. NOSOTROS — ABOUT SECTION
   ============================================================ */
.wp-block-group.about-section {
    padding: 130px 0;
    background: var(--bg);
}

.wp-block-group.about-section .wp-block-group__inner-container>.wp-block-heading+p {
    max-width: 650px;
    margin-inline: auto;
    line-height: 1.75;
}

.wp-block-group.about-section .wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.wp-block-group.about-section .wp-block-column {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    width: 100% !important;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s var(--transition), transform 0.3s var(--transition);
}

.wp-block-group.about-section .wp-block-column:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.wp-block-group.about-section .stat-icon {
    position: absolute;
    bottom: -40px;
    right: -56px;
    width: 180px;
    height: 180px;
    opacity: 0.05;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.wp-block-group.about-section .wp-block-column:hover .stat-icon {
    opacity: 0.09;
}

.wp-block-group.about-section .stat-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wp-block-group.about-section .wp-block-column h3 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.wp-block-group.about-section .wp-block-column p {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* ============================================================
   14b. NOSOTROS — VALUES SECTION
   ============================================================ */
.wp-block-group.values-section {
    padding: 130px 0;
    background: var(--bg-muted);
}

.wp-block-group.values-section .wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 64px;
}

.wp-block-group.values-section .wp-block-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100% !important;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border);
    transition: box-shadow 0.4s var(--transition), transform 0.4s var(--transition);
}

.wp-block-group.values-section .wp-block-column:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.wp-block-group.values-section .trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--icon-bg);
    margin: 0 auto 24px;
    transition: background 0.25s ease;
}

.wp-block-group.values-section .wp-block-column:hover .trust-icon {
    background: var(--primary);
}

.wp-block-group.values-section .trust-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.25s ease;
}

.wp-block-group.values-section .wp-block-column:hover .trust-icon svg {
    stroke: var(--white);
}

.wp-block-group.values-section .wp-block-column h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    min-height: 2lh;
}

.wp-block-group.values-section .wp-block-column p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================================
   15. TEAM SECTION
   ============================================================ */
.wp-block-group.team-section {
    padding: 130px 0;
    background: var(--bg-muted);
}

.wp-block-group.team-section .wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.wp-block-group.team-section .wp-block-column {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    border: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    width: 100% !important;
}

.wp-block-group.team-section .wp-block-column:hover {
    border-color: rgba(76, 130, 198, 0.3);
    border-top-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.wp-block-group.team-section .wp-block-column h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.wp-block-group.team-section .wp-block-column p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================================
   16. SERVICIOS — MAIN SERVICES
   ============================================================ */
.wp-block-group.main-services-section {
    padding: 130px 0;
    background: var(--bg);
}

.wp-block-group.main-services-section .wp-block-group__inner-container>.wp-block-heading,
.wp-block-group.main-services-section>.wp-block-heading {
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 80px;
}

.wp-block-group.main-services-section .wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 48px;
}

.wp-block-group.main-services-section .wp-block-column {
    width: 100% !important;
}

.wp-block-group.main-services-section .wp-block-column h3 {
    font-size: 25px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--icon-bg);
}

.wp-block-group.main-services-section .wp-block-list {
    padding-left: 0;
}

.wp-block-group.main-services-section .wp-block-list li {
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 0 8px 20px;
    position: relative;
    line-height: 1.5;
}

.wp-block-group.main-services-section .wp-block-list li:last-child {
    border-bottom: none;
}

.wp-block-group.main-services-section .wp-block-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 1px;
}

/* ============================================================
   17. SERVICIOS — POLICIES
   ============================================================ */
.wp-block-group.policies-section {
    padding: 130px 0;
    background: var(--bg-muted);
}

.wp-block-group.policies-section .wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.wp-block-group.policies-section .wp-block-column {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    width: 100% !important;
}

.wp-block-group.policies-section .wp-block-column h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--icon-bg);
}

.wp-block-group.policies-section .wp-block-list {
    padding-left: 0;
}

.wp-block-group.policies-section .wp-block-list li {
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 0 8px 22px;
    position: relative;
    border-bottom: 1px solid var(--bg-muted);
}

.wp-block-group.policies-section .wp-block-list li:last-child {
    border-bottom: none;
}

.wp-block-group.policies-section .wp-block-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
}

/* ============================================================
   18. FAQ SECTION
   ============================================================ */
.wp-block-group.faq-section {
    padding: 130px 0;
    background: var(--bg);
}

.wp-block-group.faq-section .wp-block-group__inner-container>.wp-block-heading,
.wp-block-group.faq-section>.wp-block-heading {
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 120px;
}

.wp-block-details {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    transition: border-color 0.35s ease;
}

.wp-block-details[open] {
    border-color: #b0b0b0;
}

.wp-block-details summary {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
}

.wp-block-details summary::after {
    content: '';
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform 0.35s ease;
    flex-shrink: 0;
    margin-bottom: 3px;
}

.wp-block-details[open] summary::after {
    transform: rotate(-135deg);
    margin-bottom: -3px;
}

.wp-block-details .wp-block-paragraph,
.wp-block-details p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================================
   19. CONTACT PAGE
   ============================================================ */
.inner-page > .wp-block-columns {
    display: grid !important;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 130px 0;
    align-items: start;
}

.inner-page > .wp-block-columns > .wp-block-column {
    width: 100% !important;
}

/* === Left column: Form === */
.inner-page > .wp-block-columns > .wp-block-column:first-child > .wp-block-heading {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 32px;
    padding-bottom: 20px;
    position: relative;
}

.inner-page > .wp-block-columns > .wp-block-column:first-child > .wp-block-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* === Right column: Info card === */
.inner-page > .wp-block-columns > .wp-block-column:last-child {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

/* Section headings inside right column */
.inner-page > .wp-block-columns > .wp-block-column:last-child > .wp-block-heading {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.inner-page > .wp-block-columns > .wp-block-column:last-child > .wp-block-heading:not(:first-child) {
    margin-top: 40px;
}

/* Contact info paragraphs */
.inner-page > .wp-block-columns > .wp-block-column:last-child > p {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Sub-description under WhatsApp heading */
.inner-page > .wp-block-columns > .wp-block-column:last-child > p:last-of-type {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.inner-page > .wp-block-columns > .wp-block-column:last-child > .wp-block-buttons {
    margin-top: 16px;
}

/* === Form === */
.conri-contact-form {
    width: 100%;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    outline: none;
    appearance: none;
}

.form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233c678f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(76, 130, 198, 0.1);
    background: var(--white);
}

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

.conri-contact-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    padding: 13px 32px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    letter-spacing: 0.3px;
}

.conri-contact-form button[type="submit"]:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.contact-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.5;
}

.contact-notice::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.contact-notice--ok {
    background: #edfaf3;
    border: 1px solid #7edcab;
    color: #1a7f4b;
}

.contact-notice--ok::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7f4b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12l3 3 5-5'/%3E%3C/svg%3E");
}

.contact-notice--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.contact-notice--error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23991b1b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4m0 4h.01'/%3E%3C/svg%3E");
}


/* ============================================================
   20. FOOTER CONTACT BAR
   ============================================================ */
.footer-contact-bar {
    background: var(--primary-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.footer-contact-bar .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
    max-width: none;
    margin: 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 40px clamp(24px, 5vw, 80px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.4s var(--transition);
}

.footer-contact-item:last-child {
    border-right: none;
}

.footer-contact-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.footer-contact-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    transition: all 0.4s var(--transition);
}

.footer-contact-item:hover .footer-contact-icon {
    transform: scale(1.1);
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    box-shadow: 0 0 20px rgba(76, 130, 198, 0.3);
}

.footer-contact-text {
    max-width: 180px;
}

.footer-contact-text span,
.footer-contact-text a {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.2px;
}


/* ============================================================
   21. FOOTER
   ============================================================ */
.site-footer {
    background: var(--primary-dark);
    padding: 64px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 48px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 52px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.75;
}

.footer-col-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    /* Increased contrast */
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    /* Increased contrast */
    margin-bottom: 12px;
}

.footer-contact-list li svg {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 3px;
}

.footer-contact-list a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    /* Increased contrast */
}

.footer-contact-list a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 28px 32px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-bottom-logo img {
    height: 32px;
    width: auto;
    opacity: 0.6;
}

.footer-bottom-logo .footer-logo-text {
    font-size: 18px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   22. GUTENBERG RESETS
   ============================================================ */
.wp-block-group {
    margin-bottom: 0 !important;
    padding-block: 100px;
    /* Consistency padding */
}

.wp-block-group.hero-section {
    padding-block: 160px 180px;
}

.wp-block-columns {
    margin-bottom: 0 !important;
}

.wp-block-buttons {
    margin-bottom: 0 !important;
    margin-top: 24px;
}

/* ============================================================
   23. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .wp-block-group.trust-section .wp-block-columns,
    .wp-block-group.values-section .wp-block-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-col-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav .container {
        position: relative;
        flex-wrap: wrap;
        height: auto;
        min-height: 64px;
        gap: 24px;
    }

    @keyframes navSlideIn {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    @keyframes navSlideOut {
        from { opacity: 1; transform: translateY(0); }
        to   { opacity: 0; transform: translateY(-8px); }
    }

    /* Fullscreen overlay */
    .nav-open {
        position: fixed;
        inset: 0;
        z-index: 999;
        background: var(--white);
        overflow-y: auto;
    }

    .nav-closing {
        position: fixed;
        inset: 0;
        z-index: 999;
        background: var(--white);
        overflow-y: auto;
        animation: navSlideOut 0.18s ease forwards;
    }

    /* Animate only the menu and CTA, not the logo row */
    .nav-open .nav-menu,
    .nav-open .nav-cta {
        animation: navSlideIn 0.22s ease forwards;
    }

    /* Keep logo + toggle in the same row, menu wraps below */
    .nav-open .container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        height: auto;
        min-height: 64px;
        padding-top: 9px;
        padding-bottom: 0;
    }

    .nav-menu {
        display: none;
        width: 100%;
    }

    .nav-open .nav-menu {
        display: flex;
        flex-direction: column;
        flex: 0 0 100%;
        border-top: 1px solid var(--border);
        margin-top: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        padding: 18px 24px;
        font-size: 16px;
        font-weight: 500;
        color: var(--primary);
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        box-sizing: border-box;
    }

    .nav-menu li a::after {
        display: none;
    }

    .nav-menu li a:hover {
        background: var(--bg-muted);
    }

    .nav-cta {
        display: none;
    }

    .nav-open .nav-cta {
        display: flex;
        flex: 0 0 100%;
        margin: 0;
        width: 100%;
        justify-content: center;
        border-radius: 0;
        box-sizing: border-box;
    }

    /* X animation on toggle */
    .nav-open .nav-toggle span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .nav-open .nav-toggle span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

    .page-intro {
        padding: 56px 24px;
    }

    .wp-block-group.hero-section {
        padding: 80px 24px 100px;
    }

    .wp-block-group.hero-section .wp-block-heading,
    .wp-block-group.hero-section>p {
        width: 100%;
    }

    .wp-block-group.services-section,
    .wp-block-group.trust-section,
    .wp-block-group.about-section,
    .wp-block-group.values-section,
    .wp-block-group.team-section,
    .wp-block-group.main-services-section,
    .wp-block-group.policies-section,
    .wp-block-group.faq-section {
        padding: 80px 0;
    }

    .wp-block-group.cta-section {
        padding: 80px 24px;
    }

    .wp-block-group.process-section {
        padding: 72px 0;
    }

    .wp-block-group.process-section .wp-block-column:not(:last-child)::after {
        display: none;
    }

    .wp-block-group[class*="-section"]:not(.hero-section):not(.cta-section) > .wp-block-group__inner-container {
        padding-inline: 24px;
    }

    .wp-block-group.services-section .wp-block-columns,
    .wp-block-group.trust-section .wp-block-columns,
    .wp-block-group.process-section .wp-block-columns,
    .wp-block-group.about-section .wp-block-columns,
    .wp-block-group.values-section .wp-block-columns,
    .wp-block-group.team-section .wp-block-columns,
    .wp-block-group.main-services-section .wp-block-columns,
    .wp-block-group.policies-section .wp-block-columns {
        grid-template-columns: 1fr !important;
    }


    .footer-contact-bar .container {
        grid-template-columns: 1fr;
    }

    .footer-contact-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 20px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .inner-page > .wp-block-columns {
        grid-template-columns: 1fr !important;
        padding: 80px 24px;
        gap: 40px;
    }

    .inner-page > .wp-block-columns > .wp-block-column:last-child {
        position: static;
        padding: 28px 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .wp-block-group.hero-section .wp-block-heading {
        font-size: 34px;
    }

    .wp-block-group.hero-section {
        padding: 64px 20px 80px;
    }
}