/**
 * Azulejos Custom Styles
 * Optimized for Performance and PageSpeed
 * 
 * @package Azulejos
 */

/* ============================================================================
   LOCAL FONTS
   ============================================================================ */

/* Montserrat Regular (400) */
@font-face {
    font-family: 'Montserrat';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}

/* Montserrat Semibold (600) */
@font-face {
    font-family: 'Montserrat';
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/montserrat-v31-latin-600.woff2') format('woff2');
}

/* Montserrat Bold (700) */
@font-face {
    font-family: 'Montserrat';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/montserrat-v31-latin-700.woff2') format('woff2');
}

/* Montserrat ExtraBold (800) */
@font-face {
    font-family: 'Montserrat';
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    src: url('../fonts/montserrat-v31-latin-800.woff2') format('woff2');
}

/* Lora Semibold Italic (600) */
@font-face {
    font-family: 'Lora';
    font-weight: 600;
    font-style: italic;
    font-display: swap;
    src: url('../fonts/lora-v37-latin-600italic.woff2') format('woff2');
}

/* Lora Bold Italic (700) */
@font-face {
    font-family: 'Lora';
    font-weight: 700;
    font-style: italic;
    font-display: swap;
    src: url('../fonts/lora-v37-latin-700italic.woff2') format('woff2');
}

/* ============================================================================
   CSS VARIABLES
   ============================================================================ */

:root {
    /* Colors - Basado en #00455C */
    --color-primary: #00455C;
    --color-primary-light: #0179A1;
    --color-secondary: #0179A1;
    --color-accent: #E67E22;
    --color-dark: #1A1A1A;
    --color-light: #F8F9FA;
    --color-white: #FFFFFF;
    --color-gray: #6C757D;
    --color-gray-light: #E9ECEF;
    
    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #00455C 0%, #0179A1 100%);
    --gradient-primary-hover: linear-gradient(135deg, #0179A1 0%, #00455C 100%);
    --gradient-secondary: linear-gradient(135deg, #0179A1 0%, #00455C 100%);
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lora', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ============================================================================
   BASE STYLES
   ============================================================================ */

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #fff9f0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-style: italic;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
        z-index: 1;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: var(--spacing-lg) 0;
    }
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.text-primary{color: var(--color-primary) !important;}
.bg-primary{background-color: var(--color-primary) !important;}

.enlace{color: #00455C !important; text-decoration: underline;}

.wpcf7-submit {
    background-color: black !important;
    color: white !important;
    border-color: black !important;
}

/* ============================================================================
   SECTION TITLES
   ============================================================================ */

.section-title {
    /* Estilo para "ÚLTIMOS DEPARTAMENTOS" */
    font-family: var(--font-primary); /* Montserrat, sans-serif */
    font-weight: 700; /* Bold */
    font-style: normal;
    text-transform: uppercase;
    font-size: 3.9375rem; /* ~63pt (63 / 16 = 3.9375rem) */
    line-height: 1.1;
    margin-bottom: 0;
    color: var(--color-primary);
}

.section-title span {
    /* Estilo para "de entrega inmediata" */
    display: block;
    font-family: var(--font-secondary); /* Lora, serif */
    font-weight: 600; /* SemiBold */
    font-style: italic; /* Italic */
    text-transform: none; /* Quita las mayúsculas */
    font-size: 4.6875rem; /* ~75pt (75 / 16 = 4.6875rem) */
    line-height: 1.1;
    margin-top: var(--spacing-xs); /* Separación mínima */
    color: var(--color-primary); /* Mismo color primario */
}

.section-subtitle {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    text-align: center;
    color: var(--color-gray);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

section#areas-comunes, section#sustentabilidad {
    border-radius: 0 20% 0 20%;
}

.text-lora {
    /* Estilo para "de entrega inmediata" */
    display: block;
    font-family: var(--font-secondary); /* Lora, serif */
}

/* ============================================================================
   EQUIPO CARD STYLES
   ============================================================================ */

.equipo-card {
    overflow: hidden;
    text-align: center;
    transition: box-shadow var(--transition-normal);
    height: 100%; /* Asegura que todas las tarjetas tengan la misma altura */
}

.equipo-card:hover {
}

.equipo-card-image {
    /* La imagen debe ser el punto focal y cubrir el área */
    position: relative;
}

.equipo-card-image img {
    object-fit: cover;
    max-width: 280px !important;
    max-height: 280px !important;
    transition: transform 0.6s ease;
}

.equipo-card:hover .equipo-card-image img {
    transform: scale(1.05); /* Pequeño zoom al pasar el mouse */
}

.equipo-card-content {
    padding: var(--spacing-md);
    padding-top: var(--spacing-lg);
}

.equipo-name {
    font-family: var(--font-primary);
    font-weight: 700;
    font-style: normal;
    font-size: 44px;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.equipo-position {
    font-family: var(--font-primary);
    font-style: normal;
    font-size: 35px;
    color: var(--color-primary);
    font-weight: 600;
}

/* Swiper Navigation/Pagination Override for Equipo Section */
.equipo-swiper .swiper-button-next,
.equipo-swiper .swiper-button-prev {
    color: var(--color-dark);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
}


/* ============================================================================
   TESTIMONIOS SECTION
   ============================================================================ */
   
.testimonios-section {
    position: relative;
    /* Estilos del fondo de imagen fija y curvo (si aplica) */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax */
    overflow: hidden;
}

.testimonios-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado oscuro semi-transparente para mejorar el contraste del texto */
    background: rgba(255, 245, 230, 0.7);
    z-index: 1;
}

.section-title span.text-white-italic {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-style: italic;
    color: var(--color-white);
}

/* ============================================================================
   TESTIMONIO CARD STYLES
   ============================================================================ */
#testimonios{background-image: url('https://i.imgur.com/9RVGbBx.jpeg'); background-size:cover; }
.testimonios-swiper .swiper-slide {
    height: auto; /* Esto es el valor por defecto de Swiper si el contenido es variable */
}
.testimonio-card {
    /* Color de fondo solicitado */
    background-color: #FFF9EF; 
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.testimonio-card:hover {
    transform: translateY(-5px);
}

.testimonio-name {
    font-family: var(--font-primary);
    font-weight: 700;
    font-style: normal;
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.testimonio-rating {
    color: var(--color-accent); /* Color naranja para las estrellas */
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: var(--spacing-md);
}

.testimonio-rating .star {
    margin: 0 1px;
}

.testimonio-content {
    font-size: 1rem;
    color: var(--color-dark);
    line-height: 1.6;
    flex-grow: 1;
    text-align: center;
}

.testimonio-content p {
    margin-bottom: 0;
}

/* Swiper Navigation/Pagination Override for Testimonios Section */
.testimonios-swiper .swiper-button-next,
.testimonios-swiper .swiper-button-prev {
    color: var(--color-primary);
}

.testimonios-swiper .swiper-pagination-bullet-active {
    background: var(--color-primary);
}

.equipo-swiper .swiper-pagination-bullet-active {
    background: var(--color-primary);
}

/* ============================================================================
   BUTTONS - CON DEGRADADO #00455C a #0179A1
   ============================================================================ */

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 12px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--gradient-primary-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    padding: 12px 32px;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Botón con degradado inverso */
.btn-gradient {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 12px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-block;
}

.btn-gradient:hover {
    background: var(--gradient-primary-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Botón outline con degradado */
.btn-outline-gradient {
    background: transparent;
    color: var(--color-primary);
    padding: 12px 32px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-block;
    position: relative;
    background-clip: padding-box;
}

.btn-outline-gradient::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    bottom: -2px;
    left: -2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    z-index: -1;
}

.btn-outline-gradient:hover {
    background: var(--gradient-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ============================================================================
   MATTERPORT OVERLAY & PLAY BUTTON
   ============================================================================ */

.position-relative {
    position: relative !important;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 69, 92, 0.3); /* Tinte azulado transparente */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background var(--transition-normal);
    border-radius: var(--radius-md);
}

.img-wrapper:hover .play-overlay {
    background: rgba(0, 69, 92, 0.5);
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: pulse-white 2s infinite;
    transition: transform var(--transition-normal);
}

.play-button svg {
    width: 32px;
    height: 32px;
    margin-left: 4px; /* Ajuste visual óptico */
}

.img-wrapper:hover .play-button {
    transform: scale(1.1);
    background: var(--color-accent); /* Cambio a naranja al hover */
}

.play-text {
    color: var(--color-white);
    font-family: var(--font-secondary);
    font-weight: 700;
    font-style: italic;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-top: 1rem;
}

@keyframes pulse-white {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Ajuste para el Lightbox cuando muestra video */
.lightbox-content-wrapper {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    background: #000;
}

.lightbox-iframe {
    width: 100%;
    height: 100%;
}

/* ============================================================================
   CONTACT FORM 7 - DARK MODE FIX
   ============================================================================ */

/* --- 1. Arreglo de Layout para Radios/Checkboxes --- */
/*
 * Esto alinea los radio buttons con su texto, 
 * imitando el .form-check de Bootstrap.
 */
.wpcf7-form .wpcf7-list-item {
    display: inline-block; /* Los pone en línea */
    margin-right: 1.5rem;  /* Espaciado entre opciones */
}

.wpcf7-form .wpcf7-list-item label {
    display: inline-flex; /* ¡LA CLAVE! Alinea el input y el label */
    align-items: center;
    cursor: pointer;
    font-weight: 400; 
}

.wpcf7-form .wpcf7-list-item input[type="radio"],
.wpcf7-form .wpcf7-list-item input[type="checkbox"] {
    margin-right: 0.5rem; /* Espacio entre el botón y el texto */
}

/* --- 2. Arreglo de Color para Modo Oscuro --- */

/* * Asegura que el texto de las opciones (Teléfono, WhatsApp...) 
 * sea blanco en el fondo oscuro.
 */
[data-bs-theme="dark"] .wpcf7-form .wpcf7-list-item label {
    color: var(--color-white);
}

/* * Fuerza el texto del botón "Enviar" a ser blanco.
 * El modo oscuro de Bootstrap puede estar interfiriendo con tu .btn-primary
 */
[data-bs-theme="dark"] .wpcf7-form input[type="submit"].btn-primary {
    color: var(--color-white) !important;
}

/* * Opcional: Hace que el icono del calendario (input date)
 * sea visible en modo oscuro.
 */
[data-bs-theme="dark"] .form-control[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* --- 3. Estilos de Mensajes de Validación --- */
/* * Estos ya los tenías, pero los incluyo para 
 * mantener todo el código de CF7 junto.
 */
.wpcf7-form .wpcf7-not-valid-tip {
    color: #dc3545; /* Rojo de Bootstrap 'danger' */
    font-size: 0.875em;
    margin-top: 0.25rem;
}

.wpcf7-form .wpcf7-response-output {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
}

.wpcf7-form .wpcf7-mail-sent-ok {
    background: #d1e7dd; /* Verde de Bootstrap 'success' */
    color: #0f5132;
    border: 1px solid #badbcc;
}

.wpcf7-form .wpcf7-validation-errors,
.wpcf7-form .wpcf7-spam-blocked {
    background: #f8d7da; /* Rojo de Bootstrap 'danger' */
    color: #842029;
    border: 1px solid #f5c2c7;
}

/*
 * Asegura que el texto de las opciones de radio/checkbox 
 * sea blanco cuando el formulario está en modo oscuro.
 */
[data-bs-theme="dark"] .wpcf7-list-item label {
    color: var(--color-white);
}

/* Opcional: Estilos para el input de fecha en modo oscuro */
[data-bs-theme="dark"] .form-control[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.contenido-plano{position: relative; border-radius: 10% 0 0 10%;}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide In from Left */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide In from Right */
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale In */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ============================================================================
   RESPONSIVE IMAGES
   ============================================================================ */

.img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

.modelos-grid-wrapper {
    position: relative;
    padding-bottom: var(--spacing-sm); /* Espacio para paginación si se usa swiper */
}

/* Estilo de la tarjeta */
.card-modelo {

    border-radius: var(--radius-lg); /* Bordes redondeados grandes */
    overflow: hidden; /* Importante para el img-wrapper */
    
    transition: transform var(--transition-fast);
    height: 100%; /* Asegura que todas las tarjetas tengan la misma altura */
    display: flex;
    flex-direction: column;
}

.card-modelo:hover {
    transform: translateY(-5px);
}

/* Contenedor de Imagen con el borde redondeado de la imagen proporcionada */
.modelo-img {
    height: 400px; /* Altura fija para uniformidad */
    width: 100%;
    overflow: hidden;
    /* Aplicar el borde redondeado en la parte inferior para que la imagen se adapte */
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.modelo-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    /* Redondear sólo la parte superior de la imagen */
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    transition: transform var(--transition-slow);
}

.modelo-img img:hover {
    transform: scale(1.05);
}

/* Contenido del Modelo */
.modelo-content {
    padding: var(--spacing-md);
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modelo-title {
    font-family: var(--font-secondary);
    font-weight: 600; /* Semibold */
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

/* Botón "Conoce más" */
.btn-modelo {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color var(--transition-fast);
    text-transform: uppercase;
    display: inline-block;
    margin-top: auto; /* Empuja el botón hacia abajo */
}

.btn-modelo:hover {
    background-color: var(--color-primary-light);
    color: var(--color-white);
}

/* ============================================================================
   AREAS COMUNES SLIDER
   ============================================================================ */

.areas-comunes-section .section-title,
.areas-comunes-section .section-subtitle {
    color: var(--color-white) !important;
}

.areas-comunes-swiper {
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-lg);
}

.area-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-normal);
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.area-card:hover {
    transform: translateY(-8px);
}

.area-card-image {
    width: 100%;
    height: 60%; /* Imagen ocupa 60% */
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    overflow: hidden;
}

.area-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

/* El hover de img-wrapper ya tiene la animación de zoom */

.area-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    text-align: center;
}

.area-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
    display: block;
    line-height: 1;
}

.area-title {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    color: var(--color-dark);
    margin-bottom: 0;
}

/* Estilos de navegación de Swiper personalizados */
.areas-comunes-swiper .swiper-button-prev,
.areas-comunes-swiper .swiper-button-next {
    color: var(--color-white);
    background-color: var(--color-primary-light);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.areas-comunes-swiper .swiper-button-prev:hover,
.areas-comunes-swiper .swiper-button-next:hover {
    background-color: var(--color-accent);
    transform: scale(1.05);
}

.areas-comunes-swiper .swiper-button-next {
    right: 0;
}

.areas-comunes-swiper .swiper-button-prev {
    left: 0;
}

.areas-comunes-swiper .swiper-pagination-bullet {
    background-color: var(--color-white);
}

.areas-comunes-swiper .swiper-pagination-bullet-active {
    background-color: var(--color-accent);
}

/* ============================================================================
   LOADING STATES
   ============================================================================ */

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--color-gray-light);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */


/* Reducción de tamaño para Tablets */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.5rem; /* 40px */
    }
    .section-title span {
        font-size: 3rem; /* 48px */
    }
}

/* Ocultar el Swiper en Desktop si tiene 4 o menos items, y usar Grid de Bootstrap */
@media (min-width: 992px) {
    .modelos-grid-wrapper:not(.swiper) .modelos-grid {
        display: flex;
        flex-wrap: wrap;
        margin-left: calc(-1 * var(--spacing-sm));
        margin-right: calc(-1 * var(--spacing-sm));
        justify-content: center;
    }

    .modelos-grid-wrapper:not(.swiper) .modelo-item {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }

        .contenido-plano img {
        right: 100px;
        position: relative;
    }
}

* Estilos de Swiper - Responsive para Móvil/Tablet */

/* Ajustes para móviles */
@media (max-width: 768px) {
    .area-card {
        min-height: 350px;
    }
    
    .areas-comunes-swiper .swiper-button-prev,
    .areas-comunes-swiper .swiper-button-next {
        display: none; /* Ocultar en móvil para dar espacio */
    }
    
    .areas-comunes-swiper .swiper-pagination {
        bottom: 0px;
    }
}

@media (max-width: 991px) {
    .modelos-grid-wrapper.swiper {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }

    .modelos-grid-wrapper .swiper-slide {
        width: 70%; /* Mostrar parcialmente el siguiente slide en móvil */
    }

    .modelos-grid-wrapper .swiper-button-next,
    .modelos-grid-wrapper .swiper-button-prev {
        top: 40%;
        transform: translateY(-50%);
        color: var(--color-primary);
        background: var(--color-white);
        box-shadow: var(--shadow-sm);
        width: 40px;
        height: 40px;
    }
    
    .modelos-grid-wrapper .swiper-button-prev {
        left: 5px;
    }

    .modelos-grid-wrapper .swiper-button-next {
        right: 5px;
    }
    
    .modelos-grid-wrapper .swiper-pagination {
        bottom: 0;
    }
    
    .modelos-grid-wrapper .swiper-pagination-bullet-active {
        background: var(--color-primary);
    }
}

/* Ocultar navegación en mobile para evitar saturación */
@media (max-width: 576px) {
    .modelos-grid-wrapper .swiper-button-next,
    .modelos-grid-wrapper .swiper-button-prev {
        display: none;
    }
}

/* Reducción de tamaño para Móviles */
@media (max-width: 576px) {
    .section-title {
        font-size: 2rem; /* 32px */
    }
    .section-title span {
        font-size: 2.5rem; /* 40px */
    }
}

@media print {
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .no-print {
        display: none !important;
    }
    
    a {
        text-decoration: underline;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
    }
}