:root {
    --page-bg: #edf5ff;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --ink: #102c4f;
    --muted: #55708f;
    --accent: #0e6bc7;
    --accent-deep: #0a4f96;
    --highlight: #d8ebff;
    --line: rgba(14, 107, 199, 0.14);
    --shadow: 0 20px 50px rgba(16, 44, 79, 0.1);
}

html {
    scroll-behavior: smooth;
}

html, body {
    background:
        radial-gradient(circle at top left, rgba(148, 204, 255, 0.46), transparent 24%),
        radial-gradient(circle at right 10% top 20%, rgba(14, 107, 199, 0.14), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
    color: var(--ink);
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    margin: 0;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
}

a, .btn-link {
    color: var(--accent);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(14, 107, 199, 0.3);
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.hero-section,
.info-strip,
.content-section,
.contact-banner {
    animation: reveal-up 0.55s ease both;
}

.hero-section {
    align-items: stretch;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1.75fr 0.95fr;
    margin-top: 1rem;
}

.hero-copy,
.hero-panel,
.info-strip,
.content-section,
.contact-banner {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.hero-copy {
    overflow: hidden;
    padding: 3rem;
    position: relative;
}

.hero-image-banner {
    animation: hero-media-in 0.85s ease both;
    aspect-ratio: 16 / 9;
    border-radius: 26px;
    margin-bottom: 1.5rem;
    max-height: 360px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.hero-image-banner img {
    animation: hero-image-drift 14s ease-in-out infinite alternate;
    display: block;
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.hero-image-overlay {
    background: linear-gradient(180deg, rgba(10, 33, 70, 0.05) 0%, rgba(10, 33, 70, 0.82) 100%);
    bottom: 0;
    color: #ffffff;
    display: grid;
    gap: 0.35rem;
    left: 0;
    padding: 1.25rem 1.3rem;
    position: absolute;
    right: 0;
}

.hero-image-overlay .eyebrow {
    color: rgba(255, 255, 255, 0.76);
}

.hero-image-overlay strong {
    font-size: 1.15rem;
    line-height: 1.45;
}

.hero-copy > .eyebrow {
    animation: reveal-up 0.55s ease both;
    animation-delay: 0.08s;
}

.hero-copy h1 {
    animation: reveal-up 0.6s ease both;
    animation-delay: 0.14s;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    letter-spacing: -0.03em;
    line-height: 0.96;
    margin: 0.4rem 0 1rem;
    max-width: 12ch;
}

.hero-lead,
.section-heading p,
.content-section p,
.feature-list,
.check-list,
.compliance-card p {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.hero-lead {
    animation: reveal-up 0.65s ease both;
    animation-delay: 0.2s;
}

.eyebrow,
.panel-label,
.strip-label,
.contact-label {
    color: var(--accent-deep);
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-badges {
    animation: reveal-up 0.7s ease both;
    animation-delay: 0.26s;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.hero-badges span {
    background: rgba(14, 107, 199, 0.07);
    border: 1px solid rgba(14, 107, 199, 0.14);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.55rem 0.9rem;
}

.hero-actions {
    animation: reveal-up 0.75s ease both;
    animation-delay: 0.32s;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.button-primary,
.button-secondary {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.9rem 1.3rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    box-shadow: 0 12px 30px rgba(10, 79, 150, 0.2);
    color: #ffffff;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    color: var(--ink);
}

.button-primary:hover,
.button-secondary:hover {
    transform: translateY(-1px);
}

.hero-panel {
    background:
        radial-gradient(circle at top right, rgba(135, 197, 255, 0.35), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(233, 244, 255, 0.94) 100%);
    color: var(--ink);
    display: grid;
    gap: 1rem;
    padding: 1.8rem;
}

.hero-panel-header {
    display: grid;
    gap: 0.45rem;
}

.hero-panel-header strong {
    font-size: 1.15rem;
    line-height: 1.45;
}

.panel-label,
.hero-panel .panel-note {
    color: var(--accent-deep);
}

.hero-stats-grid {
    display: grid;
    gap: 0.85rem;
}

.hero-panel-mini-gallery {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, 1fr);
}

.hero-panel-mini-gallery img {
    border: 1px solid rgba(14, 107, 199, 0.16);
    border-radius: 18px;
    display: block;
    height: 132px;
    box-shadow: 0 12px 26px rgba(16, 44, 79, 0.08);
    object-fit: cover;
    width: 100%;
}

.metric-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(14, 107, 199, 0.12);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    min-height: 92px;
    padding: 1.2rem;
}

.metric-card strong {
    color: var(--accent-deep);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.metric-card span {
    color: var(--muted);
    line-height: 1.55;
}

.info-strip {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
    margin: 1.25rem 0 0;
    padding: 1.2rem 1.4rem;
}

.info-strip strong {
    display: block;
    margin-top: 0.35rem;
}

.content-section {
    margin-top: 1.5rem;
    padding: 2rem;
}

.section-heading h2,
.content-section h2,
.content-section h3,
.contact-banner h2 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.02em;
}

.section-heading h2,
.content-section h2,
.contact-banner h2 {
    font-size: clamp(1.9rem, 3vw, 3rem);
    margin: 0.4rem 0 0.75rem;
}

.tariff-table-wrap {
    margin-top: 1.4rem;
    overflow-x: auto;
}

.plan-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 1.5rem;
}

.plan-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.92));
    border: 1px solid rgba(14, 107, 199, 0.1);
    border-radius: 26px;
    box-shadow: 0 18px 35px rgba(16, 44, 79, 0.08);
    padding: 1.6rem;
    position: relative;
}

.plan-card.featured {
    background: linear-gradient(180deg, rgba(14, 107, 199, 0.12), rgba(255, 255, 255, 0.96));
    border-color: rgba(14, 107, 199, 0.24);
    transform: translateY(-6px);
}

.plan-name {
    color: var(--accent-deep);
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.plan-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.5rem;
    margin: 0.7rem 0 0.2rem;
}

.plan-speed {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.plan-list {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
    padding-left: 1.2rem;
}

.custom-plan-banner {
    align-items: center;
    background: linear-gradient(135deg, rgba(10, 79, 150, 0.96), rgba(15, 47, 87, 0.96));
    border-radius: 24px;
    color: #ffffff;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.1fr 1fr;
    margin-top: 1.5rem;
    padding: 1.5rem;
}

.custom-plan-banner .eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.custom-plan-banner h3 {
    color: #ffffff;
    margin: 0.35rem 0 0;
}

.custom-plan-banner p {
    color: rgba(255, 255, 255, 0.86);
    margin: 0;
}

.tariff-table {
    border-collapse: collapse;
    width: 100%;
}

.tariff-table th,
.tariff-table td {
    border-bottom: 1px solid var(--line);
    padding: 1rem;
    text-align: left;
}

.tariff-table thead th {
    background: #0f4f8d;
    color: #ffffff;
    font-size: 0.92rem;
    text-transform: uppercase;
}

.tariff-table tbody tr:nth-child(even) {
    background: rgba(14, 107, 199, 0.04);
}

.two-column {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1.3fr 1fr;
}

.feature-list,
.check-list {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
}

.notice-card {
    background: linear-gradient(180deg, rgba(216, 235, 255, 0.78), rgba(255, 255, 255, 0.94));
    border: 1px solid rgba(14, 107, 199, 0.16);
    border-radius: 24px;
    padding: 1.4rem;
}

.showcase-section {
    overflow: hidden;
}

.showcase-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    margin-top: 1.25rem;
}

.showcase-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 247, 255, 0.92));
    border: 1px solid rgba(14, 107, 199, 0.12);
    border-radius: 24px;
    overflow: hidden;
}

.showcase-card img {
    display: block;
    height: 280px;
    object-fit: cover;
    width: 100%;
}

.showcase-card.wide {
    grid-column: span 1;
}

.showcase-card.logo-card img {
    background: white;
    object-fit: contain;
    padding: 1.4rem;
}

.showcase-copy {
    padding: 1.25rem 1.3rem 1.4rem;
}

.showcase-copy h3 {
    margin: 0 0 0.55rem;
}

.showcase-copy p {
    margin: 0;
}

.compliance-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 1rem;
}

.process-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 1rem;
}

.process-step {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1.35rem;
}

.process-step strong {
    align-items: center;
    background: linear-gradient(135deg, #8ec7ff 0%, #d8ebff 100%);
    border-radius: 999px;
    color: var(--ink);
    display: inline-flex;
    font-size: 1rem;
    font-weight: 800;
    height: 2.2rem;
    justify-content: center;
    width: 2.2rem;
}

.process-step h3 {
    margin: 0.9rem 0 0.6rem;
}

.process-step p {
    margin: 0;
}

.compliance-card {
    border-radius: 24px;
    min-height: 220px;
    padding: 1.4rem;
}

.compliance-card.success {
    background: rgba(14, 107, 199, 0.08);
    border: 1px solid rgba(14, 107, 199, 0.18);
}

.compliance-card.warning {
    background: rgba(216, 235, 255, 0.55);
    border: 1px solid rgba(14, 107, 199, 0.18);
}

.compliance-card.neutral {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(14, 107, 199, 0.12);
}

.contact-banner {
    align-items: start;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1.2fr 1fr;
    margin-top: 1.5rem;
    padding: 2rem;
}

.contact-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.contact-grid > div {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1rem 1.1rem;
}

.contact-grid > div:hover,
.plan-card:hover,
.showcase-card:hover,
.process-step:hover,
.compliance-card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-grid strong {
    display: block;
    margin-top: 0.35rem;
}

.contact-link {
    color: var(--accent-deep);
    text-decoration: none;
}

.contact-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.whatsapp-float {
    align-items: center;
    background: linear-gradient(135deg, #16a34a 0%, #0f8f4f 100%);
    border-radius: 999px;
    bottom: 1.25rem;
    box-shadow: 0 16px 32px rgba(15, 143, 79, 0.28);
    color: #ffffff;
    display: inline-flex;
    gap: 0.7rem;
    padding: 0.8rem 1rem 0.8rem 0.85rem;
    position: fixed;
    right: 1.25rem;
    text-decoration: none;
    z-index: 30;
}

.whatsapp-float:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.whatsapp-float-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.whatsapp-float-icon svg {
    display: block;
    height: 1.1rem;
    width: 1.1rem;
}

.whatsapp-float-text {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.blazor-error-boundary {
    background: #b32121;
    border-radius: 16px;
    color: white;
    padding: 1rem 1.25rem;
}

.blazor-error-boundary::after {
    content: "Ha ocurrido un error.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-media-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hero-image-drift {
    from {
        transform: scale(1.02) translateX(0);
    }

    to {
        transform: scale(1.08) translateX(-1.5%);
    }
}

@media (max-width: 900px) {
    .hero-section,
    .plan-grid,
    .two-column,
    .showcase-grid,
    .process-grid,
    .compliance-grid,
    .contact-banner,
    .info-strip,
    .custom-plan-banner {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .content-section,
    .contact-banner {
        padding: 1.4rem;
    }

    .hero-image-banner,
    .hero-image-banner img {
        height: 230px;
        min-height: 230px;
    }

    .showcase-card img {
        height: 230px;
    }

    .hero-panel-mini-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .plan-card.featured {
        transform: none;
    }
}

@media (max-width: 640px) {
    .hero-copy h1 {
        max-width: none;
    }

    .tariff-table th,
    .tariff-table td {
        font-size: 0.92rem;
        padding: 0.8rem 0.75rem;
    }

    .whatsapp-float {
        bottom: 1rem;
        padding: 0.78rem 0.9rem;
        right: 1rem;
    }

    .hero-panel-mini-gallery img {
        height: 110px;
    }

    .site-nav {
        gap: 0.6rem;
    }

    .site-nav a {
        font-size: 0.9rem;
    }
}
