/**
 * Estilos para templates de páginas
 * Incluye estilos para páginas generales y páginas legales
 *
 * @package Aeropuerto_Directorio
 * @since 1.0.0
 */

/* ============================================
   PAGE HEADER SECTION
   ============================================ */

/* Header con imagen de fondo */
.page-header-with-image {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: self-start;
    justify-content: center;
}

.page-header-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.page-header-content {
    position: absolute;
    z-index: 2;
    width: 100%;
    bottom: 30px;

}

.page-header-with-image .page-title {
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.page-header-with-image .page-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    line-height: 1.5;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

.legal-meta-info-overlay {
    color: #fff;
    font-size: 0.875rem;
}

.legal-meta-info-overlay small {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.legal-meta-info-overlay strong {
    color: #fff;
}

/* Fallback header sin imagen */
.page-header-section {
    border-bottom: 1px solid #dee2e6;
}

.page-header-section .page-title {
    color: #212529;
    font-family: 'Manrope', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

.page-header-section .page-subtitle {
    font-size: 1rem;
    line-height: 1.5;
}

.legal-meta-info {
    font-size: 0.875rem;
}

/* ============================================
   PAGE CONTENT SECTION
   ============================================ */

.page-content-section {
    /*background: #fff;*/
}

.page-content-article .entry-content,
.legal-article .legal-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

/* Headings */
.entry-content h2,
.legal-content h2 {
    color: #212529;
    font-weight: 700;
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0A8CCC;
}

.entry-content h2:first-child,
.legal-content h2:first-child {
    margin-top: 0;
}

.entry-content h3,
.legal-content h3 {
    color: #0A8CCC;
    font-weight: 600;
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content h4,
.legal-content h4 {
    color: #333;
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.entry-content h5,
.legal-content h5 {
    color: #555;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.entry-content h6,
.legal-content h6 {
    color: #666;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Paragraphs */
.entry-content p,
.legal-content p {
    margin-bottom: 1.25rem;
}

/* Lists */
.entry-content ul,
.entry-content ol,
.legal-content ul,
.legal-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content li,
.legal-content li {
    margin-bottom: 0.5rem;
}

.entry-content ul li,
.legal-content ul li {
    list-style-type: disc;
}

.entry-content ol li,
.legal-content ol li {
    list-style-type: decimal;
}

/* Links */
.entry-content a,
.legal-content a {
    color: #0A8CCC;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.entry-content a:hover,
.legal-content a:hover {
    color: #065a82;
}

/* Images */
.entry-content img,
.legal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.entry-content .aligncenter,
.legal-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.entry-content .alignleft,
.legal-content .alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
}

.entry-content .alignright,
.legal-content .alignright {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
}

/* Blockquotes */
.entry-content blockquote,
.legal-content blockquote {
    border-left: 4px solid #0A8CCC;
    background: #f8f9fa;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
    font-style: italic;
    color: #555;
}

.entry-content blockquote p:last-child,
.legal-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Tables */
.entry-content table,
.legal-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.entry-content table th,
.legal-content table th {
    background: #f8f9fa;
    color: #212529;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.entry-content table td,
.legal-content table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.entry-content table tr:hover,
.legal-content table tr:hover {
    background: #f8f9fa;
}

/* Strong & Em */
.entry-content strong,
.legal-content strong {
    font-weight: 600;
    color: #212529;
}

.entry-content em,
.legal-content em {
    font-style: italic;
}

/* Code */
.entry-content code,
.legal-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: #d63384;
    font-family: 'Courier New', monospace;
}

.entry-content pre,
.legal-content pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.entry-content pre code,
.legal-content pre code {
    background: none;
    padding: 0;
    color: #212529;
}

/* Horizontal Rule */
.entry-content hr,
.legal-content hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #dee2e6;
}

/* Page Links (Paginación de contenido) */
.page-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.page-links a,
.page-links > span {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem 0.5rem 0;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #212529;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background: #0A8CCC;
    color: #fff;
    border-color: #0A8CCC;
}

.page-links > span {
    background: #0A8CCC;
    color: #fff;
    border-color: #0A8CCC;
}

/* ============================================
   LEGAL PAGE SPECIFIC
   ============================================ */

.legal-contact-box .card {
    background: #f8f9fa;
}

.legal-contact-box .text-primary {
    color: #0A8CCC !important;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 991.98px) {
    .page-header-with-image {
        height: auto;
    }

    .page-header-with-image .page-title {
        font-size: 2.5rem;
    }

    .page-header-with-image .page-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .page-header-with-image {
        height: auto;
    }

    .page-header-with-image .page-title {
        font-size: 2rem;
    }

    .page-header-with-image .page-subtitle {
        font-size: 1rem;
    }

    .legal-meta-info-overlay {
        font-size: 0.75rem;
    }

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

    .page-header-section .page-subtitle {
        font-size: 0.9rem;
    }

    .entry-content h2,
    .legal-content h2 {
        font-size: 1.4rem;
        margin-top: 2rem;
    }

    .entry-content h3,
    .legal-content h3 {
        font-size: 1.2rem;
    }

    .entry-content h4,
    .legal-content h4 {
        font-size: 1.1rem;
    }

    .entry-content,
    .legal-content {
        font-size: 1rem;
    }

    .entry-content img,
    .legal-content img {
        margin: 1rem 0;
    }

    .entry-content table,
    .legal-content table {
        font-size: 0.875rem;
    }

    .entry-content table th,
    .entry-content table td,
    .legal-content table th,
    .legal-content table td {
        padding: 0.5rem;
    }

    .legal-meta-info {
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .page-header-with-image {
        height: 250px;
    }

    .page-header-with-image .page-title {
        font-size: 1.5rem;
    }

    .page-header-with-image .page-subtitle {
        font-size: 0.9rem;
    }

    .page-header-section {
        padding: 1rem 0 !important;
    }

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

    .page-content-section {
        padding: 2rem 0 !important;
    }

    .entry-content h2,
    .legal-content h2 {
        font-size: 1.25rem;
    }

    .entry-content ul,
    .entry-content ol,
    .legal-content ul,
    .legal-content ol {
        padding-left: 1.5rem;
    }

    .entry-content .alignleft,
    .entry-content .alignright,
    .legal-content .alignleft,
    .legal-content .alignright {
        float: none;
        margin: 1rem 0;
        display: block;
    }
}
