/* ===================================================================
   TIP & ABOGADOS - HOJA DE ESTILOS PREMIUM PARA LANDING DE CAPTACIÓN
   Colores corporativos oficiales:
   - Ámbar dorado principal: #ffae4a
   - Secundario terracota/naranja: #df6b3a
   - Azul institucional oscuro: #0b1b43 / #0a1128
   - Fondo cálido corporativo: #fff6ef
   - Fondo blanco puro: #ffffff
   - Texto principal: #1e293b / #334155
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Sen:wght@400;600;700;800&display=swap');

:root {
    --primary: #ffae4a;
    --primary-dark: #e8952a;
    --primary-glow: rgba(255, 174, 74, 0.35);
    --secondary: #df6b3a;
    --navy: #0b1b43;
    --navy-deep: #07112b;
    --navy-light: #162a63;
    --dark-bg: #090e1f;
    --warm-bg: #fff6ef;
    --warm-card: #fcf9f6;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --border-warm: #f2decb;
    --success: #10b981;
    --danger: #ef4444;
    --font-heading: 'Sen', 'Jost', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --shadow-soft: 0 10px 30px -5px rgba(11, 27, 67, 0.08);
    --shadow-hover: 0 20px 40px -8px rgba(11, 27, 67, 0.16);
    --shadow-gold: 0 12px 30px -4px rgba(255, 174, 74, 0.35);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ===================================================================
   TOP NOTIFICATION BAR & HEADER
   =================================================================== */
.top-notice-bar {
    background-color: var(--navy);
    color: #ffffff;
    font-size: 0.82rem;
    padding: 7px 1.5rem;
    font-weight: 500;
}

.top-notice-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-notice-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-notice-badge {
    background-color: var(--primary);
    color: var(--navy-deep);
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-phone-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.top-phone-link:hover {
    color: #ffffff;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(11, 27, 67, 0.07);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 8px 24px rgba(11, 27, 67, 0.08);
    background-color: #ffffff;
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
}

.brand-logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.brand-logo-link:hover .brand-logo-img {
    transform: scale(1.02);
}

.main-nav {
    display: none;
}

@media (min-width: 992px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 1.6rem;
    }
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--navy);
    position: relative;
    padding: 0.5rem 0.2rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--secondary);
}

.nav-link .dropdown-caret {
    font-size: 0.65rem;
    color: var(--text-light);
    transition: transform 0.25s ease, color 0.25s ease;
}

.nav-item-dropdown:hover .nav-link .dropdown-caret {
    transform: rotate(180deg);
    color: var(--secondary);
}

/* Submenús Desplegables Elegantes */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #ffffff;
    border: 1px solid rgba(11, 27, 67, 0.08);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 40px -8px rgba(11, 27, 67, 0.16);
    padding: 0.6rem;
    min-width: 270px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 1100;
}

/* Pseudo-elemento invisible para evitar que se cierre al mover el ratón */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    color: var(--navy);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-link-item:hover {
    background-color: #fff6ef;
    color: var(--secondary);
    transform: translateX(3px);
}

.dropdown-item-icon {
    font-size: 1.1rem;
    width: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-item-text {
    display: flex;
    flex-direction: column;
}

.dropdown-item-title {
    font-weight: 600;
    line-height: 1.25;
}

.dropdown-item-desc {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}

.dropdown-link-item:hover .dropdown-item-desc {
    color: var(--secondary);
}

.nav-link:hover {
    color: var(--secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-header-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(223, 107, 58, 0.25);
}

.btn-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 107, 58, 0.4);
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    padding: 0;
}

@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle span {
    display: block;
    height: 2.5px;
    width: 100%;
    background-color: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================================================================
   HERO SECTION CON FORMULARIO INTEGRADO (ALTA CONVERSIÓN)
   =================================================================== */
.hero-section {
    position: relative;
    background: radial-gradient(circle at 10% 20%, #fff9f4 0%, #ffffff 80%);
    padding: 3.5rem 1.5rem 5rem;
    border-bottom: 1px solid var(--border-warm);
    overflow: hidden;
}

.hero-glow-blob-1 {
    position: absolute;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 174, 74, 0.18) 0%, rgba(255, 174, 74, 0) 70%);
    top: -120px;
    right: -100px;
    pointer-events: none;
}

.hero-glow-blob-2 {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 27, 67, 0.07) 0%, rgba(11, 27, 67, 0) 70%);
    bottom: -150px;
    left: -100px;
    pointer-events: none;
}

.hero-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1.15fr 0.95fr;
        gap: 3.5rem;
    }

    .hero-content {
        order: 1;
        text-align: left;
        align-items: flex-start;
        margin-top: 0;
    }

    .hero-form-wrapper {
        order: 2;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fff1e5;
    color: var(--secondary);
    border: 1px solid #fbd9c2;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 1.2rem;
}

.hero-tag .dot-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(255, 174, 74, 0.7);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(255, 174, 74, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(255, 174, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 174, 74, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 4vw, 3.4rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.18;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.hero-title .highlight-text {
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.hero-title .highlight-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 174, 74, 0.4);
    z-index: -1;
    border-radius: 4px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 2rem;
}

.hero-badges-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2.2rem;
}

.hero-badge-item {
    background-color: #ffffff;
    border: 1px solid var(--border-warm);
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(11, 27, 67, 0.04);
}

.badge-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background-color: #fff6ef;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.badge-text-box h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.badge-text-box p {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0;
}

.hero-offices-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-offices-mini strong {
    color: var(--navy);
}

.flag-chip {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===================================================================
   TARJETA DEL FORMULARIO DE CAPTACIÓN (CONVERSIÓN MÁXIMA)
   =================================================================== */
.hero-form-wrapper {
    position: relative;
}

.form-premium-card {
    background: #ffffff;
    border: 1px solid rgba(255, 174, 74, 0.45);
    border-radius: var(--radius-lg);
    padding: 2.2rem 2rem;
    box-shadow: 0 25px 60px -15px rgba(11, 27, 67, 0.16), 0 0 0 1px rgba(255, 174, 74, 0.2);
    position: relative;
}

.form-header-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #ffffff;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(11, 27, 67, 0.3);
    white-space: nowrap;
}

.form-header-badge span.sparkle {
    color: var(--primary);
}

.form-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
    margin-top: 0.4rem;
    margin-bottom: 0.3rem;
    text-align: center;
}

.form-card-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.6rem;
}

/* Estilos de Campos de Formulario */
.form-group {
    margin-bottom: 1.15rem;
}

.form-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.35rem;
}

.form-label span.req {
    color: var(--secondary);
}

.input-control {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    background-color: #fafbfc;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.input-control:focus-within {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3.5px rgba(255, 174, 74, 0.2);
}

.input-control.has-error {
    border-color: var(--danger);
    background-color: #fff9f9;
}

.input-icon {
    padding-left: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0.72rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-main);
    outline: none;
}

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

.form-error-msg {
    color: var(--danger);
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 4px;
    display: block;
    min-height: 16px;
}

/* ===================================================================
   SELECTOR DE PAÍSES Y TELÉFONO CON PREFIJO AUTOMÁTICO
   =================================================================== */
.phone-country-group {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--border-color);
    background-color: #fafbfc;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.phone-country-group:focus-within {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3.5px rgba(255, 174, 74, 0.2);
}

.phone-country-group.has-error {
    border-color: var(--danger);
    background-color: #fff9f9;
}

.country-picker-wrapper {
    position: relative;
    border-right: 1.5px solid var(--border-color);
    flex-shrink: 0;
}

.selected-country-trigger {
    background: none;
    border: none;
    padding: 0.72rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--navy);
    height: 100%;
}

.selected-country-trigger:hover {
    background-color: #f1f5f9;
}

.selected-country-trigger.pulse {
    animation: gentlePulse 0.3s ease;
}

@keyframes gentlePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.country-flag {
    font-size: 1.25rem;
    line-height: 1;
}

.country-dial-code {
    font-weight: 700;
    color: var(--navy);
}

.arrow-icon {
    font-size: 0.65rem;
    color: var(--text-light);
    transition: var(--transition);
}

.country-picker-wrapper:focus-within .arrow-icon,
.country-dropdown.active ~ .selected-country-trigger .arrow-icon {
    transform: rotate(180deg);
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 280px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px rgba(11, 27, 67, 0.18);
    z-index: 100;
    display: none;
    overflow: hidden;
    animation: dropIn 0.2s ease forwards;
}

.country-dropdown.active {
    display: block;
}

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

.country-search-box {
    padding: 10px;
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.country-search-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
    font-family: var(--font-body);
}

.country-search-input:focus {
    border-color: var(--primary);
}

.country-options-list {
    max-height: 210px;
    overflow-y: auto;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.15s ease;
}

.country-option:hover {
    background-color: #fff6ef;
}

.option-flag {
    font-size: 1.2rem;
}

.option-name {
    flex-grow: 1;
    color: var(--text-main);
    font-weight: 500;
}

.option-dial {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.82rem;
}

.no-results {
    padding: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.country-select-native {
    display: none;
}

.phone-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 0.72rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
}

/* ===================================================================
   SELECTOR DE FRANJAS HORARIAS PARA LA LLAMADA
   =================================================================== */
.time-slots-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 6px;
}

@media (max-width: 480px) {
    .time-slots-container {
        grid-template-columns: 1fr;
    }
}

.time-slot-btn {
    background-color: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    transition: var(--transition);
    text-align: left;
}

.time-slot-btn:hover {
    border-color: var(--primary);
    background-color: #fffbf7;
}

.time-slot-btn.active {
    border-color: var(--secondary);
    background-color: #fff6ef;
    color: var(--secondary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(223, 107, 58, 0.15);
}

.time-slot-btn .slot-icon {
    font-size: 0.9rem;
    color: var(--primary-dark);
}

.custom-time-picker-wrap {
    display: none;
    margin-top: 8px;
}

.custom-time-picker-wrap.visible {
    display: block;
}

.custom-time-input {
    width: 100%;
    padding: 7px 12px;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-family: var(--font-body);
    background-color: #ffffff;
    outline: none;
}

/* Checkbox de Privacidad */
.privacy-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.77rem;
    color: var(--text-muted);
    line-height: 1.45;
    cursor: pointer;
}

.privacy-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--secondary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.privacy-checkbox-label a {
    color: var(--secondary);
    text-decoration: underline;
}

/* Botón de Envío Principal */
.btn-submit-lead {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.95rem 1.5rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-top: 0.8rem;
}

.btn-submit-lead:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -4px rgba(223, 107, 58, 0.45);
}

.btn-submit-lead:active {
    transform: translateY(0);
}

.btn-submit-lead .btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% { left: 200%; }
}

.form-security-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 1rem;
    font-size: 0.74rem;
    color: var(--text-light);
}

.security-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Spinner */
.spinner-border {
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================================================
   BARRA DE CONFIANZA / STATS Y DESPACHOS
   =================================================================== */
.trust-bar-section {
    background-color: var(--navy-deep);
    color: #ffffff;
    padding: 2.2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}

@media (min-width: 768px) {
    .trust-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.trust-item {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 1rem;
}

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

.trust-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.trust-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* ===================================================================
   SECCIÓN DE ÁREAS DE PRÁCTICA Y ESPECIALIDAD
   =================================================================== */
.section-wrapper {
    padding: 5.5rem 1.5rem;
}

.section-wrapper.bg-warm {
    background-color: var(--warm-bg);
}

.section-header {
    max-width: 750px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.section-tag {
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
    display: inline-block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.2vw, 2.7rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: 0.8rem;
}

.section-title-line {
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.services-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.2rem 1.8rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: #f7d2b2;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, #ffffff 0%, #fffbf6 100%);
    box-shadow: 0 10px 25px rgba(255, 174, 74, 0.12);
}

.service-badge-popular {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background-color: #fff6ef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    font-size: 1.8rem;
    color: var(--secondary);
}

.service-card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.service-card-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.4rem;
    flex-grow: 1;
}

.service-checklist {
    margin-bottom: 1.4rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 1rem;
}

.service-checklist li {
    font-size: 0.82rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.4rem;
}

.service-checklist li span.check-icon {
    color: var(--success);
    font-weight: 800;
}

.service-cta-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-cta-link:hover {
    color: var(--navy);
    gap: 10px;
}

/* ===================================================================
   SECCIÓN DE LOS 3 PILARES: COMPROMISO, CALIDAD, EXPERIENCIA
   =================================================================== */
.pillars-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pillar-card {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.pillar-avatar {
    width: 65px;
    height: 65px;
    margin: 0 auto 1.4rem;
    border-radius: 50%;
    padding: 10px;
    background-color: #fff6ef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-avatar img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.pillar-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.8rem;
}

.pillar-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ===================================================================
   DESPACHOS INTERNACIONALES (BARCELONA, CDMX, CHILE, PERÚ)
   =================================================================== */
.offices-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
}

@media (min-width: 640px) {
    .offices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .offices-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.office-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.office-img-wrapper {
    position: relative;
    height: 190px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.office-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.office-card:hover .office-img-wrapper img {
    transform: scale(1.06);
}

.office-country-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(11, 27, 67, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.office-body {
    padding: 1.4rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.office-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.office-address {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.office-phone {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 0.8rem;
    border-top: 1px solid #f1f5f9;
}

/* ===================================================================
   SECCIÓN DE PRUEBA SOCIAL / TESTIMONIOS
   =================================================================== */
.testimonials-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid var(--border-warm);
    border-radius: var(--radius-md);
    padding: 2.2rem 1.8rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars-row {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-quote {
    font-size: 0.94rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 1.4rem;
    font-style: italic;
}

.client-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
}

.client-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.client-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
}

.client-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===================================================================
   PREGUNTAS FRECUENTES (FAQ ACORDEÓN)
   =================================================================== */
.faq-container {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(255, 174, 74, 0.12);
}

.faq-question {
    padding: 1.2rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--navy);
    user-select: none;
}

.faq-toggle-icon {
    font-size: 1.2rem;
    color: var(--secondary);
    transition: transform 0.25s ease;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.4rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.faq-item.active .faq-answer {
    max-height: 350px;
    padding: 0 1.4rem 1.4rem;
}

/* ===================================================================
   BANNER CTA FINAL DE CAPTACIÓN
   =================================================================== */
.final-cta-section {
    position: relative;
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
    color: #ffffff;
    padding: 5rem 1.5rem;
    overflow: hidden;
    text-align: center;
}

.cta-bg-overlay {
    position: absolute;
    inset: 0;
    background-image: url('https://tipyabogados.com/wp-content/themes/starter-fse/assets/images/inner-banner.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.final-cta-content {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.final-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.final-cta-title span {
    color: var(--primary);
}

.final-cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.2rem;
}

.cta-actions-wrap {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn-cta-gold {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(255, 174, 74, 0.4);
}

.btn-cta-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 174, 74, 0.5);
}

.btn-cta-outline {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-cta-outline:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ===================================================================
   FOOTER OFICIAL
   =================================================================== */
.site-footer {
    background-color: #050a17;
    color: #cbd5e1;
    padding: 4.5rem 1.5rem 1.5rem;
    font-size: 0.88rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 1.3fr 1fr 1fr;
    }
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0.9rem;
    color: #94a3b8;
}

.footer-contact-item span.icon {
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.footer-gallery-grid img {
    border-radius: 6px;
    height: 75px;
    width: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.footer-gallery-grid img:hover {
    opacity: 0.8;
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: #64748b;
}

/* ===================================================================
   BOTONES FLOTANTES DE CONTACTO DIRECTO
   =================================================================== */
.floating-contact-group {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
    position: relative;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn.whatsapp {
    background-color: #25d366;
}

.floating-btn.phone {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.floating-btn .tooltip {
    position: absolute;
    right: calc(100% + 12px);
    background: var(--navy-deep);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.floating-btn:hover .tooltip {
    opacity: 1;
    transform: translateX(-4px);
}

/* ===================================================================
   MODAL DE CONFIRMACIÓN DE ÉXITO
   =================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 17, 43, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 100%;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content-card {
    transform: scale(1);
}

.modal-success-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-color: #ecfdf5;
    color: var(--success);
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 3px solid #a7f3d0;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.6rem;
}

.modal-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.6rem;
}

.modal-recap-box {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    margin-bottom: 1.8rem;
    text-align: left;
    font-size: 0.85rem;
}

.recap-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.recap-row:last-child {
    margin-bottom: 0;
}

.recap-label {
    color: var(--text-muted);
}

.recap-value {
    font-weight: 600;
    color: var(--navy);
}

.modal-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.btn-whatsapp-direct {
    background-color: #25d366;
    color: #ffffff;
    font-weight: 700;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-direct:hover {
    background-color: #20ba59;
}

.btn-close-modal {
    background: none;
    border: 1.5px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.8rem 1.4rem;
    border-radius: var(--radius-full);
    cursor: pointer;
}

.btn-close-modal:hover {
    background-color: #f1f5f9;
    color: var(--navy);
}

/* ===================================================================
   DRAWER DE NAVEGACIÓN MÓVIL RESPONSIVE
   =================================================================== */
.mobile-navigation-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 86vw;
    height: 100vh;
    background: #ffffff;
    z-index: 1500;
    box-shadow: -12px 0 40px rgba(11, 27, 67, 0.22);
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-navigation-drawer.active {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.9rem;
    border-bottom: 1.5px solid #f1f5f9;
}

.mobile-drawer-close {
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--navy);
    line-height: 1;
    transition: var(--transition);
}

.mobile-drawer-close:hover {
    background: var(--navy);
    color: #ffffff;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
}

.mobile-nav-item {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--navy);
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.mobile-nav-item:hover {
    background-color: #fff6ef;
    color: var(--secondary);
}

.mobile-nav-group {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.85rem;
    margin: 0.2rem 0;
}

.mobile-group-title {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.mobile-group-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mobile-sublink {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--navy);
    padding: 0.35rem 0.4rem;
    border-radius: 6px;
    display: block;
    transition: var(--transition);
}

.mobile-sublink:hover {
    color: var(--secondary);
    background-color: #ffffff;
    padding-left: 0.6rem;
}

.mobile-drawer-cta-wrap {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.mobile-drawer-btn-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-full);
    text-align: center;
    box-shadow: 0 4px 15px rgba(223, 107, 58, 0.3);
}

.mobile-drawer-btn-wa {
    background-color: #25d366;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-full);
    text-align: center;
}

/* ===================================================================
   SISTEMA COMPLETO DE RESPONSIVE DESIGN (TODOS LOS VIEWPORTS)
   =================================================================== */

/* Tablet y Pantallas Medianas (Max 991px) */
@media (max-width: 991px) {
    .header-container {
        padding: 0.75rem 1rem;
    }

    .hero-section {
        padding: 2rem 1.2rem 3.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    /* En móvil y tablet, el formulario es lo primero que se ve */
    .hero-form-wrapper {
        order: 1;
        width: 100%;
    }

    .hero-content {
        order: 2;
        text-align: center;
        align-items: center;
        margin-top: 0.5rem;
    }

    .hero-tag {
        margin: 0 auto 1.2rem;
    }

    .hero-badges-row {
        justify-content: center;
        max-width: 600px;
        margin: 0 auto 2rem;
    }

    .hero-offices-mini {
        justify-content: center;
    }

    .section-wrapper {
        padding: 4rem 1.2rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }
}

/* Tablets Pequeñas y Móviles Grandes (Max 768px) */
@media (max-width: 768px) {
    .top-notice-bar {
        padding: 6px 1rem;
        font-size: 0.78rem;
    }

    .top-notice-container {
        justify-content: center;
        text-align: center;
        gap: 0.35rem;
    }

    .site-header {
        position: sticky;
    }

    .brand-logo-img {
        height: 40px;
    }

    .btn-header-cta {
        padding: 0.5rem 1rem;
        font-size: 0.82rem;
    }

    .hero-title {
        font-size: clamp(1.9rem, 7vw, 2.6rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .trust-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.4rem;
    }

    .trust-item {
        border-right: none;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
    }

    .trust-number {
        font-size: 1.85rem;
    }

    .trust-label {
        font-size: 0.78rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .offices-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.4rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
}

/* Móviles Estándar (Max 540px) */
@media (max-width: 540px) {
    .top-notice-bar .top-notice-item:first-child {
        display: none; /* Mantiene limpio el top bar en pantallas estrechas */
    }

    .top-notice-container {
        justify-content: center;
    }

    .header-container {
        padding: 0.65rem 0.9rem;
    }

    .brand-logo-img {
        height: 38px;
    }

    .btn-header-cta span {
        display: none; /* Oculta texto largo para dejar solo icono y ahorrar espacio */
    }

    .btn-header-cta {
        padding: 0.5rem 0.65rem;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-section {
        padding: 1.2rem 0.85rem 2.8rem;
    }

    .hero-form-wrapper {
        margin-top: 0.2rem;
    }

    .hero-badges-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-badge-item {
        padding: 0.75rem 0.9rem;
    }

    .form-premium-card {
        padding: 1.8rem 1rem;
        border-radius: var(--radius-md);
    }

    .form-card-title {
        font-size: 1.3rem;
    }

    .form-card-subtitle {
        font-size: 0.82rem;
        margin-bottom: 1.2rem;
    }

    .form-header-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
        width: 90%;
        justify-content: center;
    }

    /* Adaptación del selector de país en móvil */
    .country-picker-wrapper {
        border-right: 1px solid var(--border-color);
    }

    .selected-country-trigger {
        padding: 0.68rem 0.6rem;
        font-size: 0.86rem;
        gap: 4px;
    }

    .country-flag {
        font-size: 1.15rem;
    }

    .country-dropdown {
        width: min(290px, 86vw);
        left: 0;
    }

    .phone-input {
        padding: 0.68rem 0.7rem;
        font-size: 0.9rem;
    }

    /* Horarios en botones táctiles de 1 columna */
    .time-slots-container {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .time-slot-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .btn-submit-lead {
        font-size: 0.94rem;
        padding: 0.85rem 1rem;
        gap: 8px;
    }

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

    .office-img-wrapper {
        height: 180px;
    }

    .cta-actions-wrap {
        flex-direction: column;
        width: 100%;
    }

    .btn-cta-gold, .btn-cta-outline {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.4rem;
    }

    /* Floating buttons compactos */
    .floating-contact-group {
        bottom: 16px;
        right: 14px;
        gap: 10px;
    }

    .floating-btn {
        width: 48px;
        height: 48px;
    }

    .floating-btn svg {
        width: 22px;
        height: 22px;
    }

    .floating-btn .tooltip {
        display: none; /* Evita que el tooltip quede fijo o estorbe en táctil */
    }

    /* Modal de Éxito en Móvil */
    .modal-content-card {
        padding: 1.8rem 1.2rem;
        max-width: 95vw;
        max-height: 88vh;
        overflow-y: auto;
    }

    .modal-title {
        font-size: 1.35rem;
    }
}

/* Móviles Muy Pequeños (Max 360px) */
@media (max-width: 360px) {
    .brand-logo-img {
        height: 32px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .form-premium-card {
        padding: 1.5rem 0.75rem;
    }

    .trust-container {
        grid-template-columns: 1fr;
    }

    .btn-submit-lead {
        font-size: 0.86rem;
    }
}

