/* Global Styles */
:root {
    --primary-color: #AA192D;
    /* Red Gobernación NDS */
    --secondary-color: #2c3e50;
    /* Dark Blue/Gray */
    --accent-color: #e74c3c;
    /* Lighter Red */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 80px 0;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(170, 25, 45, 0.3);
}

.btn-primary:hover {
    background-color: #8a1223;
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Ribbon */
.top-ribbon {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Header */
#main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

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

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--secondary-color);
    transition: var(--transition);
}

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

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

/* Hero Section */
#hero {
    height: 90vh;
    min-height: 600px;
    max-height: 900px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/Bannerweb.png') 50% 30%/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Counter Section */
#counter-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.counter-box h3 {
    font-size: 3rem;
    margin-bottom: 5px;
}

.counter-box p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Stages Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    right: -20px;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -20px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--white);
    position: relative;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Registration Form */
.form-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.required {
    color: var(--primary-color);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(170, 25, 45, 0.2);
}

.full-width {
    grid-column: span 2;
}

.uploads-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px dashed #ccc;
}

.btn-submit {
    width: 100%;
    background-color: var(--secondary-color);
    border-radius: 5px;
    font-size: 1.1rem;
}

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

/* Map Section */
#map {
    height: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1;
    /* Fixes Leaflet overlay issues */
}

.section-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

/* Footer */
footer {
    background-color: #222;
    color: #ddd;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.footer-info a {
    color: var(--primary-color);
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-color: #333;
    color: var(--white);
    border-radius: 50%;
    margin-left: 10px;
    transition: var(--transition);
    font-size: 1.2rem;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Alert Info */
.alert-info {
    background-color: #e3f2fd;
    color: #0d47a1;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #0d47a1;
    font-size: 0.9rem;
}

.alert-info i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.alert-info a {
    text-decoration: underline;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    .timeline-icon {
        left: 10px;
        right: auto;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(even) .timeline-icon {
        left: 10px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .btn {
        padding: 10px 25px;
    }
}

/* =========================================
   Logo Styles (Header)
   ========================================= */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Space between images and text */
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logos img {
    height: 45px;
    /* Adjusted height */
    width: auto;
    object-fit: contain;
}

.logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* =========================================
   Footer Logos
   ========================================= */
.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 40px 0 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.footer-logos img {
    height: 60px;
    /* Uniform height for footer logos */
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* Make them white if footer is dark, or keep valid if not */
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-logos img:hover {
    opacity: 1;
}

/* Adjust for light footer background if needed. 
   Assuming footer is dark based on typical designs, white filter is good. 
   If images are already correct, remove filter. 
   Let's check current footer style. It has "background-color: var(--dark-color); color: #fff;" 
   So white filter is likely desired for transparency logos if they are black.
   BUT user said "img/Consorcio NJ.png", "LOGO NEXT GEN .png". 
   If they are colored logos, filter might ruin them. 
   Safest is NO filter initially, or check if user wants monochrome.
   "Mantener colores" -> Remove filter.
*/

.footer-logos img {
    filter: none;
    /* Keep original colors */
    background: rgba(255, 255, 255, 0.1);
    /* Optional: subtle bg if logos have dark text on dark footer */
    padding: 5px;
    border-radius: 4px;
    height: 60px;
    /* Default height for the third logo */
    width: auto;
}

.footer-logo-large {
    height: 80px !important;
    /* Enlarge specific logos */
}

.project-logo {
    display: block;
    width: 320px;
    max-width: 90%;
    height: auto;
    margin: 14px auto 24px;
}

.footer-offices h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.3rem;
}


/* Mobile Adjustments */
@media (max-width: 768px) {
    .header-logos img {
        height: 35px;
    }

    .logo span {
        font-size: 1rem;
        display: none;
        /* Hide text on very small screens if crowded? Or user said "text must remain visible". 
        Let's keep text but maybe smaller. */
    }

    .footer-logos {
        gap: 15px;
    }

    .footer-logos img {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .logo span {
        font-size: 0.9rem;
        /* Smaller text */
    }

    .header-logos {
        gap: 5px;
    }
}

/* =========================================
   New Styles for NextGen Refactor
   ========================================= */

/* Criterios List */
.criterios-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

.requirements-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    font-size: 1.05rem;
}

.requirements-list li i {
    color: var(--primary-color);
    margin-right: 12px;
    margin-top: 4px;
    font-size: 1.2rem;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
}

/* Info Heading - Beautiful Section Header */
.info-heading {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c92a3e 100%);
    color: var(--white);
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(170, 25, 45, 0.25);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-heading:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(170, 25, 45, 0.35);
}

.info-heading i {
    font-size: 1.8rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 50%;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .info-heading {
        flex-direction: row;
        gap: 12px;
        padding: 18px 20px;
        font-size: 1rem;
    }

    .info-heading i {
        font-size: 1.5rem;
        min-width: 42px;
        height: 42px;
        padding: 10px;
    }
}

/* Evaluation Criteria Cards */
.evaluation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 30px;
}

.evaluation-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary-color);
    margin-top: 20px;
}

.evaluation-card:first-child {
    margin-top: 0;
}

.evaluation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.evaluation-card-header {
    background: linear-gradient(135deg, rgba(170, 25, 45, 0.05) 0%, rgba(201, 42, 62, 0.05) 100%);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(170, 25, 45, 0.1);
}

.evaluation-card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(170, 25, 45, 0.15);
}

.evaluation-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.4;
}

.evaluation-card-title i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 1rem;
}

.evaluation-card-body {
    padding: 25px;
}

.evaluation-card-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.evaluation-card-description strong {
    color: var(--primary-color);
    font-weight: 600;
}

.evaluation-highlight {
    background: rgba(170, 25, 45, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 12px 15px;
    margin-top: 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #444;
}

.evaluation-simple-list {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.evaluation-simple-item {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 3px solid var(--primary-color);
}

.evaluation-simple-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.evaluation-simple-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.evaluation-simple-item span {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1rem;
}

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

    .evaluation-card-header {
        padding: 15px 20px;
        gap: 12px;
    }

    .evaluation-card-icon {
        font-size: 1.5rem;
        min-width: 45px;
        height: 45px;
    }

    .evaluation-card-title {
        font-size: 1rem;
    }

    .evaluation-card-body {
        padding: 20px;
    }
}

/* Grids */
.cards-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Entrepreneur Card Refining */
.emprendimiento-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    text-align: left;
    /* Alignment change for editorial look */
}

.emprendimiento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.emprendimiento-card .video-thumbnail {
    position: relative;
    height: 200px;
    background: #f8f8f8;
    overflow: hidden;
}

.emprendimiento-card .card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.emprendimiento-card .video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.emprendimiento-card .video-thumbnail img.fallback-img {
    object-fit: contain;
    padding: 30px;
    background: #fdfdfd;
}

.emprendimiento-card:hover .video-thumbnail img {
    transform: scale(1.08);
}

.play-icon-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 2;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.emprendimiento-card:hover .play-icon-overlay {
    background: var(--primary-color);
    transform: scale(1.1);
}

.emprendimiento-card .card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(170, 25, 45, 0.3);
}

.emprendimiento-card .card-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Creates more space between text and button */
}

.card-text-group {
    margin-bottom: 30px;
    /* Air between content and button */
}

.emprendimiento-card h3 {
    font-size: 1.35rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.2;
    font-family: var(--font-heading);
}

.emprendimiento-card p.category {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.5;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-card-outline {
    background: transparent;
    border: 1.5px solid #eee;
    color: #666;
    padding: 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.emprendimiento-card:hover .btn-card-outline {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Modal Redesign - Dual View Professional */
.community-modal-container {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    /* Control modal height */
}

/* Internal Pill Tabs */
.community-modal-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 25px 30px 20px;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
    z-index: 10;
}

.community-modal-tab-btn {
    padding: 12px 28px;
    border-radius: 50px;
    border: 2px solid #f0f0f0;
    background: #fff;
    color: #777;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.community-modal-tab-btn i {
    font-size: 1.1rem;
    opacity: 0.7;
}

.community-modal-tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(170, 25, 45, 0.2);
}

.community-modal-tab-btn.active i {
    opacity: 1;
}

.community-modal-tab-btn:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(170, 25, 45, 0.02);
}

/* Scrollable Zone */
.community-modal-scrollable {
    flex-grow: 1;
    overflow-y: auto;
    padding: 40px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

.community-modal-scrollable::-webkit-scrollbar {
    width: 6px;
}

.community-modal-scrollable::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.community-modal-scrollable::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.community-modal-view {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.community-modal-view.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Visuals */
.modal-profile-header {
    display: flex;
    gap: 40px;
    margin-bottom: 45px;
    align-items: center;
    background: #fafafa;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
}

.modal-profile-img {
    width: 180px;
    height: 180px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 6px solid #fff;
}

.modal-profile-info {
    flex-grow: 1;
}

.modal-profile-info h4 {
    font-size: 2.4rem;
    color: var(--secondary-color);
    margin: 10px 0;
    font-weight: 800;
    line-height: 1.1;
}

.modal-profile-info .subtitle {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.role-badge {
    display: inline-block;
    background: rgba(170, 25, 45, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Sections */
.modal-section-title {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin: 40px 0 20px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-section-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: #eee;
}

.modal-section-title.no-border::after {
    display: none;
}

.modal-text-content {
    white-space: pre-wrap;
    line-height: 1.8;
    color: #444;
    font-size: 1.15rem;
    margin-bottom: 30px;
}

/* Video Wrapper */
.modal-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Business View Grid */
.business-header {
    margin-bottom: 40px;
    text-align: left;
}

.business-header h2 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 800;
}

.business-tag {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.business-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 50px;
}

.info-card {
    background: #f8f9fa;
    padding: 35px;
    border-radius: 24px;
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
}

.sidebar-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.sidebar-item i {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-top: 3px;
}

.sidebar-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
    margin-bottom: 4px;
}

.sidebar-item .value {
    color: var(--secondary-color);
    font-weight: 600;
    line-height: 1.4;
}

.sidebar-item .value-muni {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.95rem;
    margin-top: 4px;
}

.social-icons-row {
    display: flex;
    gap: 20px;
}

.social-icons-row a:hover {
    transform: translateY(-5px);
}

.no-socials {
    color: #bbb;
    font-style: italic;
    font-size: 0.9rem;
}

/* Footer Close */
.community-modal-footer {
    padding: 25px 40px;
    background: #fff;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: flex-end;
    z-index: 10;
}

.community-modal-footer button {
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Fixes */
@media (max-width: 850px) {
    .business-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modal-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .modal-profile-img {
        width: 150px;
        height: 150px;
    }

    .community-modal-scrollable {
        padding: 25px;
    }

    .business-header h2 {
        font-size: 2.2rem;
    }
}

/* Gallery Item */
/* Vitrina NextGen - Newspaper Style */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.vitrina-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    position: relative;
}

.vitrina-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    pointer-events: none;
    z-index: 1;
}

.vitrina-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.vitrina-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.vitrina-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.vitrina-card:hover .vitrina-card-img img {
    transform: scale(1.08);
}

.vitrina-card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.vitrina-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vitrina-card-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.vitrina-card-title {
    font-size: 1.25rem;
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.vitrina-card-footer {
    margin-top: auto;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Vitrina Modal Custom Layout */
.vitrina-modal-container {
    background: #fff;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    margin: 40px auto;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.vitrina-modal-featured-img {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.vitrina-modal-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vitrina-modal-header {
    padding: 30px 40px 10px;
}

.vitrina-modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.vitrina-modal-meta span {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vitrina-modal-meta .m-tag {
    color: var(--primary-color);
}

.vitrina-modal-meta .d-tag {
    color: #888;
}

.vitrina-modal-title {
    font-size: 2.5rem;
    line-height: 1.1;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-family: var(--font-heading);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px;
    display: inline-block;
}

.vitrina-modal-body {
    padding: 0 40px 30px;
}

.vitrina-modal-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
    font-family: var(--font-body);
}

.vitrina-modal-footer {
    padding: 20px 40px 40px;
    display: flex;
    justify-content: flex-start;
}

.btn-secondary {
    background: #eee;
    color: #333;
}

.btn-secondary:hover {
    background: #ddd;
}

@media (max-width: 768px) {
    .vitrina-modal-featured-img {
        height: 250px;
    }

    .vitrina-modal-header,
    .vitrina-modal-body,
    .vitrina-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .vitrina-modal-title {
        font-size: 1.6rem;
    }
}

/* Modal Blur Effect */
.modal {
    backdrop-filter: blur(8px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    background-color: transparent;
    margin: auto;
    padding: 0;
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.modal video,
.modal img {
    width: 100%;
    max-height: 80vh;
    border-radius: 5px;
    object-fit: contain;
}

.modal-caption {
    color: #ccc;
    margin-top: 15px;
    font-size: 1.1rem;
}

.loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Footer Layout Adjustments for Offices */
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info,
.footer-offices {
    flex: 1;
    min-width: 280px;
}

.footer-offices {
    text-align: right;
}

.footer-offices ul li {
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

/* =========================================
   Enfoque Regional List (Internal Card)
   ========================================= */
.about-card .municipios-internal-grid {
    text-align: left;
}

.municipios-internal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 20px;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.m-item {
    font-size: 0.85rem;
    color: #444;
    display: flex;
    align-items: center;
}

.m-item i {
    font-size: 0.6rem;
    color: var(--primary-color);
    margin-right: 6px;
    width: 14px;
    text-align: center;
}

@media (max-width: 768px) {
    .municipios-internal-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Floating Buttons (WhatsApp & Chatbot)
   ========================================= */
.whatsapp-btn,
.chatbot-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.whatsapp-btn:hover,
.chatbot-btn:hover {
    transform: scale(1.1);
}

.chatbot-btn {
    bottom: 100px;
    /* Position above WhatsApp */
    background-color: #000;
    /* Distinct color for Chatbot */
}

/* Hide default Chatbase launcher if duplicates occur */
#chatbase-bubble-button {
    display: none !important;
}