/*
Theme Name: Munich Re Replica
Theme URI: https://github.com/yourusername/munichre-replica
Description: Tema personalizado que replica el diseño del sitio web de Munich Re
Version: 1.0.0
Author: Tu Nombre
Author URI: https://yourwebsite.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: munichre-replica
*/

/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    background-color: var(--color-dark);
}

:root {
    --color-primary: #0077b6;
    --color-primary-dark: #006494;
    --color-dark: #0a0a0a;
    --color-dark-secondary: #1a1a1a;
    --color-text-light: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.8);
    --color-text-dark: #333333;
    --color-overlay: rgba(0, 161, 154, 0.9);
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-dark);
    color: var(--color-text-light);
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body.home-page {
    background-color: transparent;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    background: transparent;
    transition: all var(--transition-normal);
    overflow-x: hidden;
}

.site-header.scrolled {
    position: fixed;
}

.site-header.scrolled {
    background: transparent;
}

/* Top Bar: Logo, Tagline, Utilities */
.header-top-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.1s ease-out, opacity 0.3s ease-out, border-color 0.3s ease;
    overflow: visible;
    will-change: transform, opacity;
}

.site-header.scrolled .header-top-bar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 16rem;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    transition: all var(--transition-normal);
}

.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-right: 0;
    flex-shrink: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
    font-size: 1.375rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.2px;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-logo:hover {
    opacity: 0.9;
}

.site-logo-img {
    display: block;
    height: 68px;
    width: auto;
    max-width: 340px;
    object-fit: contain;
}

/* Logo blanco: visible en header transparente. Al hacer scroll (fondo blanco) se invierte */
.site-header.scrolled .site-logo-img {
    filter: invert(1);
}

.tagline {
    font-size: 0.75rem;
    font-weight: var(--font-weight-normal);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-light);
    opacity: 1;
    margin-right: 1.5rem;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.site-header.scrolled .tagline {
    color: #003366;
}

.header-utilities {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.lang-selector,
.globe-toggle,
.search-toggle {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0.9;
    outline: none;
}

.lang-selector:focus,
.lang-selector:active,
.globe-toggle:focus,
.globe-toggle:active,
.search-toggle:focus,
.search-toggle:active {
    outline: none;
    box-shadow: none;
}

.main-navigation-bar.scrolled-white .lang-selector,
.main-navigation-bar.scrolled-white .globe-toggle,
.main-navigation-bar.scrolled-white .search-toggle {
    color: #333333;
}

.lang-selector:hover,
.globe-toggle:hover,
.search-toggle:hover {
    opacity: 1;
}

.lang-selector {
    font-weight: var(--font-weight-normal);
}

.globe-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.search-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.lang-selector svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: currentColor;
}

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-text-light);
    transition: all var(--transition-normal);
    border-radius: 2px;
}

.site-header.scrolled .nav-toggle span {
    background: #003366;
}

/* Main Navigation Bar */
.main-navigation-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.1s ease-out, background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    will-change: transform, background-color;
    display: flex;
    align-items: center;
}

.main-navigation-bar.scrolled-white {
    background: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    transform: translateY(0) !important;
}

.main-navigation-bar.scrolled-white .nav-toggle span {
    background: #333333;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled .main-navigation-bar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Páginas internas: header blanco, tipografía azul, logo azul */
body.inner-page .site-header {
    background: #ffffff;
}

body.inner-page .header-top-bar {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 51, 102, 0.15);
}

body.inner-page .main-navigation-bar {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 51, 102, 0.15);
}

body.inner-page .tagline {
    color: #003366;
}

body.inner-page .primary-nav-menu a {
    color: #003366;
}

body.inner-page .primary-nav-menu a:hover {
    color: var(--color-primary);
}

body.inner-page .primary-nav-menu .current-menu-item a {
    font-weight: var(--font-weight-semibold);
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

body.inner-page .primary-nav-menu .current-menu-item a::after {
    width: 100%;
}

body.inner-page .lang-selector {
    color: #003366;
}

body.inner-page .lang-selector:hover {
    color: var(--color-primary);
}

body.inner-page .nav-toggle span {
    background: #003366;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0.25rem 16rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.nav-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    flex: 0 0 auto;
}

.nav-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-utilities {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Menú agrupado a la izquierda como el original Munich Re */
.primary-nav-menu {
    display: flex;
    list-style: none;
    gap: 2.25rem;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.primary-nav-menu li {
    padding: 0;
    margin: 0;
}

.primary-nav-menu a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: var(--font-weight-normal);
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0;
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1.5;
}

.main-navigation-bar.scrolled-white .primary-nav-menu a {
    color: #333333;
}

.primary-nav-menu a:hover {
    color: var(--color-primary);
}

.primary-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -1.125rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-normal);
}

.primary-nav-menu a:hover::after {
    width: 100%;
}

/* Navegación móvil (oculta en desktop) */
.main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.main-navigation.active {
    display: block;
}

.main-navigation ul {
    list-style: none;
}

.main-navigation li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.main-navigation a {
    color: var(--color-dark);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color var(--transition-fast);
}

.main-navigation a:hover {
    color: var(--color-primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 225px 16rem 4rem;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Contenedor del video: solo agrupa el elemento, el video se posiciona fixed */
.hero-video-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* Video: ancho y alto fijos al viewport (CSS-Tricks / Stack Overflow)
   Con min-width/min-height la dimensión mayor gana y cubre todo sin huecos */
.hero-video-backdrop .hero-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100vw;
    min-height: 100vh;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.hero-video-backdrop .hero-video.fade-out,
.hero-video.fade-out {
    opacity: 0;
}

/* Fallback image si el video no está disponible */
.hero-fallback-image {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

/* Contenedor hero: fondo transparente con 20% de opacidad. Altura fija para evitar saltos al cambiar slides */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
    height: 420px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    padding: 3.5rem 4rem 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: var(--font-weight-normal);
    line-height: 1.4;
    flex-shrink: 0;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.25;
    margin-bottom: 2.25rem;
    letter-spacing: -0.3px;
    color: #ffffff;
    height: 8.5rem;
    min-height: 8.5rem;
    flex-shrink: 0;
}

.hero-button {
    display: inline-block;
    width: fit-content;
    flex-shrink: 0;
    padding: 1rem 2.25rem;
    background: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0;
    font-weight: var(--font-weight-semibold);
    font-size: 0.9375rem;
    letter-spacing: 0.3px;
    transition: background var(--transition-fast);
    border: none;
    cursor: pointer;
}

.hero-button:hover {
    background: #333333;
    color: #ffffff;
}

.hero-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    min-height: 32px;
    flex-shrink: 0;
}

.hero-pagination {
    display: flex;
    gap: 0.625rem;
    align-items: flex-end;
}

.hero-pagination-item {
    position: relative;
    width: 40px;
    cursor: pointer;
    flex-shrink: 0;
}

.hero-pagination-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
}

.hero-pagination-fill {
    position: absolute;
    bottom: 4px;
    left: 0;
    height: 6px;
    width: 0;
    max-width: 100%;
    background: var(--color-text-light);
    border-radius: 2px;
    transition: none;
}

.hero-pagination-item:hover .hero-pagination-track {
    background: rgba(255, 255, 255, 0.5);
}

.hero-play-pause {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    flex-shrink: 0;
    outline: none;
}

.hero-play-pause:focus,
.hero-play-pause:active {
    outline: none;
    box-shadow: none;
}

.hero-play-pause svg {
    display: block;
    width: 22px;
    height: 22px;
}

/* Content Blocks */
.content-blocks {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.10rem;
    padding: 0 16rem 3rem;
    margin-top: -283px;
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.content-block {
    background: rgba(10, 37, 64, 0.78);
    padding: 40px 30px;
    min-height: 180px;
    border-radius: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition-normal);
    border: 0;
    margin: 0;
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.content-block:nth-child(2) {
    animation-delay: 0.3s;
}

.content-block:nth-child(3) {
    animation-delay: 0.4s;
}

.content-block:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: rgba(10, 37, 64, 0.88);
}

.content-block.content-block-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.content-block-link:hover {
    color: inherit;
}

.content-block-link h3,
.content-block-link p {
    color: inherit;
}

.content-block h3 {
    font-size: 1.22rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
    font-weight: 500;
    letter-spacing: -0.2px;
    line-height: 1.35;
}

.content-block p {
    font-size: 1.31rem;
    line-height: 1.5;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--font-weight-normal);
    margin: 0;
    margin-top: 10px;
    max-width: 90%;
    overflow: hidden;
}

/* Footer */
.site-footer {
    background: #003366;
    color: var(--color-text-light);
    padding: 4rem 3rem 2rem;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-column-title {
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-text-light);
}

/* Accessibility Toggle */
.accessibility-toggle {
    margin-top: 2rem;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}

.toggle-switch {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: background var(--transition-normal);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-text-light);
    top: 3px;
    left: 3px;
    transition: transform var(--transition-normal);
}

.toggle-switch:checked + .toggle-slider {
    background: var(--color-primary);
}

.toggle-switch:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* Social Media Icons */
.social-media-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-icon {
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    color: var(--color-text-light);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--color-text-light);
}

.footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Footer 2: Contacto con formulario */
.site-footer--2 {
    background: #003366;
    color: #ffffff;
    padding: 4rem 3rem 4rem;
    margin-top: 0;
}

.footer2-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.footer2-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #ffffff;
}

.footer2-intro {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2rem;
    line-height: 1.6;
}

.footer2-form label {
    display: block;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.footer2-form input,
.footer2-form textarea {
    width: 100%;
    padding: 0.75rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer2-form input::placeholder,
.footer2-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer2-form input:focus,
.footer2-form textarea:focus {
    outline: none;
    border-bottom-color: #ffffff;
}

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

.footer2-form p {
    margin-bottom: 1.25rem;
}

.footer2-submit {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.footer2-submit:hover {
    background: #ffffff;
    color: #003366;
}

.footer2-info-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer2-info-item {
    display: flex;
    gap: 1rem;
}

.footer2-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.footer2-info-item strong {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.footer2-info-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
}

.footer2-info-item a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}

.footer2-info-item a:hover {
    text-decoration: underline;
}

.footer2-logo {
    margin-top: 2.5rem;
}

.footer2-logo img {
    max-width: 280px;
    height: auto;
}

.footer2-msg {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.footer2-msg--ok {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.footer2-msg--error {
    background: rgba(200, 50, 50, 0.3);
    color: #ffffff;
}

@media (max-width: 768px) {
    .footer2-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-footer--2 {
        padding: 2rem 1.5rem 3rem;
    }
}

/* Contenedor general */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Wrapper principal para evitar desbordamiento */
.site-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
}

body.home-page .site-wrapper,
body.home-page .site-main--home {
    background: transparent;
}

/* En home: el main ocupa al menos 100vh para que el footer no aparezca
   como franja en el borde inferior cuando el contenido no llena la pantalla */
body.home-page .site-main--home {
    min-height: 100vh;
    min-height: 100dvh;
}

/* Prevenir desbordamiento en todos los elementos principales */
.site-header,
.site-main,
.site-footer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Asegurar que elementos con posición fija no causen desbordamiento */
.site-header {
    left: 0;
    right: 0;
}

/* Imágenes responsivas */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Page Header (páginas internas) */
.page-header-section {
    position: relative;
    background: linear-gradient(135deg, #0a2540 0%, #1a365d 100%);
    padding: 180px 2rem 4rem;
    margin-top: 0;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-light);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0;
}

.page-content {
    padding: 4rem 2rem 6rem;
    background: var(--color-dark);
}

.page-article .entry-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

.page-article .entry-content p {
    margin-bottom: 1.5rem;
}

.page-article .entry-content h2,
.page-article .entry-content h3,
.page-article .entry-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
    font-weight: var(--font-weight-semibold);
}

.page-article .entry-content a {
    color: var(--color-primary);
    text-decoration: none;
}

.page-article .entry-content a:hover {
    text-decoration: underline;
}

.page-article .entry-content ul,
.page-article .entry-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.page-article .entry-content li {
    margin-bottom: 0.5rem;
}

/* ============================================
   Template: Imagen lateral con contenido
   ============================================ */
.site-main--side-image {
    padding-top: 140px;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    margin: 0;
    min-height: 100vh;
    background: #ffffff;
}

body.template-side-image .site-footer {
    margin-top: 0;
}

.side-image-page {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    min-height: calc(100vh - 140px);
    width: 100%;
    max-width: 100vw;
}

.side-image-sidebar {
    background: #D9D9D9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 0.75rem 2rem;
}

.side-image-sidebar-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #376F87;
    white-space: nowrap;
}

.side-image-sidebar-line {
    display: block;
    width: 2px;
    height: 40px;
    background: #376F87;
    margin-top: 1rem;
}

.side-image-left {
    background-color: #1a365d;
    background-size: cover;
    background-position: center;
}

.side-image-right {
    display: flex;
    align-items: center;
    padding: 4rem 3rem;
}

.side-image-content {
    color: #ffffff;
    max-width: 560px;
}

.side-image-content h1,
.side-image-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 1.5rem;
    color: inherit;
}

.side-image-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.side-image-content a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.side-image-content a:hover {
    color: #fff;
}

@media (max-width: 968px) {
    .site-main--side-image {
        padding-top: 120px;
    }

    .side-image-page {
        grid-template-columns: 1fr;
        grid-template-rows: auto 40vh 1fr;
        min-height: calc(100vh - 120px);
    }

    .side-image-sidebar {
        flex-direction: row;
        padding: 1rem 2rem;
        gap: 1rem;
    }

    .side-image-right {
        padding: 2rem 1.5rem;
    }

    .side-image-sidebar-text {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .side-image-sidebar-line {
        width: 40px;
        height: 2px;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .site-main--side-image {
        padding-top: 110px;
    }

    .side-image-page {
        min-height: calc(100vh - 110px);
    }
}

/* ============================================
   Template: Servicios (BAI) - Parallax, cards, bloques alternados
   ============================================ */
.site-main--servicios {
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    min-height: 100vh;
    background: #f1f1f1;
}

body.template-servicios .site-footer {
    margin-top: 0;
}

/* Hero: altura normal del viewport */
.servicios-hero-parallax {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #0a2540;
    display: flex;
    align-items: center;
    justify-content: center;
}

.servicios-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.servicios-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.85) 0%, rgba(26, 54, 93, 0.9) 100%);
    pointer-events: none;
    z-index: 1;
}

.servicios-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
    .servicios-hero-title {
        animation: servicios-hero-fade 0.8s ease-out both;
    }
    .servicios-hero-subtitle {
        animation: servicios-hero-fade 0.8s ease-out 0.2s both;
    }
}

@keyframes servicios-hero-fade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.servicios-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    color: #ffffff;
    text-transform: uppercase;
}

.servicios-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: var(--font-weight-medium);
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Cards section: debajo del hero, banda vertical al borde izquierdo */
.servicios-cards-section {
    position: relative;
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    background: #ffffff;
    padding: 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
}

.servicios-cards-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    width: 100%;
}


/* Banda vertical izquierda con "SERVICIOS" - fondo gris claro para que se distinga */
.servicios-sidebar-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 0.75rem 2rem;
    min-height: 100%;
}

.servicios-sidebar-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    white-space: nowrap;
}

.servicios-sidebar-line {
    display: block;
    width: 2px;
    height: 36px;
    margin-top: 1rem;
}

.servicios-sidebar-strip--light {
    background: #00458c;
}

.servicios-sidebar-text--dark {
    color: #ffffff;
}

.servicios-sidebar-line--dark {
    background: rgba(255, 255, 255, 0.6);
}


.servicios-cards-title,
.servicios-section-title {
    position: relative;
}

.servicios-cards-title {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    color: #00458c;
    margin: 0 0 2rem;
}

.servicios-cards-title::after,
.servicios-section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00458c, rgba(0, 119, 182, 0.6));
    margin-top: 0.5rem;
    transition: width 0.4s ease;
}

.servicios-cards-title:hover::after,
.servicios-section-title:hover::after {
    width: 60px;
}

/* Cards modernas - grid 3 columnas */
.servicios-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.servicios-card {
    background: linear-gradient(145deg, #00458c 0%, #003366 100%);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    min-height: 140px;
    display: flex;
    align-items: flex-end;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.servicios-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary, #0077b6), rgba(255,255,255,0.4));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.servicios-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 69, 140, 0.35);
}

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

.servicios-card-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ffffff;
    font-weight: 500;
}

/* Bloques alternados imagen/texto */
.servicios-alt-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
}

.servicios-alt-block--img-left .servicios-alt-image,
.servicios-alt-block--img-left .servicios-alt-media { order: 1; }
.servicios-alt-block--img-left .servicios-alt-content { order: 2; }
.servicios-alt-block--img-right .servicios-alt-image,
.servicios-alt-block--img-right .servicios-alt-media { order: 2; }
.servicios-alt-block--img-right .servicios-alt-content { order: 1; }

.servicios-alt-media--video {
    position: relative;
    height: 400px;
    min-height: 400px;
    overflow: hidden;
}

.servicios-alt-media--video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.servicios-alt-image {
    height: 400px;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.servicios-alt-image--placeholder {
    background: linear-gradient(135deg, #0a2540 0%, #1a365d 100%);
}

.servicios-alt-content {
    padding: 3rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.servicios-alt-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: #003366;
    margin: 0 0 1rem;
}

.servicios-alt-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

.servicios-alt-text p {
    margin: 0 0 1rem;
}

.servicios-alt-text p:last-child {
    margin-bottom: 0;
}

/* Modo de trabajo */
.servicios-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.servicios-section-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: #003366;
    margin: 0 0 1.5rem;
}

.servicios-modo-section {
    background: #ffffff;
    padding: 3rem 0;
}

.servicios-modo-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    margin-bottom: 2rem;
}

.servicios-modo-item {
    font-weight: var(--font-weight-medium);
    color: #003366;
    font-size: 0.95rem;
}

.servicios-modo-dot {
    color: #003366;
    opacity: 0.6;
}

.servicios-modo-cards {
    display: grid;
    gap: 2rem;
}

.servicios-modo-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.servicios-modo-card-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: #003366;
    margin: 0 0 1rem;
}

.servicios-modo-card-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

.servicios-modo-card-desc p {
    margin: 0 0 0.75rem;
}

.servicios-modo-card-desc p:last-child {
    margin-bottom: 0;
}

/* Contacto */
/* Contacto: fondo azul, formulario moderno, logo SSN */
.servicios-contacto-section {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    background: #00458c;
    padding: 0;
}

.servicios-contacto-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 0.75rem 2rem;
    background: rgba(0, 0, 0, 0.15);
}

.servicios-contacto-sidebar-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    white-space: nowrap;
}

.servicios-contacto-sidebar-line {
    display: block;
    width: 2px;
    height: 36px;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.6);
}

.servicios-contacto-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    width: 100%;
}

.servicios-contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.servicios-contacto-title {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    color: #ffffff;
    margin: 0 0 0.5rem;
}

.servicios-contacto-texto {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2rem;
    font-size: 0.95rem;
}

.servicios-contacto-form label {
    display: block;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}

.servicios-contacto-form input,
.servicios-contacto-form textarea {
    width: 100%;
    padding: 0.75rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.servicios-contacto-form input::placeholder,
.servicios-contacto-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.servicios-contacto-form input:focus,
.servicios-contacto-form textarea:focus {
    outline: none;
    border-bottom-color: #ffffff;
}

.servicios-contacto-form textarea {
    resize: vertical;
    min-height: 100px;
}

.servicios-contacto-form p {
    margin-bottom: 1.25rem;
}

.servicios-contacto-submit {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.servicios-contacto-submit:hover {
    background: #ffffff;
    color: #00458c;
}

.servicios-contacto-info-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.servicios-contacto-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.servicios-contacto-info-item {
    display: flex;
    gap: 1rem;
}

.servicios-contacto-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.servicios-contacto-info-item strong {
    display: block;
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.servicios-contacto-info-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.servicios-contacto-info-item a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}

.servicios-contacto-info-item a:hover {
    text-decoration: underline;
}

.servicios-contacto-logo {
    margin-top: 2.5rem;
}

.servicios-contacto-logo img {
    max-width: 330px;
    height: auto;
    mix-blend-mode: lighten;
}

.servicios-contacto-msg {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.servicios-contacto-msg--ok {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.servicios-contacto-msg--error {
    background: rgba(200, 50, 50, 0.3);
    color: #ffffff;
}

/* Servicios - Scroll reveal (animaciones al hacer scroll) */
@media (prefers-reduced-motion: no-preference) {
    .servicios-cards-inner .servicios-cards-title,
    .servicios-cards-inner .servicios-card {
        opacity: 0;
        transform: translateY(25px);
        transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
    }
    .servicios-cards-inner.in-view .servicios-cards-title {
        opacity: 1;
        transform: translateY(0);
    }
    .servicios-cards-inner.in-view .servicios-card:nth-child(1) { transition-delay: 0.08s; }
    .servicios-cards-inner.in-view .servicios-card:nth-child(2) { transition-delay: 0.14s; }
    .servicios-cards-inner.in-view .servicios-card:nth-child(3) { transition-delay: 0.2s; }
    .servicios-cards-inner.in-view .servicios-card:nth-child(4) { transition-delay: 0.26s; }
    .servicios-cards-inner.in-view .servicios-card:nth-child(5) { transition-delay: 0.32s; }
    .servicios-cards-inner.in-view .servicios-card:nth-child(6) { transition-delay: 0.38s; }
    .servicios-cards-inner.in-view .servicios-card:nth-child(7) { transition-delay: 0.44s; }
    .servicios-cards-inner.in-view .servicios-card:nth-child(8) { transition-delay: 0.5s; }
    .servicios-cards-inner.in-view .servicios-card:nth-child(9) { transition-delay: 0.56s; }
    .servicios-cards-inner.in-view .servicios-card:nth-child(10) { transition-delay: 0.62s; }
    .servicios-cards-inner.in-view .servicios-card:nth-child(11) { transition-delay: 0.68s; }
    .servicios-cards-inner.in-view .servicios-card:nth-child(12) { transition-delay: 0.74s; }
    .servicios-cards-inner.in-view .servicios-card {
        opacity: 1;
        transform: translateY(0);
    }

    .servicios-alt-block .servicios-alt-image,
    .servicios-alt-block .servicios-alt-media,
    .servicios-alt-block .servicios-alt-content {
        opacity: 0;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .servicios-alt-block .servicios-alt-image,
    .servicios-alt-block .servicios-alt-media {
        transform: translateX(-30px);
    }
    .servicios-alt-block .servicios-alt-content {
        transform: translateX(30px);
    }
    .servicios-alt-block--img-right .servicios-alt-image,
    .servicios-alt-block--img-right .servicios-alt-media {
        transform: translateX(30px);
    }
    .servicios-alt-block--img-right .servicios-alt-content {
        transform: translateX(-30px);
    }
    .servicios-alt-block.in-view .servicios-alt-image,
    .servicios-alt-block.in-view .servicios-alt-media,
    .servicios-alt-block.in-view .servicios-alt-content {
        opacity: 1;
        transform: translateX(0);
    }
    .servicios-alt-block.in-view .servicios-alt-content {
        transition-delay: 0.15s;
    }

    .servicios-modo-section .servicios-container .servicios-section-title,
    .servicios-modo-section .servicios-container .servicios-modo-flow,
    .servicios-modo-section .servicios-container .servicios-modo-card {
        opacity: 0;
        transform: translateY(25px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
    .servicios-modo-section .servicios-container.in-view .servicios-section-title {
        opacity: 1;
        transform: translateY(0);
    }
    .servicios-modo-section .servicios-container.in-view .servicios-modo-flow {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.1s;
    }
    .servicios-modo-section .servicios-container.in-view .servicios-modo-card:nth-child(1) { transition-delay: 0.15s; }
    .servicios-modo-section .servicios-container.in-view .servicios-modo-card:nth-child(2) { transition-delay: 0.25s; }
    .servicios-modo-section .servicios-container.in-view .servicios-modo-card:nth-child(3) { transition-delay: 0.35s; }
    .servicios-modo-section .servicios-container.in-view .servicios-modo-card:nth-child(4) { transition-delay: 0.45s; }
    .servicios-modo-section .servicios-container.in-view .servicios-modo-card:nth-child(5) { transition-delay: 0.55s; }
    .servicios-modo-section .servicios-container.in-view .servicios-modo-card {
        opacity: 1;
        transform: translateY(0);
    }

    .servicios-contacto-inner .servicios-contacto-form-col,
    .servicios-contacto-inner .servicios-contacto-info-col {
        opacity: 0;
        transform: translateY(25px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
    .servicios-contacto-inner.in-view .servicios-contacto-form-col {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.1s;
    }
    .servicios-contacto-inner.in-view .servicios-contacto-info-col {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
    }
}

/* Responsive Servicios */
@media (max-width: 1024px) {
    .servicios-hero-parallax {
        background-attachment: scroll;
    }

    .servicios-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .servicios-alt-block {
        grid-template-columns: 1fr;
    }

    .servicios-alt-block--img-left .servicios-alt-image,
    .servicios-alt-block--img-left .servicios-alt-media,
    .servicios-alt-block--img-right .servicios-alt-image,
    .servicios-alt-block--img-right .servicios-alt-media {
        order: 1;
    }

    .servicios-alt-block--img-left .servicios-alt-content,
    .servicios-alt-block--img-right .servicios-alt-content {
        order: 2;
    }
}

@media (max-width: 768px) {
    .site-main--servicios {
        padding-top: 0;
    }

    .servicios-cards-section {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .servicios-sidebar-strip {
        padding: 2rem 0.5rem;
    }

    .servicios-sidebar-text {
        font-size: 0.75rem;
    }

    .servicios-cards-inner {
        padding: 2rem 1.5rem 3rem;
    }

    .servicios-cards-grid {
        grid-template-columns: 1fr;
    }

    .servicios-alt-content {
        padding: 2rem 1.5rem;
    }

    .servicios-contacto-section {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .servicios-contacto-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .servicios-contacto-inner {
        padding: 2rem 1.5rem 3rem;
    }
}

/* Responsive */
@media (max-width: 1800px) {
    .header-top-container {
        padding: 0.5rem 12rem;
    }

    .nav-container {
        padding: 0.25rem 12rem;
    }

    .hero-section {
        min-height: 88vh;
        padding: 180px 12rem 3rem;
    }

    .hero-content {
        height: 380px;
        min-height: 380px;
    }

    .content-blocks {
        padding: 1.5rem 12rem 3rem;
        margin-top: -180px;
    }
}

/* MacBook 14" y pantallas similares (~1440px) */
@media (max-width: 1400px) {
    .header-top-container {
        padding: 0.5rem 10rem;
    }

    .nav-container {
        padding: 0.25rem 10rem;
    }

    .hero-section {
        min-height: 82vh;
        padding: 160px 10rem 2.5rem;
    }

    .hero-content {
        height: 360px;
        min-height: 360px;
        padding: 3rem 3rem 2.5rem;
    }

    .content-blocks {
        padding: 2rem 10rem 3rem;
        margin-top: -120px;
    }
}

@media (max-width: 1200px) {
    .header-top-container {
        padding: 0.5rem 8rem;
    }

    .nav-container {
        padding: 0.25rem 8rem;
    }

    .hero-section {
        padding: 225px 8rem 4rem;
    }

    .content-blocks {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.10rem;
        padding: 2rem 8rem 3rem;
        margin-top: -60px;
    }

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

@media (max-width: 968px) {
    .primary-nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
        height: 7rem;
        min-height: 7rem;
    }

    .hero-content {
        padding: 3rem 2.5rem 2.5rem;
        max-width: 100%;
        height: 400px;
        min-height: 400px;
    }

    .hero-section {
        padding: 207px 6rem 3rem;
        padding-bottom: 4rem;
    }

    .content-blocks {
        grid-template-columns: 1fr;
        margin-top: -60px;
        gap: 0.5rem;
        padding: 1.5rem 6rem 3rem;
    }

    .header-top-container {
        padding: 0.5rem 6rem;
    }

    .nav-container {
        padding: 0.25rem 6rem;
    }

    .header-right {
        gap: 1.5rem;
    }

    .tagline {
        margin-right: 1rem;
        font-size: 0.7rem;
    }

    .header-utilities {
        gap: 0.75rem;
    }

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

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

@media (max-width: 768px) {
    .page-header-section {
        padding: 140px 2rem 3rem;
    }

    .page-header-title {
        font-size: 1.875rem;
    }

    .hero-section {
        padding: 191px 2rem 3rem;
        min-height: 90vh;
        padding-bottom: 3rem;
    }

    .hero-title {
        font-size: 1.875rem;
        margin-bottom: 2rem;
        height: 6.5rem;
        min-height: 6.5rem;
    }

    .hero-content {
        padding: 2.5rem 2rem;
        height: 380px;
        min-height: 380px;
    }

    .hero-button {
        padding: 1rem 2rem;
        font-size: 0.875rem;
    }

    .content-blocks {
        grid-template-columns: 1fr;
        margin-top: 0;
        padding: 2rem 2rem 3rem;
        gap: 0.75rem;
    }

    .content-block {
        padding: 35px 25px;
        min-height: 160px;
        margin: 0;
    }

    .content-block h3 {
        font-size: 1.03rem;
        line-height: 1.4;
    }

    .content-block p {
        font-size: 1rem;
    }

    .header-top-container {
        padding: 0.5rem 2.5rem;
    }

    .nav-container {
        padding: 0.25rem 2.5rem;
    }

    .header-right {
        padding-right: 0;
    }

    .tagline {
        display: none;
    }

    .header-utilities {
        gap: 1rem;
    }

    .header-right {
        gap: 1rem;
    }

    .site-footer {
        padding: 3rem 1.5rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
        height: 6rem;
        min-height: 6rem;
    }

    .hero-content {
        padding: 2rem 1.5rem;
        height: 360px;
        min-height: 360px;
    }

    .hero-category {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ========================================
   Template Nosotros BAI - Misma estética que Servicios
   ======================================== */

body.template-nosotros .site-footer {
    margin-top: 0;
}

.site-main--nosotros {
    padding-top: 0;
}

/* SECCIÓN 1 - Hero / Nosotros (igual que servicios-hero) */
.nosotros-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #0a2540;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 4rem;
}

.nosotros-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.nosotros-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.85) 0%, rgba(26, 54, 93, 0.9) 100%);
    pointer-events: none;
    z-index: 1;
}

.nosotros-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin-right: auto;
}

@media (prefers-reduced-motion: no-preference) {
    .nosotros-hero-title {
        animation: nosotros-hero-fade 0.8s ease-out both;
    }
    .nosotros-hero-subtitle {
        animation: nosotros-hero-fade 0.8s ease-out 0.2s both;
    }
    .nosotros-hero-desc {
        animation: nosotros-hero-fade 0.8s ease-out 0.4s both;
    }
}

@keyframes nosotros-hero-fade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nosotros-hero-title {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    color: #ffffff;
    text-transform: uppercase;
}

.nosotros-hero-subtitle {
    font-size: clamp(0.975rem, 2vw, 1.17rem);
    font-weight: var(--font-weight-medium);
    margin: 0 0 0.75rem;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.nosotros-hero-desc {
    font-size: 0.975rem;
    line-height: 1.7;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Cards debajo del hero - misma estructura que servicios-cards-section */
.nosotros-hero-cards {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    background: #ffffff;
    padding: 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
}

.nosotros-sidebar-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 0.75rem 2rem;
    min-height: 100%;
    background: #00458c;
}

.nosotros-sidebar-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    white-space: nowrap;
}

.nosotros-sidebar-line {
    display: block;
    width: 2px;
    height: 36px;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.6);
}

.nosotros-cards-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    width: 100%;
}

.nosotros-cards-title,
.nosotros-section-title {
    position: relative;
}

.nosotros-cards-title {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    color: #00458c;
    margin: 0 0 2rem;
}

.nosotros-cards-title::after,
.nosotros-section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00458c, rgba(0, 119, 182, 0.6));
    margin-top: 0.5rem;
    transition: width 0.4s ease;
}

.nosotros-cards-title:hover::after,
.nosotros-section-title:hover::after {
    width: 60px;
}

.nosotros-hero-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.nosotros-card--hero {
    background: linear-gradient(145deg, #00458c 0%, #003366 100%);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    min-height: 140px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Scroll reveal - estados iniciales (animación al hacer scroll) */
@media (prefers-reduced-motion: no-preference) {
    .nosotros-cards-inner .nosotros-cards-title,
    .nosotros-operamos-inner .nosotros-section-title,
    .nosotros-ejes-inner .nosotros-section-title {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .nosotros-cards-inner .nosotros-card--hero,
    .nosotros-operamos-inner .nosotros-card--operamos,
    .nosotros-ejes-inner .nosotros-card--ejes {
        opacity: 0;
        transform: translateY(25px);
        transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
    }
    .nosotros-ejes-inner .nosotros-ejes-quote {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
    }
    .nosotros-cards-inner.in-view .nosotros-cards-title,
    .nosotros-operamos-inner.in-view .nosotros-section-title,
    .nosotros-ejes-inner.in-view .nosotros-section-title {
        opacity: 1;
        transform: translateY(0);
    }
    .nosotros-cards-inner.in-view .nosotros-card--hero:nth-child(1),
    .nosotros-operamos-inner.in-view .nosotros-card--operamos:nth-child(1),
    .nosotros-ejes-inner.in-view .nosotros-card--ejes:nth-child(1) { transition-delay: 0.1s; }
    .nosotros-cards-inner.in-view .nosotros-card--hero:nth-child(2),
    .nosotros-operamos-inner.in-view .nosotros-card--operamos:nth-child(2),
    .nosotros-ejes-inner.in-view .nosotros-card--ejes:nth-child(2) { transition-delay: 0.18s; }
    .nosotros-cards-inner.in-view .nosotros-card--hero:nth-child(3),
    .nosotros-operamos-inner.in-view .nosotros-card--operamos:nth-child(3),
    .nosotros-ejes-inner.in-view .nosotros-card--ejes:nth-child(3) { transition-delay: 0.26s; }
    .nosotros-operamos-inner.in-view .nosotros-card--operamos:nth-child(4),
    .nosotros-ejes-inner.in-view .nosotros-card--ejes:nth-child(4) { transition-delay: 0.34s; }
    .nosotros-cards-inner.in-view .nosotros-card--hero,
    .nosotros-operamos-inner.in-view .nosotros-card--operamos,
    .nosotros-ejes-inner.in-view .nosotros-card--ejes {
        opacity: 1;
        transform: translateY(0);
    }
    .nosotros-ejes-inner.in-view .nosotros-ejes-quote {
        opacity: 1;
        transform: translateY(0);
    }
}

.nosotros-card--hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary, #0077b6), rgba(255, 255, 255, 0.4));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nosotros-card--hero:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 69, 140, 0.35);
}

.nosotros-card--hero:hover::before {
    opacity: 1;
}

.nosotros-card-icon {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nosotros-card:hover .nosotros-card-icon {
    transform: scale(1.08);
}

.nosotros-card-icon svg {
    width: 40px;
    height: 40px;
    display: block;
}

.nosotros-card--hero .nosotros-card-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.nosotros-card--hero .nosotros-card-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* SECCIÓN 2 - Cómo operamos (con banda vertical teal) */
.nosotros-operamos {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    background: #ffffff;
    padding: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.nosotros-operamos-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 0.75rem 2rem;
    min-height: 100%;
    background: #0077b6;
}

.nosotros-operamos-sidebar-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    white-space: nowrap;
}

.nosotros-operamos-sidebar-line {
    display: block;
    width: 2px;
    height: 36px;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.6);
}

.nosotros-operamos-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    width: 100%;
}

.nosotros-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nosotros-section-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: #003366;
    margin: 0 0 2rem;
}

.nosotros-operamos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.nosotros-card--operamos {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 3px solid transparent;
}

.nosotros-card--operamos:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 69, 140, 0.15);
    border-left-color: #0077b6;
}

.nosotros-card--operamos .nosotros-card-icon {
    color: #00458c;
}

.nosotros-card--operamos .nosotros-card-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: #003366;
}

.nosotros-card--operamos .nosotros-card-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* SECCIÓN 3 - Nuestros ejes (con banda vertical azul oscuro) */
.nosotros-ejes {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    background: #f8f9fa;
    padding: 0;
}

.nosotros-ejes-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 0.75rem 2rem;
    min-height: 100%;
    background: #003366;
}

.nosotros-ejes-sidebar-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    white-space: nowrap;
}

.nosotros-ejes-sidebar-line {
    display: block;
    width: 2px;
    height: 36px;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.6);
}

.nosotros-ejes-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    width: 100%;
}

.nosotros-ejes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.nosotros-card--ejes {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 69, 140, 0.1);
    border-left: 3px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
}

.nosotros-card--ejes:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 69, 140, 0.15);
    border-left-color: #003366;
}

.nosotros-card--ejes .nosotros-card-icon {
    color: #00458c;
}

.nosotros-card--ejes .nosotros-card-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: #003366;
}

.nosotros-card--ejes .nosotros-card-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

.nosotros-ejes-quote {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 2.5rem 2rem 3rem;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: var(--font-weight-medium);
    font-style: italic;
    line-height: 1.6;
    color: #003366;
    text-align: center;
    border-left: 4px solid #00458c;
    background: #ffffff;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.nosotros-ejes-quote::before {
    content: '"';
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-size: 3rem;
    font-family: Georgia, serif;
    color: #00458c;
    opacity: 0.3;
    line-height: 1;
}

.nosotros-ejes-quote:hover {
    box-shadow: 0 4px 24px rgba(0, 69, 140, 0.12);
}

/* Nosotros - Responsive */
@media (max-width: 1024px) {
    .nosotros-operamos-grid,
    .nosotros-ejes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nosotros-hero {
        min-height: 80vh;
        background-attachment: scroll;
        padding: 5rem 1.5rem 3rem;
    }

    .nosotros-hero-cards,
    .nosotros-operamos,
    .nosotros-ejes {
        grid-template-columns: 1fr;
    }

    .nosotros-sidebar-strip,
    .nosotros-operamos-sidebar,
    .nosotros-ejes-sidebar {
        flex-direction: row;
        writing-mode: unset;
        justify-content: center;
        gap: 0.5rem;
        padding: 1.5rem;
    }

    .nosotros-sidebar-text,
    .nosotros-operamos-sidebar-text,
    .nosotros-ejes-sidebar-text {
        writing-mode: unset;
        transform: none;
    }

    .nosotros-sidebar-line,
    .nosotros-operamos-sidebar-line,
    .nosotros-ejes-sidebar-line {
        width: 36px;
        height: 2px;
        margin-top: 0;
    }

    .nosotros-hero-cards-grid {
        grid-template-columns: 1fr;
    }

    .nosotros-operamos-grid,
    .nosotros-ejes-grid {
        grid-template-columns: 1fr;
    }

    .nosotros-container,
    .nosotros-cards-inner,
    .nosotros-operamos-inner,
    .nosotros-ejes-inner {
        padding: 0 1.5rem;
    }

    .nosotros-ejes-quote {
        padding: 1.5rem 1.25rem;
        font-size: 1rem;
    }
}

/* ========================================
   Template Cobertura BAI
   ======================================== */

body.template-cobertura .site-footer {
    margin-top: 0;
}

.site-main--cobertura {
    padding-top: 0;
}

/* Hero */
.cobertura-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #0a2540;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 4rem;
}

.cobertura-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.cobertura-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.85) 0%, rgba(26, 54, 93, 0.9) 100%);
    pointer-events: none;
    z-index: 1;
}

.cobertura-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
    .cobertura-hero-title {
        animation: cobertura-hero-fade 0.8s ease-out both;
    }
    .cobertura-hero-text1 {
        animation: cobertura-hero-fade 0.8s ease-out 0.15s both;
    }
    .cobertura-hero-text2 {
        animation: cobertura-hero-fade 0.8s ease-out 0.3s both;
    }
}

@keyframes cobertura-hero-fade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cobertura-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: #ffffff;
    text-transform: uppercase;
}

.cobertura-hero-text1,
.cobertura-hero-text2 {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.7;
    margin: 0 0 0.75rem;
    color: rgba(255, 255, 255, 0.92);
}

/* Sección Líneas de cobertura */
.cobertura-lines-section {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    background: #ffffff;
    padding: 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
}

.cobertura-sidebar-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 0.75rem 2rem;
    min-height: 100%;
    background: #00458c;
}

.cobertura-sidebar-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    white-space: nowrap;
}

.cobertura-sidebar-line {
    display: block;
    width: 2px;
    height: 36px;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.6);
}

.cobertura-lines-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    width: 100%;
}

.cobertura-section-title {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    color: #00458c;
    margin: 0 0 2.5rem;
    position: relative;
}

.cobertura-section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00458c, rgba(0, 119, 182, 0.6));
    margin-top: 0.5rem;
    transition: width 0.4s ease;
}

.cobertura-section-title:hover::after {
    width: 60px;
}

.cobertura-lines-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Bloques línea: alternados media izquierda/derecha */
.cobertura-line-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 320px;
    align-items: center;
    border-bottom: 1px solid rgba(0, 69, 140, 0.08);
}

.cobertura-line-block:last-child {
    border-bottom: none;
}

.cobertura-line-block--media-left .cobertura-line-media { order: 1; }
.cobertura-line-block--media-left .cobertura-line-content { order: 2; }
.cobertura-line-block--media-right .cobertura-line-media { order: 2; }
.cobertura-line-block--media-right .cobertura-line-content { order: 1; }

.cobertura-line-media {
    height: 320px;
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

.cobertura-line-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cobertura-line-media-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.cobertura-line-media-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a2540 0%, #1a365d 100%);
}

.cobertura-line-content {
    padding: 2.5rem 3rem;
}

.cobertura-line-title {
    font-size: 1.35rem;
    font-weight: var(--font-weight-semibold);
    color: #003366;
    margin: 0 0 0.75rem;
}

.cobertura-line-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* Cobertura - Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    .cobertura-lines-inner .cobertura-section-title,
    .cobertura-line-block .cobertura-line-media,
    .cobertura-line-block .cobertura-line-content {
        opacity: 0;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .cobertura-lines-inner .cobertura-section-title {
        transform: translateY(25px);
    }
    .cobertura-line-block .cobertura-line-media {
        transform: translateX(-40px);
    }
    .cobertura-line-block .cobertura-line-content {
        transform: translateX(40px);
    }
    .cobertura-line-block--media-right .cobertura-line-media {
        transform: translateX(40px);
    }
    .cobertura-line-block--media-right .cobertura-line-content {
        transform: translateX(-40px);
    }
    .cobertura-lines-inner.in-view .cobertura-section-title {
        opacity: 1;
        transform: translateY(0);
    }
    .cobertura-line-block.in-view .cobertura-line-media,
    .cobertura-line-block.in-view .cobertura-line-content {
        opacity: 1;
        transform: translateX(0);
    }
    .cobertura-line-block.in-view .cobertura-line-content {
        transition-delay: 0.1s;
    }
}

/* Cobertura - Responsive */
@media (max-width: 1024px) {
    .cobertura-line-block {
        min-height: 280px;
    }
    .cobertura-line-media {
        height: 280px;
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .cobertura-hero {
        min-height: 80vh;
        background-attachment: scroll;
        padding: 5rem 1.5rem 3rem;
    }

    .cobertura-lines-section {
        grid-template-columns: 1fr;
    }

    .cobertura-sidebar-strip {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        padding: 1.5rem;
    }

    .cobertura-sidebar-text {
        writing-mode: unset;
        transform: none;
    }

    .cobertura-sidebar-line {
        width: 36px;
        height: 2px;
        margin-top: 0;
    }

    .cobertura-line-block {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .cobertura-line-block--media-left .cobertura-line-media,
    .cobertura-line-block--media-right .cobertura-line-media {
        order: 1;
    }

    .cobertura-line-block--media-left .cobertura-line-content,
    .cobertura-line-block--media-right .cobertura-line-content {
        order: 2;
    }

    .cobertura-line-media {
        height: 220px;
        min-height: 220px;
    }

    .cobertura-line-content {
        padding: 2rem 1.5rem;
    }

    .cobertura-lines-inner {
        padding: 2rem 1.5rem 3rem;
    }
}

/* ========================================
   Template Aseguradoras BAI
   ======================================== */

body.template-aseguradoras .site-footer {
    margin-top: 0;
}

.site-main--aseguradoras {
    padding-top: 0;
}

/* Hero */
.aseguradoras-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #0a2540;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aseguradoras-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.aseguradoras-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.85) 0%, rgba(26, 54, 93, 0.9) 100%);
    pointer-events: none;
    z-index: 1;
}

.aseguradoras-hero-content {
    position: relative;
    z-index: 2;
}

.aseguradoras-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    color: #ffffff;
    text-transform: uppercase;
}

/* Presencia Internacional - mapa */
.aseguradoras-map-section {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    background: #ffffff;
    padding: 0;
}

.aseguradoras-map-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 0.75rem 2rem;
    background: #00458c;
}

.aseguradoras-map-sidebar-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    white-space: nowrap;
}

.aseguradoras-map-sidebar-line {
    display: block;
    width: 2px;
    height: 36px;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.6);
}

@media (prefers-reduced-motion: no-preference) {
    .aseguradoras-map-inner,
    .aseguradoras-logos-inner {
        opacity: 0;
        transform: translateY(25px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .aseguradoras-map-inner.in-view,
    .aseguradoras-logos-inner.in-view {
        opacity: 1;
        transform: translateY(0);
    }
}

.aseguradoras-map-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

.aseguradoras-map-content {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
}

/* Mapa canvas - sin fondo, efecto alto relieve */
.aseguradoras-map-canvas {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 5 / 6;
    border-radius: 12px;
    overflow: visible;
    background: transparent;
}

.aseguradoras-map-canvas #canvas {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: transparent;
}

.aseguradoras-map-canvas #dom_overlay_container {
    pointer-events: none;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.aseguradoras-map-side-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.aseguradoras-country-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aseguradoras-country-item {
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: #8b95a0;
    cursor: pointer;
    transition: color 0.4s ease, font-weight 0.3s ease;
}

.aseguradoras-country-item:hover,
.aseguradoras-country-item.highlighted {
    color: #00458c;
    font-weight: 600;
}

.aseguradoras-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.aseguradoras-stat {
    display: flex;
    flex-direction: column;
}

.aseguradoras-stat-num {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: #003366;
    line-height: 1.2;
}

.aseguradoras-stat-label {
    font-size: 0.9rem;
    color: #555;
}

/* Logos aseguradoras */
.aseguradoras-logos-section {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    background: #f8f9fa;
    padding: 0;
}

.aseguradoras-logos-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 0.75rem 2rem;
    background: #003366;
}

.aseguradoras-logos-sidebar-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    white-space: nowrap;
}

.aseguradoras-logos-sidebar-line {
    display: block;
    width: 2px;
    height: 36px;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.6);
}

.aseguradoras-logos-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    width: 100%;
}

.aseguradoras-logos-intro {
    font-size: 1.1rem;
    color: #00458c;
    font-weight: 500;
    margin: 0 0 2rem;
}

.aseguradoras-logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.aseguradoras-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 8px;
    min-height: 100px;
}

.aseguradoras-logo-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.aseguradoras-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Aseguradoras responsive */
@media (max-width: 768px) {
    .aseguradoras-hero {
        min-height: 60vh;
        background-attachment: scroll;
    }

    .aseguradoras-map-section,
    .aseguradoras-logos-section {
        grid-template-columns: 1fr;
    }

    .aseguradoras-map-sidebar,
    .aseguradoras-logos-sidebar {
        flex-direction: row;
        justify-content: center;
        padding: 1.5rem;
    }

    .aseguradoras-map-sidebar-text,
    .aseguradoras-logos-sidebar-text {
        writing-mode: unset;
        transform: none;
    }

    .aseguradoras-map-content {
        grid-template-columns: 1fr;
    }

    .aseguradoras-map-canvas {
        max-width: 100%;
        aspect-ratio: 5 / 6;
    }

    .aseguradoras-logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Template Cyberseguridad BAI (estructura como Aseguradoras)
   ======================================== */

body.template-cyberseguridad .site-footer {
    margin-top: 0;
}

.site-main--cyberseguridad {
    padding-top: 0;
}

/* Hero parallax (imagen principal arriba, como Aseguradoras) */
.cyberseguridad-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #0a2540;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cyberseguridad-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.cyberseguridad-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.85) 0%, rgba(26, 54, 93, 0.9) 100%);
    pointer-events: none;
    z-index: 1;
}

.cyberseguridad-hero-content {
    position: relative;
    z-index: 2;
}

.cyberseguridad-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    color: #ffffff;
    text-transform: uppercase;
}

/* Sección: barra vertical | video | texto (ocupan todo el espacio, sin bandas blancas) */
.cyberseguridad-content-section {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    padding: 0;
    background: #003366;
}

.cyberseguridad-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 0.75rem 2rem;
    background: #003366;
}

.cyberseguridad-sidebar-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    white-space: nowrap;
}

.cyberseguridad-sidebar-line {
    display: block;
    width: 2px;
    height: 36px;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.6);
}

@media (prefers-reduced-motion: no-preference) {
    .cyberseguridad-inner {
        opacity: 0;
        transform: translateY(25px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .cyberseguridad-inner.in-view {
        opacity: 1;
        transform: translateY(0);
    }
}

.cyberseguridad-inner {
    width: 100%;
    min-width: 0;
    padding: 0;
}

.cyberseguridad-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 70vh;
    width: 100%;
}

/* Contenedor del video */
.cyberseguridad-video-container {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0a2540;
}

.cyberseguridad-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenedor del texto */
.cyberseguridad-text-container {
    background: #003366;
    color: #ffffff;
    padding: 4rem 3rem 4rem;
    overflow-y: auto;
}

.cyberseguridad-main-title {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 1.5rem;
    color: #ffffff;
}

.cyberseguridad-intro {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.cyberseguridad-section {
    margin-bottom: 2rem;
}

.cyberseguridad-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #ffffff;
}

.cyberseguridad-section-text {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    opacity: 0.95;
}

/* Cyberseguridad responsive */
@media (max-width: 968px) {
    .cyberseguridad-hero {
        background-attachment: scroll;
    }

    .cyberseguridad-content-section {
        grid-template-columns: 1fr;
    }

    .cyberseguridad-sidebar {
        flex-direction: row;
        justify-content: center;
        padding: 1.5rem;
    }

    .cyberseguridad-sidebar-text {
        writing-mode: unset;
        transform: none;
    }

    .cyberseguridad-content-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 40vh 1fr;
        min-height: auto;
    }

    .cyberseguridad-text-container {
        padding: 2rem 1.5rem 3rem;
    }
}

@media (max-width: 768px) {
    .cyberseguridad-hero {
        min-height: 60vh;
    }

    .cyberseguridad-main-title {
        font-size: 1.5rem;
    }

    .cyberseguridad-text-container {
        padding: 1.5rem 1rem 2rem;
    }
}

/* ========================================
   Template TPA BAI (texto izq, video der)
   ======================================== */

body.template-tpa .site-footer {
    margin-top: 0;
}

.site-main--tpa {
    padding-top: 0;
}

.tpa-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #0a2540;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpa-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.tpa-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.85) 0%, rgba(26, 54, 93, 0.9) 100%);
    pointer-events: none;
    z-index: 1;
}

.tpa-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.tpa-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}

.tpa-hero-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.tpa-content-section {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    padding: 0;
    background: #003366;
}

.tpa-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 0.75rem 2rem;
    background: #003366;
}

.tpa-sidebar-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    white-space: nowrap;
}

.tpa-sidebar-line {
    display: block;
    width: 2px;
    height: 36px;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.6);
}

@media (prefers-reduced-motion: no-preference) {
    .tpa-inner {
        opacity: 0;
        transform: translateY(25px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .tpa-inner.in-view {
        opacity: 1;
        transform: translateY(0);
    }
}

.tpa-inner {
    width: 100%;
    min-width: 0;
    padding: 0;
}

/* Grid: texto izquierda, video derecha */
.tpa-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 70vh;
    width: 100%;
}

.tpa-text-container {
    background: #003366;
    color: #ffffff;
    padding: 4rem 3rem 4rem;
    overflow-y: auto;
}

.tpa-main-title {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 1.5rem;
    color: #ffffff;
}

.tpa-intro {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.tpa-section {
    margin-bottom: 2rem;
}

.tpa-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #ffffff;
}

.tpa-section-text {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    opacity: 0.95;
}

.tpa-video-container {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0a2540;
}

.tpa-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TPA responsive */
@media (max-width: 968px) {
    .tpa-hero {
        background-attachment: scroll;
    }

    .tpa-content-section {
        grid-template-columns: 1fr;
    }

    .tpa-sidebar {
        flex-direction: row;
        justify-content: center;
        padding: 1.5rem;
    }

    .tpa-sidebar-text {
        writing-mode: unset;
        transform: none;
    }

    .tpa-content-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 40vh;
        min-height: auto;
    }

    .tpa-text-container {
        padding: 2rem 1.5rem 3rem;
    }
}

@media (max-width: 768px) {
    .tpa-hero {
        min-height: 60vh;
    }

    .tpa-main-title {
        font-size: 1.5rem;
    }

    .tpa-text-container {
        padding: 1.5rem 1rem 2rem;
    }
}


