/* Variables */
:root {
    --primary-color: #1a2c4e;
    --secondary-color: #d4af37;
    --accent-color: #2d4a73;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

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

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

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

.section-label {
    display: inline-block;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-description {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--secondary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-block {
    width: 100%;
}

/* Botón estilo redondeado dorado */
.btn-rounded {
    display: inline-block;
    padding: 18px 45px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    border-radius: 50px;
    border: none;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-rounded:hover {
    background: #c19b2e;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
    color: var(--primary-color);
}

/* Variante blanca con borde */
.btn-rounded-outline {
    display: inline-block;
    padding: 18px 45px;
    background: transparent;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    border-radius: 50px;
    border: 2px solid white;
    transition: all 0.4s ease;
}

.btn-rounded-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* ============================================
   HERO SECTION (FALLBACK - Si no usas Swiper)
   ============================================ */

.hero {
    height: 100vh;
    background: linear-gradient(rgba(26, 44, 78, 0.85), rgba(26, 44, 78, 0.85)), 
                url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1920') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    margin-top: 0;
    padding-top: 0;
}

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

.hero-title {
    font-size: 4rem;
    margin-bottom: 15px;
    letter-spacing: 3px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--white);
    font-size: 2rem;
}

/* ============================================
   HERO SWIPER SLIDER
   ============================================ */

.hero-swiper {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
}

.swiper-wrapper {
    height: 100%;
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 44, 78, 0.5), rgba(26, 44, 78, 0.5));
    z-index: 1;
}

.hero-swiper .container {
    position: relative;
    z-index: 2;
}

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

.slide-content.centered {
    text-align: center;
    margin: 0 auto;
}

.slide-content.right-aligned {
    text-align: center;
    margin: 0 auto;
}

.slide-label {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    line-height: 32px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-weight: 400;
    display: block;
}

.slide-title {
    font-family: 'Poppins', sans-serif;
    font-size: 60px;
    line-height: 75px;
    font-weight: 600;
    color: white;
    margin-bottom: 40px;
}

.slide-title cite {
    color: var(--secondary-color);
    font-style: normal;
}

.slide-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.slide-content.centered .slide-buttons {
    justify-content: center;
}

.slide-content.right-aligned .slide-buttons {
    justify-content: center;
}

/* Swiper Navigation Buttons */
.swiper-button-prev,
.swiper-button-next {
    width: 70px !important;
    height: 70px !important;
    background: rgba(212, 175, 55, 0.8) !important;
    border-radius: 50% !important;
    transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--secondary-color) !important;
    transform: scale(1.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 20px !important;
    font-weight: bold;
    color: white !important;
}

.swiper-button-prev {
    left: 40px !important;
}

.swiper-button-next {
    right: 40px !important;
}

/* Swiper Pagination */
.swiper-pagination {
    bottom: 80px !important;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--secondary-color) !important;
    width: 30px !important;
    border-radius: 6px !important;
}

/* Scroll Indicator en Swiper */
.hero-swiper .scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.hero-swiper .scroll-indicator a {
    color: white;
    font-size: 2rem;
    text-decoration: none;
}

.hero-swiper .scroll-indicator a:hover {
    color: var(--secondary-color);
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    padding: 100px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: stretch;
}

.feature-box-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
}

.feature-box {
    background: var(--white);
    padding: 50px 30px;
    text-align: center;
    border: 2px solid #eee;
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.feature-box-link:hover .feature-box {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--secondary-color);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.feature-box h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-box p {
    color: var(--text-light);
    line-height: 1.8;
    flex-grow: 1;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.badge-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: 0.9rem;
    margin-top: 5px;
}

.about-text {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-list {
    margin: 30px 0;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.list-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    padding: 100px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-item {
    background: var(--bg-light);
    padding: 40px;
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.service-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-item p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

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

.service-link i {
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    text-align: center;
}

.stat-number {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ============================================
   TEAM SECTION
   ============================================ */

.team {
    padding: 100px 0;
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-member {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.team-info {
    padding: 25px;
    text-align: center;
}

.team-info h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.team-position {
    color: var(--secondary-color);
    font-weight: 600;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio {
    padding: 100px 0;
    background: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 300px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 44, 78, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    color: var(--white);
    font-size: 1.5rem;
}

/* ============================================
   SCHEDULE SECTION
   ============================================ */

.schedule {
    padding: 100px 0;
    background: var(--bg-light);
}

.schedule-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.schedule-info {
    margin: 30px 0;
}

.schedule-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.schedule-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.schedule-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.schedule-item p {
    color: var(--text-light);
}

.alert-info {
    background: #e8f4f8;
    border-left: 4px solid #0288d1;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-top: 30px;
}

.alert-info i {
    color: #0288d1;
    font-size: 1.5rem;
}

.schedule-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Cambia 1.2fr por 2fr */
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.contact-details h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-details p,
.contact-details a {
    color: var(--text-light);
}

.contact-details a:hover {
    color: var(--secondary-color);
}

/* Botón cómo llegar */
.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 20px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-map:hover {
    background: #c19b2e;
    transform: translateY(-2px);
}

.btn-map i {
    font-size: 1rem;
}

/* Mapa de contacto */
.contact-map {
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Form */
.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Form Messages */
.form-message {
    padding: 15px;
    border-radius: 5px;
    font-weight: 600;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message i {
    margin-right: 8px;
}

/* ============================================
   NEWS SECTION
   ============================================ */

.news {
    padding: 100px 0;
    background: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-content h3 {
    margin-bottom: 15px;
}

.news-content h3 a {
    color: var(--primary-color);
}

.news-content h3 a:hover {
    color: var(--secondary-color);
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.news-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.news-link i {
    transition: var(--transition);
}

.news-link:hover i {
    transform: translateX(5px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 10px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.7;
}

/* ============================================
   POSTS & BLOG
   ============================================ */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.post-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-title {
    padding: 20px 20px 10px;
}

.post-title a {
    color: var(--primary-color);
}

.post-title a:hover {
    color: var(--secondary-color);
}

.post-meta {
    padding: 0 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-excerpt {
    padding: 15px 20px;
    color: var(--text-light);
}

.post-item .btn {
    margin: 0 20px 20px;
}

/* Single Post */
.entry-header {
    text-align: center;
    margin-bottom: 40px;
}

.entry-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.entry-meta {
    color: var(--text-light);
}

.entry-thumbnail {
    margin-bottom: 40px;
}

.entry-thumbnail img {
    width: 100%;
    border-radius: 10px;
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-dark);
}

.entry-content h2,
.entry-content h3 {
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1199px) {
    /* Mobile Navigation */
    .header-navigation {
        position: fixed;
        left: -100%;
        top: 0;
        width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        transition: left 0.3s ease;
        z-index: 9999;
        overflow-y: auto;
    }
    
    .header-navigation.active {
        left: 0;
    }
    
    .main-navigation-inner {
        flex-direction: column;
        padding: 20px;
    }
    
    .menu-mobile-close {
        display: block;
        text-align: right;
        font-size: 24px;
        color: white;
        margin-bottom: 20px;
        cursor: pointer;
    }
    
    .primary-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .primary-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .primary-menu > li > a {
        padding: 15px 0;
    }
    
    .primary-menu > li > a::after {
        display: none;
    }
    
    #main-menu-mobile {
        display: flex;
        align-items: center;
        gap: 15px;
        position: absolute;
        right: 40px;
    }
    
    .btn-nav-mobile {
        width: 25px;
        height: 20px;
        position: relative;
        cursor: pointer;
    }
    
    .btn-nav-mobile span {
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background: white;
        transition: all 0.3s ease;
    }
    
    .btn-nav-mobile span:nth-child(1) { 
        top: 0; 
    }
    
    .btn-nav-mobile span:nth-child(2) { 
        top: 9px; 
    }
    
    .btn-nav-mobile span:nth-child(3) { 
        top: 18px; 
    }
    
    .btn-nav-mobile.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .btn-nav-mobile.active span:nth-child(2) {
        opacity: 0;
    }
    
    .btn-nav-mobile.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .menu-mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .menu-mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .header-right {
        display: none;
    }
    
    /* Submenús en móvil */
    .primary-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 0, 0, 0.5);
        padding: 0;
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .menu-item-has-children.active > .sub-menu {
        max-height: 500px;
    }
    
    .primary-menu .sub-menu li a {
        padding: 12px 0 12px 20px;
    }
    
    .primary-menu .sub-menu li a:hover {
        padding-left: 25px;
    }
}

@media (max-width: 968px) {
    .hero-title,
    .slide-title {
        font-size: 2.5rem !important;
    }

    .features-grid,
    .services-grid,
    .stats-grid,
    .team-grid,
    .portfolio-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-wrapper,
    .schedule-wrapper,
    .contact-wrapper,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
    
    /* Swiper responsive */
    .slide-title {
        font-size: 36px !important;
        line-height: 50px !important;
    }
    
    .slide-label {
        font-size: 18px !important;
        letter-spacing: 2px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 50px !important;
        height: 50px !important;
    }
    
    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 16px !important;
    }
    
    .swiper-button-prev {
        left: 20px !important;
    }
    
    .swiper-button-next {
        right: 20px !important;
    }
    
    .slide-content {
        max-width: 90%;
    }

    .contact-map {
        height: 400px;
    }
}

@media (max-width: 768px) {
    #header-main .container {
        padding: 0 20px;
    }
    
    #header-main .row {
        min-height: 70px;
    }
    
    .header-branding img {
        height: 40px;
    }
    
    /* Logo responsive */
    .logo-name {
        display: none;
    }
    
    .logo-square {
        width: 40px;
        height: 40px;
    }
    
    .logo-n,
    .logo-s {
        font-size: 15px;
    }

    .hero-buttons,
    .slide-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
    
    /* Swiper móvil */
    .hero-swiper {
        height: 70vh;
    }
    
    .swiper-slide {
        height: 70vh;
    }
    
    .slide-title {
        font-size: 28px !important;
        line-height: 38px !important;
        margin-bottom: 30px;
    }
    
    .slide-label {
        font-size: 16px !important;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }
    
    .slide-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .slide-buttons .btn {
        width: 100%;
    }
    
    .slide-content.right-aligned,
    .slide-content.centered {
        text-align: center !important;
    }
    
    .slide-content.right-aligned .slide-buttons {
        justify-content: center !important;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }
    
    .swiper-pagination {
        bottom: 20px !important;
    }

    .contact-map {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .features-grid,
    .services-grid,
    .stats-grid,
    .team-grid,
    .portfolio-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 1199px) {
    .btn-nav-mobile {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10000 !important;
    }
}



/* ============================================
   SERVICE SUBTITLE (para evitar H5 duplicados en SEO)
   ============================================ */

.service-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--primary-color);
    margin: 15px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-subtitle i {
    color: var(--secondary-color);
    font-size: 14px;
}

/* Hover effect */
.service-subtitle:hover i {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}
/* CSS para el título de requerimientos */
.req-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--primary-color);
    margin: 20px 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.req-title:first-child {
    margin-top: 0;
}

.req-title i {
    color: var(--secondary-color);
    font-size: 14px;
}

/* Estilos para las listas de requerimientos */
.requerimientos ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.requerimientos ul li {
    padding: 8px 0 8px 25px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.requerimientos ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.requerimientos ul li:last-child {
    border-bottom: none;
}
/* ============================================
   ESTILOS PARA TRÁMITES SIN ENCABEZADOS H
   ============================================ */

.tramites-list {
    margin-top: 20px;
}

.tramite-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.tramite-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.tramite-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tramite-name:before {
    content: "▪";
    color: var(--secondary-color);
    font-size: 20px;
}

.req-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);
    margin: 15px 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.req-title i {
    color: var(--secondary-color);
    font-size: 13px;
}

.requerimientos ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.requerimientos ul li {
    padding: 6px 0 6px 22px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
}

.requerimientos ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 13px;
}
/* ==============================================
   ESTILOS ADICIONALES PARA TRÁMITES OPTIMIZADOS
   ============================================== */

/* Títulos de trámites sin encabezados H */
.tramite-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
}

/* Títulos de requerimientos */
.req-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);
    margin: 15px 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.req-title i {
    color: var(--secondary-color);
    font-size: 13px;
}

/* Listas de requerimientos */
.requerimientos ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.requerimientos ul li {
    padding: 6px 0 6px 22px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
}

.requerimientos ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 13px;
}