:root {
    --color-primary: #000000;
    --color-accent: #00BFA5;
    --color-light-gray: #F3F3F3;
    --color-white: #FFFFFF;
    --color-text: #333333;
    --color-text-light: #555555;
    --font-main: 'Noto Sans', sans-serif;
    --font-display: 'Inter', sans-serif;
    --spacing-unit: 1rem;
}

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

body {
    font-family: 'Noto Sans', sans-serif;
    background: #F3F3F3;
    color: #3A3A3A;
    line-height: 1.6;
}

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

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--color-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo span {
    color: var(--color-accent);
    font-weight: 400;
    font-size: 1rem;
    border: 1px solid #000000;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-white);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background-color: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-menu .nav-cta {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 6px rgba(0, 191, 165, 0.2);
}

.nav-menu .nav-cta:hover {
    background-color: #00897B;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 191, 165, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    margin-top: 1rem; /* Space for navbar */
}

.hero-content {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 2rem;
    align-items: center;
}

.hero-logo img {
    width: 100%;
    height: auto;
}

.hero-text {
    text-align: center;
}

.hero-text h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #00BFA5;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-text .subtitle {
    font-size: 1.1rem;
    color: #cccccc;
    font-weight: 500;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Motivational Message */
.motivational-message {
    background: #000000;
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 4px solid #00BFA5;
}

.motivational-message p {
    font-size: 1rem;
    line-height: 1.7;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 2rem;
}

.faq-toggle {
    width: 100%;
    background: #000000;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.faq-toggle:hover {
    background: #222;
}

.faq-toggle .arrow {
    transition: transform 0.3s;
}

.faq-toggle.active .arrow {
    transform: rotate(180deg);
}

.faq-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-top: 1rem;
}

.faq-container.open {
    max-height: 3000px;
}

.faq-item {
    background: white;
    border: 1px solid #D9C9A4;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #3A3A3A;
}

.faq-question .arrow {
    transition: transform 0.3s;
    color: #00BFA5;
}

.faq-question.active .arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.open {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1rem 1rem;
    color: #3A3A3A;
    line-height: 1.6;
}

/* Validation Section */
.validation-section {
    margin-bottom: 2rem;
}

.validation-card {
    background: white;
    border: 1px solid #D9C9A4;
    border-radius: 12px;
    padding: 2rem;
}

.validation-card h2 {
    color: #000000;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.validation-question {
    margin-bottom: 1.5rem;
}

.validation-question p {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #3A3A3A;
}

.radio-group {
    display: flex;
    gap: 2rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 191, 165, 0.25);
}

.btn-primary:hover {
    background-color: #00897B;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 191, 165, 0.3);
}

.btn-large {
    padding: 1.25rem 2rem;
    font-size: 1.2rem;
    width: 100%;
}

.btn-secondary {
    background: white;
    color: #000000;
    border: 2px solid #000000;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
    background: #000000;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.35);
}

.btn-calendly {
    background: #0069ff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 8px rgba(0, 105, 255, 0.25);
}

.btn-calendly:hover {
    background: #0056d6;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 105, 255, 0.35);
}

/* Not Ready Message */
.not-ready-message {
    margin-bottom: 2rem;
}

.message-card {
    background: white;
    border: 1px solid #D9C9A4;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.message-card p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #3A3A3A;
}

/* Form Section */
.form-section {
    margin-bottom: 2rem;
}

.form-card {
    background: white;
    border: 1px solid #D9C9A4;
    border-radius: 12px;
    padding: 2rem;
}

/* Nuevas clases para bloques del formulario */
.section-block {
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.section-general {
    background-color: rgba(0, 0, 0, 0.02); /* Tono suave */
    border-left: 5px solid #000000;
}

.section-objective {
    background-color: rgba(0, 191, 165, 0.05); /* Tono suave del accent */
    border-left: 5px solid #00BFA5;
}

.section-params {
    background-color: #f8f9fa; /* Gris muy suave */
    border-left: 5px solid #555;
}

.form-card h2 {
    color: #000000;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #3A3A3A;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D9C9A4;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Noto Sans', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00BFA5;
}

.input-with-prefix {
    display: flex;
    align-items: center;
    border: 1px solid #D9C9A4;
    border-radius: 6px;
    overflow: hidden;
}

.input-with-prefix .prefix {
    background: #F3F3F3;
    padding: 0.75rem;
    font-weight: 600;
    color: #3A3A3A;
}

.input-with-prefix input {
    border: none;
    flex: 1;
}

.form-note {
    color: #3A3A3A;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Results Section */
.results-section {
    margin-bottom: 2rem;
}

.results-card {
    background: #ffffff; /* Blanco base */
    border: 1px solid #D9C9A4;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    background: linear-gradient(to bottom, #ffffff, #fdfdfd);
    border-top: 5px solid #000000; /* Distinción visual */
}

.results-card h2 {
    color: #000000;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.results-grid {
    display: grid;
    gap: 0.5rem; /* Reducido de 1rem */
}

.results-block {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #F3F3F3;
    border-radius: 8px;
}

.results-block.highlight-block {
    background: #E0F2F1;
    border: 2px solid #00BFA5;
}

.block-title {
    color: #000000;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #000000;
}

.block-disclaimer {
    color: #856404;
    background: #fff3cd;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    border-left: 4px solid #ffc107;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem; /* Reducido padding */
    background: #F8F9FA;
    border-radius: 6px;
    margin-bottom: 0;
}

.result-item.highlight {
    background: #E0F2F1;
    border: 2px solid #00BFA5;
    font-weight: 700;
}

.result-label {
    font-weight: 600;
    color: #3A3A3A;
}

.result-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000;
}

.disclaimer {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #856404;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
    border-left: 4px solid #ffc107;
}

.cta-highlight {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    border: 3px solid #00BFA5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-highlight p {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    font-weight: 400;
}

.cta-highlight strong {
    color: #00BFA5;
    font-weight: 700;
}

.cta-highlight p:last-of-type {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0;
    color: white;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-logo,
    .hero-image {
        max-width: 200px;
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text .subtitle {
        font-size: 1rem;
    }

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

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons button,
    .action-buttons a {
        width: 100%;
        text-align: center;
    }

    .cta-highlight p {
        font-size: 1rem;
    }
}

/* Footer Styles */
body {
    padding-bottom: 100px; /* Space for fixed footer (reducido para que el footer ocupe menos) */
}

#footerContacto {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000000;
    color: #FFFFFF;
    font-size: 12px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans", sans-serif;
    padding: 8px 12px 4px;
    z-index: 9999;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
}

#footerContacto a {
    color: #FFFFFF;
    text-decoration: none;
}

.footer-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    overflow: hidden;
}

.footer-contacto {
    flex-shrink: 0;
    font-weight: 300;
}

.footer-carrusel {
    flex: 1;
    overflow: hidden;
    margin-left: 2rem;
    position: relative;
}

.logos-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: scrollLogos 30s linear infinite;
}

.logos-track img {
    height: 48px;
    width: auto;
    display: block;
}

.footer-version {
    text-align: right;
    font-size: 10px;
    margin-top: 5px;
    opacity: 0.7;
}

@keyframes scrollLogos {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Adaptación a pantallas pequeñas */
@media (max-width: 768px) {
    body {
        padding-bottom: 130px;
    }
    
    .footer-main-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-carrusel {
        width: 100%;
        margin-left: 0;
        margin-top: 6px;
    }
    
    .logos-track img {
        height: 40px;
    }

    #footerContacto {
        padding: 6px 10px 3px;
        font-size: 11px;
    }

    .footer-version {
        display: none;
    }
}

/* Redes sociales reutilizables */
.social-links {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    font-size: 0.9rem;
}

.social-links span {
    opacity: 0.9;
    font-size: 1rem;
    font-weight: 600;
}

.social-links a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.social-links a:hover {
    text-decoration: underline;
}

.social-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.social-icon-facebook {
    background-image: url("https://cdn.simpleicons.org/facebook/1877F2");
}

.social-icon-instagram {
    background-image: url("https://cdn.simpleicons.org/instagram/E4405F");
}

.social-icon-tiktok {
    background-image: url("https://cdn.simpleicons.org/tiktok/FFFFFF");
}

.social-icon-tiktok-dark {
    background-image: url("https://cdn.simpleicons.org/tiktok/000000");
}

.footer-social {
    justify-content: flex-start;
    margin-top: 4px;
    font-size: 0.8rem;
}

/* Solo iconos en footer; texto oculto salvo TikTok en letra pequeña */
.footer-social .social-label {
    display: none;
}

.footer-social .tiktok-handle {
    font-size: 0.65rem;
    color: #FFFFFF;
    opacity: 0.9;
}

/* Results Images Layout Styles */
.chart-container {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #D9C9A4;
    margin-bottom: 2rem;
    height: 400px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.results-with-images {
    display: flex;
    flex-direction: column;
}

.results-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.result-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (min-width: 992px) {
    .results-with-images {
        display: grid;
        grid-template-columns: 180px 1fr;
        gap: 2rem;
        align-items: start;
    }

    .results-images {
        flex-direction: column;
        width: 100%;
        margin-bottom: 0;
    }

    .result-image {
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .results-images {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 1rem;
    }

    .result-image {
        width: calc(50% - 5px);
        height: 120px; /* Small height for mobile */
        object-fit: cover;
        object-position: top; /* Focus on faces */
    }
}

/* Pension Calculation Card */
.card-pension-mensual {
  margin-top: 24px;
  padding: 20px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 1px solid #e0e0e0;
  animation: fadeIn 0.5s ease-out;
}

.card-pension-mensual h3 {
  margin: 0 0 12px 0;
  font-size: 1.15rem;
  color: #000000;
  border-bottom: 2px solid #00BFA5;
  padding-bottom: 8px;
  display: inline-block;
  margin-bottom: 1rem;
}

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