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

:root {
    --primary: #000000;
    --secondary: #1a1a1a;
    --accent: #c9a55a;
    --accent-light: #e8d5a3;
    --light: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
    --gray-dark: #334155;
    --border: #e2e8f0;
    --success: #10b981;
    --shadow: rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
    scroll-padding-top: 100px;
}

/* Font Size Controller */
.font-size-controller {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 999;
    background: var(--white);
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 20px var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.font-size-btn {
    display: block;
    width: 48px;
    height: 48px;
    border: none;
    background: var(--primary);
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 1px solid #2d3748;
    font-size: 0.9rem;
}

.font-size-btn:last-child {
    border-bottom: none;
}

.font-size-btn:hover,
.font-size-btn.active {
    background: var(--accent);
    color: var(--primary);
}

/* Font size variations */
html.font-small {
    font-size: 16px;
}

html.font-medium {
    font-size: 18px;
}

html.font-large {
    font-size: 22px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background-color: var(--white);
    font-size: inherit;
    -webkit-font-smoothing: antialiased;
}

/* Header */
header {
    background: #000000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.875rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 100px;
    width: auto;
    transition: transform 0.3s;
}

.logo:hover img {
    transform: scale(1.02);
}

nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

nav a {
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-weight: 450;
    font-size: 0.9rem;
    transition: all 0.25s;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    white-space: nowrap;
}

nav a:hover {
    color: var(--accent);
    background: rgba(255,255,255,0.05);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent);
    padding: 0.5rem;
}

/* Hero */
.hero {
    
    background: linear-gradient(180deg, #000000 0%, #000000 100%, #1a1a1a 100%, #ffffff 100%);
    color: var(--white);
    padding: 10rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(201, 165, 90, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0px;
    background: linear-gradient(to top, var(--white), transparent);
    pointer-events: none;
}

.hero-content {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--accent);
    display: block;
}

.hero p {
    font-size: 1.125rem;
    max-width: 680px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background: #d4b26a;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(201, 165, 90, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
}

/* Sections */
section {
    padding: 5rem 2rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

.underline {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* About */
.about {
    background: var(--white);
}

.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3.5rem;
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
}

.mision-vision {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.mv-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow);
}

.mv-card h4 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mv-icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
    flex-shrink: 0;
}

.mv-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Valores */
.valores-section {
    background: var(--light);
}

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

.valores-col h4 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
}

.valores-list {
    list-style: none;
}

.valores-list li {
    color: var(--gray);
    margin-bottom: 1rem;
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.7;
    font-size: 0.95rem;
}

.valores-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* Services */
#servicios {
    background: var(--white);
}

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

.service-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px var(--shadow);
    border-color: var(--accent);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.service-content h3 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 650;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.service-content p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Benefits */
.benefits {
    background: linear-gradient(165deg, var(--primary) 0%, #1a2744 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(201, 165, 90, 0.06) 0%, transparent 60%);
}

.benefits .section-header h2 {
    color: white;
}

.benefits .section-header p {
    color: rgba(255,255,255,0.7);
}

.benefits .underline {
    background: var(--accent);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.benefit-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-4px);
}

.benefit-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.benefit-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.benefit-item p {
    font-size: 0.9rem;
    opacity: 0.75;
    line-height: 1.6;
}

/* Calendario Tributario */
.calendario-section {
    background: var(--light);
}

.calendario-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.calendario-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.calendario-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px var(--shadow);
}

.calendario-card.highlight {
    border: 2px solid var(--accent);
}

.calendario-mes {
    background: var(--primary);
    color: var(--accent);
    padding: 1.25rem 1rem;
    text-align: center;
}

.calendario-mes span {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.calendario-card.highlight .calendario-mes {
    background: var(--accent);
    color: var(--primary);
}

.calendario-card h4 {
    color: var(--primary);
    font-size: 1rem;
    padding: 1rem 1rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.calendario-card ul {
    list-style: none;
    padding: 1rem;
}

.calendario-card li {
    color: var(--gray);
    font-size: 0.8rem;
    margin-bottom: 0.625rem;
    line-height: 1.5;
    font-size: 0.85rem;
}

.calendario-card li:last-child {
    margin-bottom: 0;
}

.calendario-leyenda {
    margin-top: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow);
    border: 1px solid var(--border);
}

.calendario-leyenda h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.calendario-leyenda ul {
    list-style: none;
}

.calendario-leyenda li {
    color: var(--gray);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
}

.calendario-leyenda li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.leyenda-box {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 0.5rem;
    vertical-align: middle;
    border: 2px solid var(--accent);
}

.leyenda-box.highlight {
    background: var(--accent);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.contact-info > p {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item a.social-link {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0;
    width: 100%;
    text-decoration: none;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-text h4 {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-text p {
    color: var(--gray);
    margin: 0;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    color: var(--primary);
    font-weight: 550;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.25s;
    font-family: inherit;
    background: var(--white);
    color: var(--primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 165, 90, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: var(--accent);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}

.social-link {
    color: var(--gray);
    text-decoration: none;
    transition: all 0.25s;
}

.social-link:hover {
    color: var(--accent);
}

.contact-item a.social-link:hover .contact-icon {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

.contact-item a.social-link:hover .contact-text h4,
.contact-item a.social-link:hover .contact-text p {
    color: var(--accent);
}

.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s;
}

.whatsapp-link:hover {
    opacity: 0.8;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    text-decoration: none;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

/* Map Container */
.map-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.map-container h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.map-container iframe {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--shadow);
    border: 1px solid var(--border);
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 700;
}

.footer-brand p {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    color: var(--accent);
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
}

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

    .calendario-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 55px;
    }

    html.font-small {
        font-size: 15px;
    }

    html.font-medium {
        font-size: 16px;
    }

    html.font-large {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .logo img {
        height: 65px;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(12px);
        box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    }

    nav.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 0.25rem;
    }

    nav a {
        padding: 0.75rem 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 8rem 1.5rem 4rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 0.75rem;
    }

    .mision-vision,
    .valores-grid,
    .contact-wrapper,
    .calendario-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    section {
        padding: 3.5rem 1.5rem;
    }

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

    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }

    html.font-small {
        font-size: 15px;
    }

    html.font-medium {
        font-size: 16px;
    }

    html.font-large {
        font-size: 18px;
    }
}
