:root {
    --primary-blue: #0041a3;
    --dark-blue: #002e73;
    --light-blue: #e6efff;
    --text-grey: #4a4a4a;
    --light-grey: #f8f9fa;
    --white: #ffffff;
    --accent-grey: #d1d5db;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-grey);
    background-color: var(--white);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.hidden-section {
    display: none !important;
}

.blue {
    color: var(--primary-blue);
}

.blue-text {
    color: var(--primary-blue);
    font-weight: 700;
}

/* Navigation */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-grey);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-grey);
    font-weight: 400;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-blue);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-blue);
    cursor: pointer;
}

.btn-nav {
    background-color: var(--primary-blue);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: transform 0.3s, background 0.3s;
}

.btn-nav:hover {
    transform: translateY(-2px);
    background-color: var(--dark-blue);
}

/* Hero Section */
.hero {
    padding: 10rem 2rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    min-height: 90vh;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #666;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 65, 163, 0.2);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 65, 163, 0.3);
}

.cta-group-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cta-hint {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    margin: 0;
}

.bot-link-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 1rem;
    font-style: italic;
}

@media (max-width: 900px) {

    .cta-hint,
    .bot-link-hint {
        text-align: center;
    }
}

.btn-secondary {
    border: 2px solid var(--accent-grey);
    color: var(--text-grey);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--light-grey);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo-circle {
    width: 400px;
    height: 400px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    padding: 40px;
    animation: float 6s ease-in-out infinite;
}

#main-logo {
    max-width: 100%;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Features */
.features {
    background: var(--light-grey);
    padding: 7rem 2rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

/* Tramites Section - Prominent Style */
.tramites-section {
    padding: 6rem 2rem;
    background: white;
}

.tramites-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tramite-card {
    background: #fff;
    border: 1px solid var(--accent-grey);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.tramite-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-blue);
    transform: translateY(-8px);
}

.tramite-logo-top {
    height: 100px;
    /* Logos mucho más grandes */
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.inst-logo-big {
    max-height: 100%;
    max-width: 140px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s;
}

.tramite-card:hover .inst-logo-big {
    transform: scale(1.1);
}

.tramite-logo-top.double .inst-logo-big {
    max-width: 80px;
}

.tramite-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.full-name {
    display: block;
    font-size: 0.9rem;
    color: #555;
    font-weight: 600;
    margin-bottom: 1.2rem;
    line-height: 1.4;
    min-height: 3em;
}

.tramite-card p:not(.full-name) {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 2rem;
}

.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.btn-link {
    flex-grow: 1;
    background: var(--light-blue);
    color: #333;
    /* Gris oscuro para contraste */
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.btn-link:hover {
    background: var(--primary-blue);
    color: white;
}

.ig-link-icon {
    font-size: 1.6rem;
    color: #E1306C;
    transition: all 0.3s;
}

.ig-link-icon:hover {
    transform: scale(1.2) rotate(5deg);
}

.ig-group-icons {
    display: flex;
    gap: 1rem;
}

/* Downloads Section */
.downloads-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.downloads-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--light-grey);
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.download-card:hover {
    background: white;
    border-color: var(--primary-blue);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.pdf-icon {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.excel-icon {
    font-size: 2.5rem;
    color: #217346;
    margin-bottom: 1rem;
}

.download-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-grey);
}

.download-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--primary-blue);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-download:hover {
    background: var(--dark-blue);
    transform: scale(1.05);
}

/* Bot Section */
.bot-section {
    padding: 7rem 2rem;
    background: var(--light-grey);
}

.bot-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 5rem;
}

.bot-text {
    flex: 1;
}

.bot-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.check-list {
    list-style: none;
    margin: 2rem 0;
}

.check-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.btn-telegram {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: #26A5E4;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-telegram:hover {
    background: #1e88bf;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(38, 165, 228, 0.3);
}

.bot-actions {
    display: flex;
    gap: 1.2rem;
    margin-top: 1rem;
}

.btn-whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: #25D366;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-whatsapp-cta:hover {
    background: #1da851;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.bot-steps {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bot-step {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.step-num {
    background: var(--primary-blue);
    color: white;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.bot-step h4 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 0.2rem;
}

.bot-step p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.bot-policy-note {
    background: white;
    padding: 1rem 1.5rem;
    border-left: 4px solid #f39c12;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 2rem 0;
    font-size: 0.9rem;
    color: #555;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.bot-policy-note i {
    color: #f39c12;
    font-size: 1.2rem;
}

.bot-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-frame-new {
    width: 320px;
    background: white;
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    position: relative;
    border: 8px solid #333;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.mockup-img {
    width: 100%;
    display: block;
    border-radius: 20px;
}

/* Contact Section */
.gallery-section {
    padding: 5rem 2rem;
    background: #fdfdfd;
}

.gallery-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 1rem 3rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) #eee;
}

.gallery-scroll::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

.gallery-item {
    min-width: 260px;
    background: white;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 1rem;
    border: 1px solid #f0f0f0;
}

.gallery-item p {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.95rem;
}

.contact-section {
    padding: 7rem 2rem;
    background: var(--light-blue);
}

.contact-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-grey);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 65, 163, 0.1);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    transition: transform 0.3s;
}

.whatsapp-icon {
    color: #25D366;
    /* Color oficial de WhatsApp */
}

.ig-brand-icon {
    color: #E1306C;
    /* Color oficial de Instagram */
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

/* Footer */
footer {
    padding: 5rem 2rem;
    background: white;
    text-align: center;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    text-decoration: none;
    color: var(--accent-grey);
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--primary-blue);
}

/* Mobile */
/* Copy Button Styles */
.btn-copy {
    background: none;
    border: 1px solid var(--accent-grey);
    color: var(--text-grey);
    padding: 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy:hover {
    background: var(--light-grey);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-copy.copied {
    background: #2ecc71;
    color: white;
    border-color: #2ecc71;
}

.contact-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    width: 100%;
}

.btn-copy-alt {
    flex: 1;
    background: white;
    border: 2px solid var(--accent-grey);
    color: var(--text-grey);
    padding: 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-copy-alt:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-copy-alt.copied {
    background: #2ecc71;
    border-color: #2ecc71;
    color: white;
}

/* Bot Confirmation Modal */
.bot-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.modal-icon {
    font-size: 3rem;
    color: #26A5E4;
    margin-bottom: 1rem;
}

.modal-content h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.modal-content p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-modal-primary {
    background: #26A5E4;
    color: white;
    padding: 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: 0.3s;
}

.btn-modal-primary:hover {
    background: #1e88bf;
    transform: translateY(-3px);
}

.btn-modal-close {
    background: none;
    border: none;
    color: #777;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 900px) {

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }

    .bot-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .bot-step {
        text-align: left;
    }

    .bot-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-telegram,
    .btn-whatsapp-cta {
        width: 100%;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .feature-grid,
    .tramites-grid,
    .downloads-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cta-group {
        justify-content: center;
    }

    .hamburger {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        gap: 1.5rem;
    }

    nav ul.active {
        display: flex;
    }

    .logo-circle {
        width: 300px;
        height: 300px;
    }
}
/* Tabs Tramites */
.tramites-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    background: var(--light-blue);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-grey);
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 65, 163, 0.2);
}

.tab-pane {
    display: none;
    animation: fadeInTab 0.5s ease;
}

.tab-pane.active {
    display: block;
}

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

/* Municipal Selector */
.municipal-selector {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

#state-select {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--accent-grey);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-grey);
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    margin-bottom: 3rem;
    cursor: pointer;
}

#state-select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.municipios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 5rem 2rem;
    background: var(--light-grey);
    border-radius: 24px;
    color: #888;
}

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

@media (max-width: 600px) {
    .municipios-grid {
        grid-template-columns: 1fr;
    }
}

/* Recaudos Note Card */
.recaudos-note {
    background: #fff9e6;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: #856404;
    border: 1px solid #ffeeba;
    text-align: left;
    line-height: 1.4;
}

.recaudos-note i {
    margin-right: 0.5rem;
    color: #cc9900;
}

.recaudos-note strong {
    display: block;
    margin-top: 0.5rem;
    color: #533f03;
    word-break: break-all;
    font-size: 0.9rem;
}
