:root {
    --color-primary: #00324c;
    --color-primary-dark: #3730a3;
    --color-secondary: #f97316;
    --color-bg: #ffffff;
    --color-bg-muted: #f3f4f6;
    --color-text: #111827;
    --color-text-muted: #6b7280;
    --color-border: #e5e7eb;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 80px;
}

section[navbar__hamburger]:not {
    scroll-margin: 80px;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header {
    background: var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 20;
}

/*NavBar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1rem;
}

.navbar__logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: #e5e7eb;
}

.img_logo {
    display: block;
    height: 30px;
    width: auto;
}

.navbar__checkbox {
    display: none;
}

.navbar__hamburger {
    display: none;
    width: 28px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    margin-right: auto;
}

.navbar__hamburger span {
    display: block;
    height: 3px;
    border-radius: 999px;
    background: #e5e7eb;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar__links {
    list-style: none;
    display: flex;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.navbar__links a {
    text-decoration: none;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.navbar__links a:hover {
    font-size: larger;
}

.navbar__cta {
    text-decoration: none;
    color: #e5e7eb;
    font-size: 0.95rem;
    margin-left: 1rem;
}

/* SECCIONES GENERALES */
.section {
    padding: 3rem 0;
    min-height: 20vh;
}

.section--gray {
    background: var(--color-bg-muted);
}

.section__header {
    text-align: center;
    margin-bottom: 2rem;
}

.section__header h2 {
    margin: 0 0 0.5rem;
}

.section__header p {
    margin: 0;
    color: var(--color-text-muted);
}

.section__column h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* BOTONES REUTILIZABLES */
.btn {
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
        transform 0.05s ease;
    white-space: nowrap;
    text-decoration: none;
}

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

.btn--secondary {
    background: var(--color-secondary);
    color: #111827;
}

.btn--outline {
    background: white;
    color: var(--color-primary);
    border-color: var(--color-primary);
    text-decoration: none;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.bt-submit:hover:not(:disabled) {
    transform: translateY(0px);
    box-shadow: 0 6px 15px rgb(122, 74, 255, 0.55);
}

.bt-submit:active:not(:disabled) {
    transform: translateY(0px);
    box-shadow: 0 3px 10px rgb(122, 74, 255, 0.4);
}

.btn:disabled,
.btn[disabled] {
    background: #bfbfbf;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.6;
}

/* INPUTS */
.input-error {
    border: 2px solid #e63946 !important;
    background: #ffe8e8;
}

.input-success {
    border: 2px solid #2a9d2a !important;
    background: #ffe8e8;
}

.error-menssage {
    color: #e63946;
    font-size: 0.75rem;
    margin-top: 4px;
}

/* Hero */
.img_banner {
    display: block;
    height: auto;
    width: 100%;
}

.hero.hero--full .carousel__slide img {
    max-height: 1000px;
}

.hero__content--full {
    height: 150%;
}

.carousel {
    position: relative;
    width: 100%;
    min-height: 39vh;
    overflow: hidden;
}

.carousel__track-container {
    width: 100%;
    height: 100%;
}

.carousel__track {
    display: flex;
    height: 100%;
}

.carousel__slide {
    min-width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel__slide.is-active {
    opacity: 1;
    position: relative;
}

.carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0, 0, 0, 0.35);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    cursor: pointer;
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel__btn--prev {
    left: 1rem;
}

.carousel__btn--next {
    right: 1rem;
}

.carousel__indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    justify-content: center;
}

.carousel__indicators button {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}

.carousel__indicators button.is-active {
    width: 1.2rem;
    background: #4f46e5;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* TABS */

.tab {
    min-width: 140px;
    padding: 0.6rem;
    border-radius: 999px;
    border: 2px solid var(--color-primary);
    background: #fff;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease,
        transform 0.05s ease;
}

.tab:hover {
    background: rgba(79, 70, 229, 0.08);
}

.tab--active {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

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

/* CARDS */
.hide {
    display: none;
}

.cards-carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.cards-nav {
    border: none;
    background: rgba(15, 23, 42, 0.08);
    color: var(--color-primary);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.05s ease;
}

.cards-nav:hover {
    background: rgba(15, 23, 42, 0.16);
    transform: translateY(-1px);
}

.cards-grid {
    flex: 1;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cards-carousel {
        gap: 0.5rem;
    }

    .cards-nav {
        width: 2rem;
        height: 2rem;
        font-size: 1.1rem;
    }
}

.card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.45rem;
    height: 100%;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.15);
    transform: translateY(-3px);
}

.card--enter {
    animation: cardFadeIn 0.35s ease forwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.card__title {
    margin: 0 0 0.15rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
}

.card__price {
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--color-primary);
}

.card__features {
    list-style: none;
    padding: 0;
    margin: 0.15rem 0 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* FORMULARIO DE CONTACTO */
.contact {
    background: #ffffff;
}

.contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: flex-start;
}

.contact__info h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.contact__info p {
    margin: 0 0 1rem;
    color: var(--color-text-muted);
}

.contact__highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.contact__highlights li {
    margin-bottom: 0.35rem;
}

.contact__form {
    background: var(--color-bg-muted);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.contact__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.contact__field label {
    font-size: 0.85rem;
    font-weight: 600;
}

.contact__field input,
.contact__field select,
.contact__field textarea {
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    font-family: inherit;
}

.contact__field input:focus,
.contact__field select:focus,
.contact__field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.15);
}

.contact__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact__legal-note {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.img_banner_vertical {
    display: none;
}

/* FAQs */
.accordion {
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.accordion__item+.accordion__item {
    border-top: 1px solid #e5e7eb;
}

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

.accordion__icon {
    font-weight: 700;
    transition: transform 0.2s ease;
}

.accordion__header.is-open .accordion__icon {
    transform: rotate(45deg);
}

.accordion__panel {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.2rem;
    background: #f9fafb;
    transition: max-height 0.25s ease;
}

.accordion__panel p {
    padding: 0.75rem 0 1rem;
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

/* FOOTER */
.site-footer {
    background: #020617;
    color: #e5e7eb;
    padding-top: 2rem;
}

.footer__top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.footer__contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.footer__form label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer__form-row {
    display: flex;
    gap: 0.5rem;
}

.footer__form-row input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.7);
    color: #e5e7eb;
}

.footer__form-row input::placeholder {
    color: #9ca3af;
}

.footer__legal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}

.footer__legal-list a {
    color: #e5e7eb;
    text-decoration: none;
}

.footer__legal-list a:hover {
    text-decoration: underline;
}

.footer__legal-text {
    font-size: 0.75rem;
    color: #9ca3af;
}

.footer__bottom {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* RESPONSIVE */

@media (max-width: 768px) {

    .hero__content--full {
        height: auto;
    }

    .img_banner_vertical {
        display: block;
        aspect-ratio: auto;
    }

    .img_banner {
        display: none;
    }

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

    .hero.hero--full .carousel__slide img {
        max-height: 420px;
        object-fit: cover;
    }

    .site-header {
        background: var(--color-primary);
        position: sticky;
        top: 0;
        z-index: 30;
        height: 56px;
    }

    .navbar {
        position: relative;
        top: 8px;
        padding: 0.75rem 1rem;
        align-items: center;
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .navbar__hamburger {
        display: flex;
        margin-right: 0;
    }

    .navbar__logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-weight: 700;
        font-size: 1.25rem;
        color: #e5e7eb;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Menú lateral (offcanvas) */
    .navbar__links {
        position: fixed;
        top: 56px;
        left: 0;
        width: 75%;
        max-width: 320px;
        height: calc(100vh - 56px);
        background: var(--color-primary);
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.5rem 1.25rem;
        margin: 0;
        list-style: none;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: -4px 0 14px rgba(15, 23, 42, 0.45);
        z-index: 30;
    }

    .navbar__links li {
        border-bottom: 1px solid rgba(226, 232, 240, 0.2);
        padding-bottom: 0.4rem;
    }

    .navbar__links li:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-top: 0.5rem;
    }

    .navbar__links a {
        display: block;
        width: 100%;
        color: #e5e7eb;
        font-size: 1rem;
    }

    .navbar__links-account a {
        font-weight: 600;
        color: var(--color-secondary);
    }

    #menu-toggle:checked~.navbar__links {
        transform: translateX(0);
    }

    #menu-toggle:checked+.navbar__hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    #menu-toggle:checked+.navbar__hamburger span:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked+.navbar__hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .btn {
        width: 100%;
    }

    .navbar__cta {
        width: auto;
        margin-left: auto;
        padding-inline: 1.2rem;
    }

    .footer__form-row {
        flex-direction: column;
    }

    .container {
        padding: 0 1rem;
    }

    .tabs {
        align-items: stretch;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .tab {
        min-width: 0;
        width: 100%;
        text-align: center;
        font-size: 0.85rem;
    }

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

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