/*
Theme Name: Global Zona Franca
Theme URI: https://example.com/
Author: Antigravity
Author URI: https://example.com/
Description: Tema moderno y premium para Global Zona Franca (Santo Domingo), optimizado para conversión, logística y velocidad.
Version: 1.1.3
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: global-zona-franca
*/

/* ==========================================================================
   1. CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================================== */

:root {
    /* Colores */
    --color-primary:        #0a2540;
    --color-primary-light:  #153c64;
    --color-accent:         #f2a900;
    --color-accent-hover:   #d29100;
    --color-text:           #333333;
    --color-text-light:     #666666;
    --color-background:     #ffffff;
    --color-bg-light:       #f8f9fa;
    --color-border:         #e2e8f0;

    /* Tipografía */
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body:    'Roboto', system-ui, -apple-system, sans-serif;

    /* Layout */
    --container-width: 1200px;
    --spacing-sm:  1rem;
    --spacing-md:  2rem;
    --spacing-lg:  4rem;
    --spacing-xl:  6rem;

    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Transiciones */
    --transition-fast:   0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

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

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

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

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}


/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container--narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--spacing-lg) 0;
}

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

.text-center { text-align: center; }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.auto-grid--narrow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Decorative underline for section titles */
.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

.section-title p {
    color: var(--color-text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Inline accent underline (for h2/h3 with left border) */
.heading-accent {
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
    padding-bottom: 0.25rem;
    margin-bottom: 1.5rem;
}


/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 4px;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    line-height: 1;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-outline--white {
    border-color: #fff;
    color: #fff;
}

.btn-outline--white:hover {
    background-color: #fff;
    color: var(--color-primary);
}

.btn--full { width: 100%; }
.btn--lg   { font-size: 1.1rem; padding: 1rem 2rem; }


/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: all var(--transition-normal);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo i {
    color: var(--color-accent);
    font-size: 2rem;
}

/* Logo desde el personalizador de WordPress */
.custom-logo-link img,
.custom-logo {
    max-height: 90px;
    width: auto;
    display: block;
}

/* Nav */
.main-navigation ul {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
    list-style: none;
}

.main-navigation a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

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

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.main-navigation a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}


/* ==========================================================================
   6. FOOTER
   ========================================================================== */

.site-footer {
    background-color: var(--color-primary);
    color: #fff;
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-widget h4 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-widget p,
.footer-widget li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

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

.footer-widget a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-widget a:hover {
    color: var(--color-accent);
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact-info i {
    color: var(--color-accent);
    font-size: 1.25rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-logo {
    color: white;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--color-accent);
}

.site-info {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.site-info a {
    color: rgba(255, 255, 255, 0.7);
}

.site-info a:hover {
    color: var(--color-accent);
}


/* ==========================================================================
   7. PAGE HERO HEADER (shared across inner pages)
   ========================================================================== */

.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    text-align: center;
    overflow: hidden;
}

.page-hero--md {
    height: 35vh;
    min-height: 300px;
}

.page-hero--lg {
    height: 40vh;
    min-height: 350px;
}

.page-hero--sm {
    height: 30vh;
    min-height: 250px;
    padding: 4rem 1rem;
}

.page-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

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

.page-hero__icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: block;
}

.page-hero__title {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.page-hero__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-top: 1rem;
    max-width: 800px;
    margin-inline: auto;
    margin-bottom: 0;
}

/* Page header sin imagen (page.php genérico) */
.page-header--simple {
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.page-header--simple .entry-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}


/* ==========================================================================
   8. CARDS
   ========================================================================== */

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid var(--color-border);
}

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

.card__img {
    height: 200px;
    overflow: hidden;
}

.card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card__img img {
    transform: scale(1.05);
}

.card__body {
    padding: 2rem;
}

.card__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card__title i {
    color: var(--color-accent);
    font-size: 1.5rem;
}

.card__text {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

/* Checklist usada en cards */
.check-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.check-list i {
    color: var(--color-primary);
    margin-top: 3px;
    flex-shrink: 0;
}

/* Feature card (servicios, infraestructura) */
.feature-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    background-color: var(--color-bg-light);
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-card__icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Infra card (parque) */
.infra-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.infra-card__icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: block;
}

.infra-card p {
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Nave card (naves inventario) */
.nave-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-primary);
}

.nave-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.nave-card__size {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.nave-card p {
    color: var(--color-text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.nave-card i {
    color: var(--color-accent);
}


/* ==========================================================================
   9. FRONT PAGE
   ========================================================================== */

/* Hero */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--color-primary);
    color: #fff;
    overflow: hidden;
}

.hero-section__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-section__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-section__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.hero-section__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section__text {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

.hero-section__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Metrics bar */
.metrics-bar {
    background-color: var(--color-primary-light);
    padding: var(--spacing-md) 2rem;
    position: relative;
    z-index: 10;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-50%);
    top: 150px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
    color: #fff;
}

.metric-item__number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
    font-family: var(--font-heading);
    margin-bottom: 0.25rem;
    display: block;
}

.metric-item__label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Sección El Parque (front page) */
.fp-parque {
    padding-top: calc(var(--spacing-xl) + 4rem);
    padding-bottom: var(--spacing-xl);
}

.image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 37, 64, 0.2);
    transition: background var(--transition-normal);
    pointer-events: none;
}

.image-wrapper:hover::after {
    background: rgba(10, 37, 64, 0);
}

/* Advantages / CTA section */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #051424 100%);
    color: #fff;
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.cta-section .section-title h2 {
    color: #fff;
}

.cta-section .section-title h2::after {
    background-color: var(--color-accent);
}

.cta-section .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.advantage-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.advantage-item i {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: block;
}

.advantage-item h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.advantage-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.cta-section__cta-title {
    color: #fff;
    margin-bottom: 2rem;
}


/* ==========================================================================
   10. PÁGINA EL PARQUE
   ========================================================================== */

.parque-historia {
    font-size: 1.15rem;
    line-height: 1.8;
}

.parque-historia h2 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.parque-historia hr {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 2rem 0;
}


/* ==========================================================================
   11. PÁGINA NAVES
   ========================================================================== */

.naves-intro {
    max-width: 900px;
    margin: 0 auto 4rem auto;
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: center;
}

.naves-catalog {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.naves-inventory {
    background: var(--color-bg-light);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    padding: 3rem;
}

.naves-inventory h2 {
    margin-bottom: 1rem;
    font-size: 2.25rem;
}

.naves-inventory__desc {
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-size: 1.15rem;
}

.naves-bts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 0;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.naves-bts__content {
    padding: 3rem;
    order: 2;
}

.naves-bts__content h2 {
    margin-bottom: 1rem;
    font-size: 2.25rem;
    color: var(--color-primary);
}

.naves-bts__content p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
}

.naves-bts__image {
    height: 100%;
    min-height: 400px;
    order: 1;
    overflow: hidden;
}

.naves-bts__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.naves-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.naves-list li {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    display: flex;
    gap: 0.5rem;
}

.naves-list i {
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 3px;
}

.naves-bts__highlight {
    background: rgba(242, 169, 0, 0.1);
    border-left: 4px solid var(--color-accent);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 4px 4px 0;
}

.naves-bts__highlight h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.naves-bts__highlight p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.naves-bts__flex-note {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
}


/* ==========================================================================
   12. PÁGINA SERVICIOS
   ========================================================================== */

.servicios-intro {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 3rem;
}


/* ==========================================================================
   13. PÁGINA VENTAJAS
   ========================================================================== */

.ventajas-hero-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, #051424 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
}

.ventajas-hero-card__icon {
    font-size: 5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: block;
}

.ventajas-hero-card h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.ventajas-hero-card p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    margin-bottom: 0;
}

.ventajas-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    align-items: start;
}

.ventajas-group h3 {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.ventajas-group h3 i {
    color: var(--color-primary);
}

.ventajas-list {
    list-style: none;
    padding: 0;
}

.ventajas-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.ventajas-list i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--color-accent);
}

.ventajas-group p {
    color: var(--color-text-light);
}


/* ==========================================================================
   14. PÁGINA LOCALIZACIÓN
   ========================================================================== */

.localizacion-intro {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 0;
    text-align: center;
}

.map-wrapper {
    position: relative;
    width: 100vw;
    height: 60vh;
    left: 50%;
    transform: translateX(-50%);
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Card de Conectividad sobre el mapa */
#conectividad-card {
    position: absolute;
    top: 10%;
    right: 5%;
    background: rgba(255, 255, 255, 0.97);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 320px;
    backdrop-filter: blur(6px);
    z-index: 3;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#conectividad-card h3 {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 2rem;
}

#conectividad-card h3 i {
    color: var(--color-accent);
}

.conectividad-list {
    list-style: none;
    padding: 0;
    font-size: 0.95rem;
}

.conectividad-list li {
    margin-bottom: 1rem;
    line-height: 1.4;
}

.conectividad-list strong {
    display: block;
    margin-bottom: 0.1rem;
}

.conectividad-list span {
    color: var(--color-text-light);
}

#conectividad-close {
    display: none;
}

#conectividad-reopen {
    display: none;
}


/* ==========================================================================
   15. PÁGINA FAQs
   ========================================================================== */

.faq-page-header {
    background-color: var(--color-bg-light);
    padding: 4rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.faq-page-header__icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.faq-page-header h1 {
    color: var(--color-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0;
}

.faq-page-header p {
    color: var(--color-text-light);
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.faq-category-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 0;
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
    padding-right: 2rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--color-text-light);
}

.faq-answer p {
    padding-top: 1rem;
    margin-bottom: 0;
    line-height: 1.6;
}


/* ==========================================================================
   16. GENERIC PAGE (page.php)
   ========================================================================== */

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content p { margin-bottom: 1rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.entry-content h2, .entry-content h3  { margin-top: 1.5rem; }


/* ==========================================================================
   17. WORDPRESS REQUIRED CLASSES
   ========================================================================== */

.alignnone  { margin: 5px 20px 20px 0; }
.aligncenter, div.aligncenter { display: block; margin: 5px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft  { float: left;  margin: 5px 20px 20px 0; }

a img.alignright  { float: right; margin: 5px 0 20px 20px; }
a img.alignnone   { margin: 5px 20px 20px 0; }
a img.alignleft   { float: left; margin: 5px 20px 20px 0; }
a img.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.wp-caption                   { background: #fff; border: 1px solid #f0f0f0; max-width: 96%; padding: 5px 3px 10px; text-align: center; }
.wp-caption.alignnone          { margin: 5px 20px 20px 0; }
.wp-caption.alignleft          { margin: 5px 20px 20px 0; }
.wp-caption.alignright         { margin: 5px 0 20px 20px; }
.wp-caption p.wp-caption-text  { font-size: 11px; line-height: 17px; margin: 0; padding: 0 4px 5px; }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

.wp-block-group { margin-bottom: 1.5rem; }


/* ==========================================================================
   18. RESPONSIVE — Tablet & Mobile
   ========================================================================== */

@media (max-width: 992px) {
    .two-col {
        grid-template-columns: 1fr;
    }

    .ventajas-detail-grid {
        grid-template-columns: 1fr;
    }

    .naves-bts {
        grid-template-columns: 1fr;
    }

    .naves-bts__image {
        min-height: 300px;
        order: 1;
    }

    .naves-bts__content {
        order: 2;
    }
}

@media (max-width: 768px) {

    /* Layout */
    .container,
    .container--narrow {
        padding: 0 1.25rem;
    }

    .section {
        padding: var(--spacing-md) 0;
    }

    /* Nav */
    .main-navigation ul {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    /* Hero front page */
    .hero-section__title {
        font-size: 2rem;
    }

    .hero-section__text {
        font-size: 1.1rem;
    }

    /* Metrics bar: sin offset flotante en móvil */
    .metrics-bar {
        transform: none;
        border-radius: 0;
        top: 20px;
        padding: var(--spacing-md) 1.25rem;
    }

    .fp-parque {
        padding-top: var(--spacing-lg);
    }

    .metric-item__number {
        font-size: 2rem;
    }

    /* Page hero */
    .page-hero__title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .page-hero__subtitle {
        font-size: 1rem;
    }

    /* Naves */
    .naves-bts {
        grid-template-columns: 1fr;
    }

    .naves-inventory {
        padding: 1.5rem;
    }

    /* Ventajas */
    .ventajas-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 1rem;
        margin: 20px;
    }

    .ventajas-hero-card {
        padding: 2.5rem 1.5rem;
        border-radius: 8px;     /* Reducir radio en móvil */
        margin: 20px;
    }

    .ventajas-hero-card h2 {
        font-size: 1.75rem;
    }

    /* Footer */
    .footer-grid {
        gap: var(--spacing-md);
    }

    /* Card conectividad en móvil: drawer desde abajo */
    #conectividad-card {
        position: absolute;
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 1.25rem 1.5rem 1.5rem;
        max-height: 60vh;
        overflow-y: auto;
    }

    #conectividad-card.hidden {
        transform: translateY(110%);
        opacity: 0;
        pointer-events: none;
    }

    #conectividad-close {
        display: flex;
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1.4rem;
        color: var(--color-primary);
        line-height: 1;
        padding: 0.25rem 0.5rem;
        border-radius: 50%;
        transition: background 0.2s;
    }

    #conectividad-close:hover {
        background: rgba(0, 0, 0, 0.07);
    }

    #conectividad-reopen {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        background: var(--color-primary);
        color: #fff;
        border: none;
        border-radius: 20px;
        padding: 0.55rem 1.2rem;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        z-index: 4;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        white-space: nowrap;
        transition: opacity 0.2s;
    }

    #conectividad-reopen.hidden {
        opacity: 0;
        pointer-events: none;
    }

    /* ===== MENÚ MÓVIL ANIMADO ===== */

    #primary-menu {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem 1.5rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 999;

        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px); /* 👈 punto de partida */
    }
}

/* ==========================================================================
   19. BLOG / INDEX (index.php)
   ========================================================================== */

.post-item {
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-sm);
}

.post-item .entry-title {
    margin-bottom: 0.5rem;
}

.post-thumbnail {
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.page-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
}

/* ==========================================================================
   20. HELPERS ADICIONALES
   ========================================================================== */

/* Check list variante grande (front page) */
.check-list--lg li {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

/* Párrafo introductorio de El Parque en front page */
.parque-intro-text {
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

/* Separador en historia del parque */
.parque-historia__divider {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 2rem 0;
}

/* Imagen dentro de page-hero__bg (thumbnail WP) */
.page-hero__bg img,
.page-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}
