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

:root {
    --primary-dark: #263545;
    --primary-medium: #6B8A9A;
    --primary-light: #9FC1CC;
    --cream: #F5EDE0;
    --white: #FFFFFF;
    --text-dark: #263545;
    --text-medium: #4A5568;
    --text-light: #6B8A9A;
    --shadow-sm: 0 1px 3px rgba(38, 53, 69, 0.08);
    --shadow-md: 0 4px 12px rgba(38, 53, 69, 0.1);
    --shadow-lg: 0 8px 30px rgba(38, 53, 69, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--cream);
}

/* Accessibility - Visually hidden but screen reader accessible */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 16px;
    z-index: 9999;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Header */
header {
    background: var(--white);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(38, 53, 69, 0.05);
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.2s;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(38, 53, 69, 0.15));
    transition: transform 0.2s;
}

.logo:hover .logo-icon svg {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 1.5px;
}

.logo-domain {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-medium);
    letter-spacing: 0.5px;
    margin-top: 1px;
}

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

nav a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

/* Header CTA Button */
.cta-header {
    background: var(--primary-dark);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s;
}

.cta-header:hover {
    background: #1a2530;
    color: var(--white) !important;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    background: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 10rem 2rem 5rem;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2530 100%);
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 400;
}

/* Calculator Section */
.calculator-section {
    padding: 4rem 2rem;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.calculator-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--cream);
    padding: 0.35rem;
    border-radius: var(--radius-md);
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-medium);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: var(--radius-sm);
}

.tab-btn:hover {
    color: var(--primary-dark);
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.tab-description {
    background: rgba(107, 138, 154, 0.08);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
}

.tab-description p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.5;
}

.tab-description.hidden {
    display: none;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E8E8E8;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-medium);
    box-shadow: 0 0 0 3px rgba(107, 138, 154, 0.15);
}

.form-group input::placeholder {
    color: #A0AEC0;
}

.field-description {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Campos liquidación */
.campos-liquidacion {
    border-top: 1px solid #E8E8E8;
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}

.campos-liquidacion.hidden {
    display: none;
}

/* Button */
.btn-calcular {
    width: 100%;
    padding: 1rem;
    background: var(--primary-dark);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.btn-calcular:hover {
    background: #1a2530;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Resultado */
.resultado {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #E8E8E8;
}

.resultado.hidden {
    display: none;
}

.resultado h3 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.resultado-seccion {
    margin-bottom: 1.5rem;
}

.resultado-seccion h4 {
    color: var(--text-medium);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.resultado-seccion.hidden {
    display: none;
}

.resultado-item {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    font-size: 0.95rem;
}

.resultado-item span:first-child {
    color: var(--text-medium);
}

.resultado-item span:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

.resultado-total {
    display: flex;
    justify-content: space-between;
    padding: 1.25rem;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    background: var(--primary-dark);
    border-radius: var(--radius-sm);
}

.disclaimer {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2530 100%);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: var(--primary-medium);
    opacity: 0.1;
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: var(--primary-light);
    opacity: 0.1;
    border-radius: 50%;
}

.cta-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-content {
    color: var(--white);
}

.cta-badge {
    display: inline-block;
    background: rgba(159, 193, 204, 0.2);
    color: var(--primary-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.cta-content > p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cta-benefits {
    list-style: none;
    padding: 0;
}

.cta-benefits li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 1rem;
    opacity: 0.9;
}

.cta-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: 700;
}

.cta-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.cta-form h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.cta-form select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E8E8E8;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B8A9A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.cta-form select:focus {
    outline: none;
    border-color: var(--primary-medium);
    box-shadow: 0 0 0 3px rgba(107, 138, 154, 0.15);
}

.btn-cta-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.btn-cta-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.form-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 1rem;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .cta-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cta-content {
        text-align: center;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-benefits {
        display: inline-block;
        text-align: left;
    }
}

/* Info Section */
.info-section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.info-section h2 {
    text-align: center;
    color: var(--primary-dark);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.info-title-liquidacion {
    margin-top: 4rem;
}

.info-intro {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.info-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(38, 53, 69, 0.05);
    transition: all 0.2s;
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.info-card h3 {
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.6;
}

.info-card-liquidacion {
    border-top: 3px solid var(--primary-medium);
}

.info-card-liquidacion h3 {
    color: var(--primary-medium);
}

/* FAQ Section */
.faq-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.faq-section h2 {
    text-align: center;
    color: var(--primary-dark);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: -0.5px;
}

.faq-item {
    max-width: 700px;
    margin: 0 auto 1.25rem;
    background: var(--cream);
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-md);
}

.faq-item h3 {
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem;
}

footer p {
    margin: 0.4rem 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

footer p:first-child {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-link {
    color: var(--primary-light);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        gap: 1.25rem;
    }

    nav a {
        font-size: 0.85rem;
    }

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

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

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

    .calculator-card {
        padding: 1.75rem;
        margin: 0 0.5rem;
    }

    .info-section,
    .faq-section {
        padding: 3rem 1.5rem;
    }

    .info-section h2,
    .faq-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.875rem 1rem;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo-icon svg {
        width: 28px;
        height: 28px;
    }

    .logo-main {
        font-size: 1.1rem;
    }

    .logo-domain {
        font-size: 0.6rem;
    }

    nav ul {
        gap: 0.75rem;
    }

    .cta-header {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .tabs {
        flex-direction: column;
    }

    .resultado-total {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}
