* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Kanit', sans-serif;
    background: #f5f5f5;
    color: #272322;
    overflow-x: hidden;
    width: 100%;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: 15px;
}

/* Portada */
.cover {
    min-height: 100vh;
    background: linear-gradient(135deg, #224A59 0%, #5F92A5 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.cover::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -150px;
    right: -150px;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-20px) translateX(20px);
    }
}

.logo-visual {
    width: 200px;
    height: 200px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 3px solid white;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 0;
    left: 0;
    animation: pulse 3s infinite ease-in-out;
}

.circle-2 {
    width: 140px;
    height: 140px;
    top: 30px;
    left: 30px;
    opacity: 0.8;
    animation: pulse 3s infinite ease-in-out 0.5s;
}

.circle-3 {
    width: 80px;
    height: 80px;
    top: 60px;
    left: 60px;
    opacity: 0.6;
    animation: pulse 3s infinite ease-in-out 1s;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.cover-content {
    z-index: 1;
    text-align: center;
    max-width: 1000px;
}

.cover h1 {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.cover .subtitle {
    font-size: 2em;
    font-weight: 300;
    opacity: 0.95;
    margin-bottom: 40px;
}

.cover .tagline {
    font-size: 1.4em;
    font-weight: 400;
    opacity: 0.9;
}

/* Secciones */
.section {
    padding: 80px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-alt {
    background: #f9f9f9;
}

.section-title {
    font-size: 3em;
    font-weight: 700;
    color: #224A59;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 4px solid #5F92A5;
    text-align: center;
}

.section-subtitle {
    font-size: 1.8em;
    font-weight: 600;
    color: #5F92A5;
    margin: 35px 0 20px 0;
}

.content-text {
    font-size: 1.2em;
    line-height: 1.9;
    color: #272322;
    margin-bottom: 25px;
}

.highlight-box {
    background: linear-gradient(135deg, #224A59 0%, #5F92A5 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(34, 74, 89, 0.25);
    text-align: center;
}

.highlight-box h3 {
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 600;
}

.highlight-box p {
    color: white;
    font-size: 1.2em;
    line-height: 1.8;
}

/* Problem/Solution */
.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 50px 0;
}

.problem-card,
.solution-card {
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.problem-card {
    background: #fff5f5;
    border-left: 5px solid #ff6b6b;
}

.problem-card h3 {
    color: #ff6b6b;
    font-size: 2em;
    margin-bottom: 20px;
}

.solution-card {
    background: #f0f9ff;
    border-left: 5px solid #5F92A5;
}

.solution-card h3 {
    color: #224A59;
    font-size: 2em;
    margin-bottom: 20px;
}

.problem-card ul,
.solution-card ul {
    list-style: none;
    padding: 0;
}

.problem-card li,
.solution-card li {
    padding-left: 35px;
    margin-bottom: 15px;
    position: relative;
    font-size: 1.1em;
    line-height: 1.6;
}

.problem-card li::before {
    content: '❌';
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.solution-card li::before {
    content: '✅';
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    border-top: 5px solid #5F92A5;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #224A59;
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    font-size: 1.05em;
    line-height: 1.6;
    color: #272322;
}

/* Pricing Cards */
.pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin: 50px 0;
    padding: 20px;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s;
    position: relative;
    border: 3px solid #e0e0e0;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured {
    border: 5px solid #5F92A5;
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(95, 146, 165, 0.3);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: linear-gradient(135deg, #224A59 0%, #5F92A5 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    box-shadow: 0 5px 15px rgba(34, 74, 89, 0.3);
}

.plan-name {
    font-size: 2.2em;
    color: #224A59;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.plan-price {
    text-align: center;
    margin: 30px 0;
}

.price-amount {
    font-size: 3.5em;
    font-weight: 700;
    color: #5F92A5;
}

.price-currency {
    font-size: 1.5em;
    vertical-align: super;
}

.price-period {
    font-size: 1.2em;
    color: #666;
}

.plan-description {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.plan-features li {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.05em;
    padding-left: 35px;
    position: relative;
    line-height: 1.5;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #5F92A5;
    font-weight: bold;
    font-size: 1.4em;
}

.plan-features .highlight-feature {
    color: #224A59;
    font-weight: 600;
}

.cta-button {
    display: block;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #224A59 0%, #5F92A5 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    margin-top: 30px;
    font-family: 'Kanit', sans-serif;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(34, 74, 89, 0.4);
}

.cta-button-secondary {
    background: white;
    color: #224A59;
    border: 2px solid #5F92A5;
}

.cta-button-secondary:hover {
    background: #f0f9ff;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.stat-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #5F92A5;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 3.5em;
    font-weight: 700;
    color: #224A59;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2em;
    color: #272322;
    line-height: 1.5;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    margin: 40px 0;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.comparison-table th {
    background: linear-gradient(135deg, #224A59 0%, #5F92A5 100%);
    color: white;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
}

.comparison-table td {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.05em;
    text-align: center;
}

.comparison-table tr:hover {
    background: #f9f9f9;
}

.comparison-table .feature-name {
    text-align: left;
    font-weight: 600;
    color: #224A59;
}

.check-mark {
    color: #5F92A5;
    font-size: 1.5em;
    font-weight: bold;
}

/* Social Proof */
.social-proof {
    background: linear-gradient(135deg, #f0f9ff 0%, #e8eff3 100%);
    padding: 60px;
    border-radius: 20px;
    margin: 50px 0;
    text-align: center;
}

.social-proof h3 {
    color: #224A59;
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: 700;
}

.testimonial {
    background: white;
    padding: 40px;
    border-radius: 15px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #5F92A5;
}

.testimonial-text {
    font-size: 1.2em;
    line-height: 1.8;
    color: #272322;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: #224A59;
    font-size: 1.1em;
}

/* FAQ */
.faq-container {
    margin: 40px 0;
}

.faq-item {
    background: white;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 25px;
    font-size: 1.3em;
    font-weight: 600;
    color: #224A59;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f9f9f9;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    font-size: 1.1em;
    line-height: 1.8;
    color: #272322;
}

.faq-item.active .faq-answer {
    padding: 25px;
    max-height: 500px;
}

.faq-toggle {
    font-size: 1.5em;
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

/* Contact Box */
.contact-box {
    background: linear-gradient(135deg, #224A59 0%, #5F92A5 100%);
    color: white;
    padding: 60px;
    border-radius: 15px;
    margin: 50px 0;
    text-align: center;
}

.contact-box h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-box p {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.95;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.contact-item .icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.contact-item p {
    font-size: 1.1em;
    margin: 0;
}

.contact-item a {
    color: white;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s;
}

.contact-item a:hover {
    border-bottom-color: white;
}

/* Urgency Banner */
.urgency-banner {
    background: #ff6b6b;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    animation: pulse-banner 2s infinite;
}

@keyframes pulse-banner {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.9;
    }
}

/* Footer */
.footer {
    background: #272322;
    color: white;
    text-align: center;
    padding: 40px;
}

.footer .logo-visual {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.footer h3 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.footer p {
    font-size: 1.1em;
    opacity: 0.9;
}

@media (max-width: 968px) {
    .section {
        padding: 60px 30px;
    }

    .cover h1 {
        font-size: 2.5em;
    }

    .cover .subtitle {
        font-size: 1.5em;
    }

    .section-title {
        font-size: 2.2em;
    }

    .problem-solution {
        grid-template-columns: 1fr;
    }

    .pricing-container {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .comparison-table {
        font-size: 0.9em;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 15px 10px;
    }
}

@media (max-width: 480px) {
    .cover {
        padding: 40px 20px;
        min-height: auto;
        /* Allow content to determine height on small screens */
    }

    .cover h1 {
        font-size: 2em;
        line-height: 1.2;
    }

    .cover .subtitle {
        font-size: 1.3em;
    }

    .logo-visual {
        width: 150px;
        height: 150px;
        margin-bottom: 30px;
    }

    .circle-1 {
        width: 150px;
        height: 150px;
    }

    .circle-2 {
        width: 100px;
        height: 100px;
        top: 25px;
        left: 25px;
    }

    .circle-3 {
        width: 60px;
        height: 60px;
        top: 45px;
        left: 45px;
    }

    .section {
        padding: 50px 20px;
    }

    .section-title {
        font-size: 1.8em;
    }

    .highlight-box {
        padding: 30px 20px;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .price-amount {
        font-size: 3em;
    }

    .footer {
        padding: 40px 20px;
    }

    .comparison-table {
        font-size: 0.85em;
        min-width: 600px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }

    .social-proof {
        padding: 30px 15px;
    }

    .testimonial {
        padding: 25px 20px;
    }

    .testimonial-text {
        font-size: 1.05em;
    }

    /* Ajustes móviles: centrar y evitar desbordes del CTA dentro de la sección de contacto */
    .contact-box .cta-button {
        display: block !important;
        width: 100% !important;
        max-width: 720px;
        margin: 10px auto !important;
        box-sizing: border-box;
        padding: 16px 20px !important;
        font-size: 1.05em !important;
    }

    /* Si hay un CTA con estilo inline (como el de la plantilla), nos aseguramos de sobreescribirlo */
    .contact-box a[style].cta-button {
        display: block !important;
        width: 100% !important;
        margin: 10px auto !important;
    }
}