/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #f5f1e8 0%, #e8dcc0 50%, #d4c4a8 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== SCROLLBAR CUSTOMIZATION ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f5f1e8 0%, #e8dcc0 100%);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b7355 0%, #a08968 100%);
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6b5b47 0%, #8b7355 100%);
}

::-webkit-scrollbar-corner {
    background: #f5f1e8;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.95) 0%, rgba(160, 137, 104, 0.95) 50%, rgba(139, 115, 85, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    min-height: 70px;
}

.logo {
    flex-shrink: 0;
}

.logo-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logo-link:hover {
    transform: translateY(-2px);
}

.logo-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.logo-link:hover::before {
    left: 100%;
}

.nav {
    display: flex;
    gap: 15px;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-phone {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-phone:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-whatsapp-header {
    background: linear-gradient(135deg, #25D366 0%, #22c55e 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    animation: pulse-green 2s infinite;
}

.btn-whatsapp-header:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    animation: none;
}

.btn-whatsapp-hero {
    background: linear-gradient(135deg, #25D366 0%, #22c55e 50%, #16a34a 100%);
    color: #ffffff;
    font-size: 1.1rem;
    padding: 16px 32px;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    animation: pulse-green 3s infinite;
}

.btn-whatsapp-hero:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    animation: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8b7355 0%, #a08968 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a08968 0%, #b69d7f 100%);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.4);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.1) 0%, rgba(160, 137, 104, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #8b7355 0%, #a08968 50%, #8b7355 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    position: relative;
}

.hero-text h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #8b7355, #a08968);
    border-radius: 2px;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #5a4a3a;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.1) 0%, rgba(160, 137, 104, 0.2) 100%);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(139, 115, 85, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-brain,
.floating-heart,
.floating-star {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.floating-brain {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.floating-heart {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.floating-star {
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366 0%, #22c55e 50%, #16a34a 100%);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: bounce-gentle 3s infinite;
}

.whatsapp-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
    animation: none;
}

.whatsapp-icon {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.whatsapp-text {
    font-weight: 700;
}

/* ===== MAP SECTION ===== */
.map-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.map-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #8b7355 0%, #a08968 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.map-section p {
    text-align: center;
    font-size: 1.1rem;
    color: #5a4a3a;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(139, 115, 85, 0.1);
}

.map-container-full {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(139, 115, 85, 0.1);
}

.map-container-full iframe {
    width: 100% !important;
    height: 450px;
    border: 0;
}

/* ===== SEO CONTENT ===== */
.seo-content {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 50%, #3d2415 100%);
    position: relative;
}

.seo-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.seo-content h1,
.seo-content h2,
.seo-content h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.seo-content h2 {
    font-size: 2rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(245, 241, 232, 0.3);
    padding-bottom: 10px;
    margin-top: 2rem;
}

.seo-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #f5f1e8;
}

.seo-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.seo-content .cta-section {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.seo-content .cta-section h3 {
    color: #f5f1e8;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.seo-content .cta-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #8b7355 0%, #a08968 50%, #6b5b47 100%);
    color: #ffffff;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #f5f1e8, #e8dcc0);
    border-radius: 1px;
}

.footer-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.footer-address {
    display: block;
    width: 100%;
    line-height: 1.4;
    word-wrap: break-word;
}

.footer-contact strong {
    color: #f5f1e8;
    min-width: 120px;
}

.horario p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.horario strong {
    color: #f5f1e8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #f5f1e8;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-government-links {
    margin-bottom: 1rem;
}

.footer-government-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-government-links a:hover {
    color: #f5f1e8;
}

/* ===== SITEMAP STYLES ===== */
.sitemap-section {
    padding: 100px 0 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.sitemap-section h1 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #8b7355 0%, #a08968 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sitemap-section > p {
    text-align: center;
    font-size: 1.2rem;
    color: #5a4a3a;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sitemap-categories {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.sitemap-category h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #8b7355;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Classes específicas para diferentes layouts */
.sitemap-grid.grid-1-col {
    grid-template-columns: 1fr;
}

.sitemap-grid.grid-2-col {
    grid-template-columns: repeat(2, 1fr);
}

.sitemap-grid.grid-3-col {
    grid-template-columns: repeat(3, 1fr);
}

/* Desktop: Ajustes específicos */
@media (min-width: 769px) {
    .sitemap-grid.grid-1-col {
        grid-template-columns: 1fr;
    }

    .sitemap-grid.grid-2-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .sitemap-grid.grid-3-col {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sitemap-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #6b5b47;
    border-bottom: 2px solid #e8dcc0;
    padding-bottom: 8px;
}

.sitemap-item ul {
    list-style: none;
}

.sitemap-item li {
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.6s ease-out both;
}

.sitemap-item li:nth-child(1) { animation-delay: 0.1s; }
.sitemap-item li:nth-child(2) { animation-delay: 0.15s; }
.sitemap-item li:nth-child(3) { animation-delay: 0.2s; }
.sitemap-item li:nth-child(4) { animation-delay: 0.25s; }
.sitemap-item li:nth-child(5) { animation-delay: 0.3s; }
.sitemap-item li:nth-child(6) { animation-delay: 0.35s; }
.sitemap-item li:nth-child(7) { animation-delay: 0.4s; }
.sitemap-item li:nth-child(8) { animation-delay: 0.45s; }
.sitemap-item li:nth-child(9) { animation-delay: 0.5s; }
.sitemap-item li:nth-child(10) { animation-delay: 0.55s; }
.sitemap-item li:nth-child(11) { animation-delay: 0.6s; }
.sitemap-item li:nth-child(12) { animation-delay: 0.65s; }
.sitemap-item li:nth-child(13) { animation-delay: 0.7s; }
.sitemap-item li:nth-child(14) { animation-delay: 0.75s; }
.sitemap-item li:nth-child(15) { animation-delay: 0.8s; }

.sitemap-item a {
    color: #5a4a3a;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 8px;
    border: 1px solid rgba(139, 115, 85, 0.1);
    background: linear-gradient(135deg, rgba(245, 241, 232, 0.8) 0%, rgba(232, 220, 192, 0.8) 100%);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    width: 100%;
    box-sizing: border-box;
}

.link-icon {
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sitemap-item a:hover .link-icon {
    transform: scale(1.1);
}

.sitemap-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 115, 85, 0.1), transparent);
    transition: left 0.5s ease;
}

.sitemap-item a:hover {
    color: #ffffff;
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.3);
    background: linear-gradient(135deg, #8b7355 0%, #a08968 100%);
    border-color: rgba(139, 115, 85, 0.3);
}

.sitemap-item a:hover::before {
    left: 100%;
}

.sitemap-item a:active {
    transform: translateX(8px) translateY(0px);
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.2);
}

.back-to-home {
    text-align: center;
    margin-top: 4rem;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5), 0 0 20px rgba(37, 211, 102, 0.3);
    }
}

@keyframes bounce-gentle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ===== UTILITY CLASSES ===== */
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.btn-text {
    font-weight: 700;
}

/* ===== RESPONSIVE DESIGN BASE ===== */
@media (max-width: 768px) {
    .seo-content {
        padding: 60px 0;
    }

    .seo-content h2 {
        font-size: 1.6rem;
        margin-top: 1.5rem;
    }

    .seo-content h3 {
        font-size: 1.3rem;
    }

    .seo-content p {
        font-size: 1rem;
    }

    .seo-content .cta-section {
        margin: 2rem 0;
        padding: 1.5rem;
    }

    .seo-content .cta-section h3 {
        font-size: 1.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        height: 250px;
    }

    .hero-placeholder {
        width: 200px;
        height: 200px;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}
