:root {
    --primary: #1e3c72;
    /* --primary-dark removed */
    --primary-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --secondary: #faca31;
    --secondary-hover: #e0b01c;
    --text-main: #1f2937;
    --text-light: #6b7280;
    --text-white-50: rgba(255, 255, 255, 0.7);
    --bg-light: #f3f4f6;
    --bg-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    --sidebar-width: 280px;
    --header-height: 70px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--primary);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

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

.rounded-xl {
    border-radius: var(--radius-xl);
}

/* --- Layout --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn.lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn.sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

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

.btn-primary:hover {
    background: #102a52;
    /* Darker shade for hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 60, 114, 0.3);
}

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

.btn-secondary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(250, 202, 49, 0.4);
}

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

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

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

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

.glow-effect {
    position: relative;
    overflow: hidden;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(white, rgba(255, 255, 255, 0));
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s, transform 0.5s;
}

.glow-effect:hover::after {
    opacity: 0.2;
    transform: scale(1);
}

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--primary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
}

.sidebar-header {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    padding: 12px 15px;
    border-radius: 8px;
    width: 100%;
}

.close-btn.mobile-only {
    position: absolute;
    top: 10px;
    right: 10px;
}

.sidebar-logo {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.4rem;
    color: white;
}

.logo-box {
    background: white;
    color: var(--primary);
    padding: 4px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    flex: 1;
    padding: 40px 0;
    overflow-y: auto;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 30px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    position: relative;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav ul li a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--secondary);
}

.sidebar-social {
    display: flex;
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: space-between;
}

.sidebar-social a {
    color: #ffffff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-social a:hover {
    color: var(--secondary);
    transform: translateY(-3px);
}

.sidebar-social a svg {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    padding: 30px;
}

/* --- Main Layout --- */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-bar {
    height: var(--header-height);
    display: none;
    /* Desktop hidden */
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-toggle {
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle i,
.sidebar-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.top-bar-branding {
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-logo {
    max-width: 150px;
    height: auto;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(16, 42, 82, 0.9) 0%, rgba(16, 42, 82, 0.6) 60%, rgba(16, 42, 82, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    margin-left: 5%;
    /* Offset layout */
}

.hero-content h1 {
    color: white;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-content .subtitle {
    font-size: 1.6rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--secondary);
    color: var(--primary);
    font-weight: 700;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-features {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-feature.glass-panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

/* --- Sections --- */
.section-light {
    background: #f9fafb;
}

.section-white {
    background: white;
}

.section-dark {
    background: var(--primary);
    color: white;
}

.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark p {
    color: white !important;
}

.section-dark .text-light {
    color: rgba(255, 255, 255, 0.7);
}

.section-primary {
    background: var(--primary);
    background: var(--primary-gradient);
    color: white;
}

/* Experience */
.highlight-text {
    font-size: 1.25rem;
    color: var(--primary);
    border-left: 4px solid var(--secondary);
    padding-left: 20px;
    margin: 30px 0;
}

.glass-panel-light {
    background: white;
    padding: 20px 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
}

.image-card {
    position: relative;
}

.glow-shadow {
    box-shadow: 0 20px 50px rgba(30, 60, 114, 0.2);
    border-radius: var(--radius-xl);
}

/* Dark Dividers */
.divider {
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 30px 0;
}

.large-text {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.4;
}

/* Model 3 in 1 */
.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.cards-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.glass-panel-border {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 25px;
    border-radius: var(--radius-md);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.glass-panel-border:hover {
    background: white;
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--secondary);
}

.card-icon-sm {
    font-size: 2rem;
    background: #eef2ff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.card-text h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

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

/* Timeline */
.timeline-horizontal {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 60px;
    gap: 30px;
}

.timeline-step {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: 0.3s;
}

.timeline-step h4 {
    color: #ffffff !important;
}

.timeline-step p {
    color: #ffffff !important;
}

.timeline-step:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.step-num {
    background: var(--secondary);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

/* Includes List */
.check-list-modern li {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.check-list-modern li::before {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23faca31' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    flex-shrink: 0;
}

/* Abstract Card */
.abstract-card {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.abstract-card::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--secondary);
    filter: blur(100px);
    opacity: 0.2;
    top: -50px;
    right: -50px;
}

.mock-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 12px;
    border-radius: 4px;
}

.w-50 {
    width: 50%;
}

/* Pricing */
.pricing-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.glass-panel-white {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    flex: 1;
    transition: 0.3s;
}

.pricing-card.featured {
    transform: scale(1.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 10;
    position: relative;
    border: 2px solid var(--secondary);
}

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

.pricing-header {
    padding: 40px;
    background: #f8fafc;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 10px;
}

.tax {
    font-size: 1rem;
    color: #999;
    font-weight: 400;
}

.pricing-features {
    padding: 40px;
}

.pricing-features li {
    margin-bottom: 15px;
    text-align: center;
    color: var(--text-main);
}

.card-footer {
    padding: 0 40px 40px;
}

.badge-pop {
    background: var(--secondary);
    color: var(--primary);
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 8px;
}

.glass-pill {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 30px;
    border-radius: 50px;
    color: white;
}

/* FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border-left: 4px solid transparent;
    transition: 0.3s;
}

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

.faq-item:hover {
    border-left-color: var(--secondary);
    transform: translateX(5px);
}

/* Contact */
.glass-panel-dark {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

/* Footer */
footer {
    background: #0f172a;
    color: #64748b;
    padding: 40px 0;
    font-size: 0.9rem;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

/* --- Responsive --- */
.mobile-only {
    display: none;
}

@media (max-width: 1024px) {
    .pricing-card.featured {
        transform: scale(1);
    }

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

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .top-bar {
        display: flex;
    }

    .mobile-only {
        display: block;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .sidebar {
        width: 85%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        margin-left: 0;
        text-align: center;
    }

    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-cta {
        justify-content: center;
    }

    .pricing-container {
        flex-direction: column;
    }

    .timeline-horizontal {
        flex-direction: column;
    }

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

    .check-list-modern li {
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        margin-bottom: 0;
    }

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

    /* Hero responsive */
    .hero-section {
        overflow: hidden;
    }

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

    .hero-content .subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    /* Logo sidebar responsive */
    .logo-container {
        padding: 6px 10px;
    }

    .sidebar-logo {
        max-width: 100px;
    }

    .sidebar-header {
        padding: 15px 20px;
        min-height: auto;
    }
}

/* --- WhatsApp Button --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Adjust for mobile to avoid covering content */
@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* --- Spacing Utilities --- */
.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 4rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 4rem;
}

/* --- Text Color Utilities --- */
.text-white {
    color: white !important;
}

/* ============================================
   BUSCADOR DE FRANQUICIADOS - ESTILOS
   ============================================ */

/* Sidebar Divider */
.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 20px 30px;
}



/* Search Form */
.search-form {
    padding: 30px;
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
}

.search-row {
    margin-bottom: 20px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 20px;
    color: var(--text-light);
    width: 20px;
    height: 20px;
}

.search-input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    font-size: 1.1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    background: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 60, 114, 0.1);
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.filter-select {
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.filter-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.filter-actions .btn i {
    width: 18px;
    height: 18px;
}

.btn-outline-secondary {
    border-color: #d1d5db;
    color: var(--text-light);
}

.btn-outline-secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: var(--text-main);
}

/* Results */
.results-container {
    margin-top: 30px;
}

.results-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.results-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.results-count {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: var(--radius-lg);
}

.no-results i {
    width: 60px;
    height: 60px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.no-results h4 {
    color: var(--text-main);
    margin-bottom: 10px;
}

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

/* Alert */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Comunidad Divider */
.comunidad-divider {
    grid-column: 1 / -1;
    margin: 30px 0 20px;
    display: flex;
    align-items: center;
}

.comunidad-divider::before,
.comunidad-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

.comunidad-name {
    padding: 8px 24px;
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Franquiciados Grid */
.franquiciados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* Franquiciado Card - Layout vertical */
.franquiciado-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.franquiciado-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
}

.franquiciado-card.estado-baja {
    opacity: 0.7;
}

.franquiciado-card.estado-baja:hover {
    opacity: 1;
}

/* Card Header - Nombre arriba */
.franquiciado-card .card-header {
    padding: 20px;
    background: var(--primary-gradient);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.franquiciado-card .card-header .agencia-nombre {
    font-size: 1.15rem;
    color: white;
    margin: 0;
    line-height: 1.3;
    font-weight: 700;
}

.franquiciado-card .card-header .estado-badge {
    align-self: flex-start;
}

.estado-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 50px;
    white-space: nowrap;
    display: inline-block;
}

.estado-activo {
    background: rgba(255, 255, 255, 0.95);
    color: #16a34a;
}

.estado-baja {
    background: #fef3c7;
    color: #d97706;
}

/* Card Body - Información debajo */
.franquiciado-card .card-body {
    padding: 20px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.info-row:last-of-type {
    margin-bottom: 0;
}

.info-row i {
    width: 18px;
    height: 18px;
    min-width: 18px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-row span {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
    word-break: break-word;
}

.info-row .franquiciado-nombre {
    font-weight: 600;
    color: var(--primary);
}

.info-row .direccion {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contact Info - Botones de contacto */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    word-break: break-all;
}

.contact-link i {
    width: 18px;
    height: 18px;
    min-width: 18px;
    color: var(--primary);
}

.contact-link:hover {
    background: var(--primary);
    color: white;
}

.contact-link:hover i {
    color: white;
}

.contact-link.email {
    background: var(--primary);
    color: white;
}

.contact-link.email i {
    color: white;
}

.contact-link.email:hover {
    background: #102a52;
}

.contact-link.secondary {
    background: #e5e7eb;
}

/* Notas */
.notas {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 16px;
    background: #fffbeb;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--secondary);
}

.notas i {
    width: 16px;
    height: 16px;
    min-width: 16px;
    color: #d97706;
    flex-shrink: 0;
    margin-top: 2px;
}

.notas span {
    font-size: 0.85rem;
    color: #92400e;
    line-height: 1.5;
    word-break: break-word;
}

/* Responsive Buscador */
@media (max-width: 1024px) {
    .filters-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .franquiciados-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .search-form {
        padding: 16px;
    }

    .search-input {
        font-size: 1rem;
        padding: 14px 14px 14px 45px;
    }

    .search-input-wrapper i {
        left: 14px;
    }

    .filters-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .filter-select {
        padding: 12px 14px;
    }

    .filter-actions {
        flex-direction: column;
    }

    .filter-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .franquiciados-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .franquiciado-card .card-header {
        padding: 16px;
    }

    .franquiciado-card .card-header .agencia-nombre {
        font-size: 1.05rem;
    }

    .franquiciado-card .card-body {
        padding: 16px;
    }

    .info-row {
        margin-bottom: 10px;
    }

    .info-row span {
        font-size: 0.9rem;
    }

    .contact-link {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .comunidad-divider {
        margin: 20px 0 16px;
    }

    .comunidad-name {
        padding: 6px 16px;
        font-size: 0.8rem;
    }

    .stats-badge {
        padding: 10px 18px;
        flex-direction: column;
        gap: 4px;
    }

    .stats-badge .stat-number {
        font-size: 1.3rem;
    }

    .results-header h3 {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-header h1 {
        font-size: 1.6rem;
    }

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

    .franquiciado-card .card-header .agencia-nombre {
        font-size: 1rem;
    }

    .info-row span {
        font-size: 0.85rem;
    }

    .notas span {
        font-size: 0.8rem;
    }
}

/* ============================================
   SECCIÓN DE CONTACTO - ESTILOS
   ============================================ */

.contact-section {
    background: var(--primary-gradient);
    padding: 100px 0;
    margin-top: 60px;
}

.contact-section .section-header h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-section .section-header .subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-top: 50px;
    align-items: start;
}

/* Form Wrapper */
.contact-form-wrapper {
    padding: 40px;
    border-radius: var(--radius-lg);
}

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

.contact-form label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(250, 202, 49, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9ca3af;
}

.contact-form .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    font-size: 1.05rem;
}

.contact-form .form-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 20px;
}

.contact-form .form-note i {
    width: 16px;
    height: 16px;
    color: #16a34a;
}

/* Contact Info Card */
.contact-info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 35px;
    color: white;
}

.contact-info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info-header .logo-box {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.contact-info-header h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.contact-info-header p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Contact Info List */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-item i {
    width: 22px;
    height: 22px;
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item .label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.contact-item a,
.contact-item span:not(.label) {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

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

/* Social Links */
.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-link i {
    width: 20px;
    height: 20px;
}

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

/* Form Messages */
.form-message {
    max-width: 700px;
    margin: 0 auto 40px;
    padding: 18px 25px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.form-message i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.form-message.success {
    background: rgba(22, 163, 74, 0.15);
    color: #86efac;
    border: 1px solid rgba(22, 163, 74, 0.3);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Footer Bottom */
.site-footer-bottom {
    background: #0f1f3a;
    padding: 30px 0;
    text-align: center;
}

.site-footer-bottom .legal-nav {
    margin-bottom: 15px;
}

.site-footer-bottom .legal-nav a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.site-footer-bottom .legal-nav a:hover {
    color: var(--secondary);
}

.site-footer-bottom p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
}

/* Contact Section Responsive */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info-card {
        order: -1;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 70px 0;
    }

    .contact-section .section-header h2 {
        font-size: 1.8rem;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    .contact-form .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-info-card {
        padding: 25px;
    }

    .contact-social {
        justify-content: center;
    }

    .form-message {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .site-footer-bottom .legal-nav a {
        display: block;
        margin: 8px 0;
    }
}