:root {
    --primary-color: #031633;
    --icon-wrap-color: #031633;
    --brand-dark: #031633;
    --accent-color: #fd7e14;
    --accent-hover: #e06c0a;
    --bg-light: #f6f7f9;
    --bg-white: #ffffff;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #ffffff;
        --icon-wrap-color: #fd7e14;
        --bg-white: #000000;
        --bg-light: #0a0a0a;
        --text-dark: #f8f9fa;
        --text-muted: #adb5bd;
        --border-color: #333333;
        --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

main {
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-white {
    color: #fff;
}

.text-accent {
    color: var(--accent-color);
}

.pt-100 {
    padding-top: 100px;
}

.pb-100 {
    padding-bottom: 100px;
}

.pt-80 {
    padding-top: 80px;
}

.pb-80 {
    padding-bottom: 80px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-60 {
    margin-top: 60px;
}

.opacity-80 {
    opacity: 0.8;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
    border-radius: var(--radius-sm);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(3, 22, 51, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 10px 0 0 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.nav-list a:hover {
    color: var(--accent-color);
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.nav-actions .btn-outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-actions .btn-outline:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Update Header / Nav styling... */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    z-index: 1001;
    /* Above nav if needed */
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-white);
    background-image:
        radial-gradient(circle at 38% 28%, rgba(253, 126, 20, 0.2) 0%, transparent 28%),
        radial-gradient(circle at 62% 72%, rgba(0, 204, 255, 0.2) 0%, transparent 28%);
}

.bg-light-soft {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    color: var(--text-dark);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Forma diagonal en la parte inferior para fusionar con la siguiente sección gris */
.hero-shape-bg {
    position: absolute;
    width: 100%;
    height: 100px;
    left: 0;
    bottom: 0;
    top: auto;
    /* Este gris debe coincidir directamente con bg-light */
    background: var(--bg-light);
    /* Crea un triángulo en la esquina inferior para que la sección de abajo parezca tener un ángulo */
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-title {
    font-size: 4.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.8;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-buttons .btn-outline {
    color: var(--primary-color);
    border-color: var(--border-color);
}

.hero-buttons .btn-outline:hover {
    border-color: var(--primary-color);
    background-color: transparent;
}

/* Sections */
.section {
    background-color: var(--bg-white);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid */
.grid {
    display: grid;
    gap: 30px;
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Feature Cards */
.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: var(--transition);
}

.play-overlay svg {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 14px 12px 14px 16px; /* Adjust to optically center the play triangle */
    width: 65px;
    height: 65px;
    box-sizing: border-box;
    fill: #ffffff;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.feature-card:hover .play-overlay {
    background: rgba(0, 0, 0, 0.25);
    opacity: 1;
}

.feature-card:hover .play-overlay svg {
    background: rgba(0, 0, 0, 0.85);
    border-color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.feature-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 24px;
    text-align: left;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #0a295c 100%);
}

.title-large {
    font-size: 3rem;
}

.subtitle-large {
    font-size: 1.25rem;
}

/* Footer */
.footer {
    background-color: #020d1e;
    color: #fff;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 48px;
    filter: brightness(0) invert(1);
}

.footer-col h4 {
    font-size: 1.125rem;
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-col ul a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Feature Box */
.feature-box {
    padding: 40px 30px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--icon-wrap-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-wrap svg {
    width: auto;
    height: 30px;
}

.feature-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Pricing Section */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.price-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.price-card.popular {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.price-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.price-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.price span {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 400;
}

.price-card .desc {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.features {
    text-align: left;
    margin-bottom: 0;
    margin-top: auto;
}

.features li {
    padding: 12px 0 12px 30px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    color: var(--text-dark);
}

.features li:last-child {
    border-bottom: none;
}

.features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.bg-light {
    background-color: var(--bg-light);
}

/* Scroll Animations */
.reveal,
.reveal-bottom {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active,
.reveal-bottom.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Custom Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-white);
    width: 90%;
    max-width: 680px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-body {
    padding: 25px;
    color: var(--text-dark);
}

.modal-body p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-media {
    position: relative;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.modal-media img,
.modal-media iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Play button overlay: dark circle with transparency */
.modal-media:has(img)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    background: rgba(0, 0, 0, 0.6);
    border: 2.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    z-index: 2;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Play button triangle */
.modal-media:has(img)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%); /* Visual centering adjustment */
    width: 0;
    height: 0;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 22px solid #fff;
    z-index: 3;
    transition: transform 0.3s ease, border-left-color 0.3s ease;
}

/* Hover effects */
.modal-media:has(img):hover::before {
    background: rgba(0, 0, 0, 0.8);
    border-color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.modal-media:has(img):hover::after {
    transform: translate(-35%, -50%) scale(1.1);
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
    text-align: right;
    background: var(--bg-light);
}

.modal-footer .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content.text-left {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .pricing-table {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 60px auto 0;
        gap: 40px;
    }

    .price-card.popular {
        transform: none;
    }

    .price-card.popular:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(3, 22, 51, 0.98);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 20px;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        align-items: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .title-large {
        font-size: 2rem;
    }

    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Forms */
.form-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(253, 126, 20, 0.1);
}

.form-control.error {
    border-color: #dc3545;
}

.form-control.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.price-summary {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    margin-top: 30px;
}

.price-summary h4 {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.price-summary .total-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    gap: 20px;
}

@media (max-width: 768px) {

    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
}