/* Configuración de iconos de Google Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Efecto de tarjetas de cristal (Frosted Glass Effect) */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Texto degradado premium para el título principal */
.hero-gradient-text {
    background: linear-gradient(135deg, #001836 0%, #00d1ff 100%);
    -webkit-background-clip: text;
    background-clip: text; /* Corrección para quitar la línea ondulada amarilla */
    -webkit-text-fill-color: transparent;
}

/* Sombras finas de estilo corporativo premium */
.luxury-shadow {
    box-shadow: 0 10px 30px rgba(0, 31, 63, 0.05);
}

/* Transiciones personalizadas para suavizar interacciones de escalado y hover */
.transition-cubic {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ajuste de anclaje para navegación con header sticky */
html {
    scroll-padding-top: 6rem;
}

section[id], div[id] {
    scroll-margin-top: 5rem;
}

/* Ajuste de anclaje para secciones bajo header sticky */
#cumplimiento {
    scroll-margin-top: 5rem;
}

.flash-title {
    position: relative;
    display: inline-block;
    transition: transform 0.35s ease, color 0.35s ease, text-shadow 0.35s ease;
    color: #001836;
}

.flash-title::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top center, rgba(86, 245, 248, 0.28), transparent 52%);
    opacity: 0;
    pointer-events: none;
    filter: blur(14px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    transform: scale(0.95) translateY(-4px);
}

.flash-title:hover,
.flash-title:focus-visible {
    transform: translateY(-3px);
    color: #003a55;
}

.flash-title:hover::before,
.flash-title:focus-visible::before {
    opacity: 1;
    transform: scale(1) translateY(-4px);
}

@keyframes flash-pulse {
    0%, 100% {
        text-shadow: 0 0 0 rgba(86, 245, 248, 0);
    }
    45% {
        text-shadow: 0 0 22px rgba(86, 245, 248, 0.32);
    }
}

.flash-title {
    animation: flash-pulse 5s ease-in-out infinite;
}

/* Animación hover para logos/iconos de tarjetas */
.hover-card:hover .icon-logo,
.hover-card:focus-within .icon-logo {
    transform: translateY(-6px) rotate(-8deg) scale(1.08);
}

.icon-logo {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.hover-card:hover .icon-logo,
.hover-card:focus-within .icon-logo {
    box-shadow: 0 18px 30px rgba(0, 24, 54, 0.12);
}

.hover-card:hover .icon-logo span,
.hover-card:focus-within .icon-logo span {
    transform: scale(1.12);
}

.icon-logo span {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 24, 54, 0.7);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    z-index: 60;
    padding: 1.5rem;
}

.table-modal.open {
    display: flex;
}

.table-modal-content {
    width: min(100%, 1180px);
    max-height: min(100%, 92vh);
    background: #ffffff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18);
    position: relative;
    display: flex;
    flex-direction: column;
}

.table-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 9999px;
    background: #001836;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.table-modal-header {
    padding: 1.5rem 2rem 0;
    border-bottom: 1px solid rgba(0, 24, 54, 0.08);
}

.table-modal-header h2 {
    margin: 0;
    font-size: 1.75rem;
    color: #001836;
}

.table-modal-body {
    overflow: auto;
    padding: 1.5rem 2rem 2rem;
}

.privacy-document {
    font-size: 1rem;
}

.privacy-document section + section {
    margin-top: 1.5rem;
}

.privacy-document h3 {
    margin-bottom: 0.35rem;
    color: #001836;
    font-size: 1.2rem;
    font-weight: 700;
}

.privacy-document h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.35rem;
    color: #001836;
    font-weight: 700;
}

.privacy-document ul,
.privacy-document ol {
    margin: 0.75rem 0 0;
    padding-left: 1.5rem;
}

.privacy-document ul {
    list-style: disc;
}

.privacy-document ol {
    list-style: decimal;
}

.privacy-document li + li {
    margin-top: 0.5rem;
}

.privacy-document address {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    font-style: normal;
}

.privacy-document a {
    color: #00696b;
    text-decoration: underline;
}

.privacy-table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
}

.privacy-table {
    min-width: 620px;
}

.privacy-table td:first-child {
    width: 10rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
}

.modal-input,
.modal-textarea,
.modal-select {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    color: #0f172a;
    font-size: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.modal-input:focus,
.modal-textarea:focus,
.modal-select:focus {
    outline: none;
    border-color: rgba(86, 245, 248, 0.7);
    box-shadow: 0 0 0 4px rgba(86, 245, 248, 0.16);
}

/* Botón flotante de caja (visible en todo momento) */
.floating-box-btn {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 70;
    width: 4rem;
    height: 4rem;
    border: none;
    border-radius: 9999px;
    background: linear-gradient(135deg, #001836 0%, #00696b 55%, #00d1ff 100%);
    box-shadow: 0 12px 30px rgba(0, 24, 54, 0.35), 0 0 0 4px rgba(86, 245, 248, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    perspective: 800px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.floating-box-btn:hover,
.floating-box-btn:focus-visible {
    transform: scale(1.1);
    box-shadow: 0 16px 40px rgba(0, 24, 54, 0.45), 0 0 0 6px rgba(86, 245, 248, 0.25);
}

.floating-box-btn__bubble {
    position: absolute;
    bottom: calc(100% + 0.9rem);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #001836;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    box-shadow: 0 8px 20px rgba(0, 24, 54, 0.2);
    animation: floating-box-bubble-bounce 2.8s ease-in-out infinite;
    pointer-events: none;
}

.floating-box-btn__bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: #ffffff;
}

@keyframes floating-box-bubble-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-6px);
    }
}

.floating-box-btn__cube {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: #ffffff;
    transform-style: preserve-3d;
    animation: floating-box-spin 4.5s ease-in-out infinite;
}

.floating-box-btn__cube .material-symbols-outlined {
    font-size: 2rem;
    font-variation-settings: 'FILL' 1, 'wght' 500;
}

.floating-box-btn:hover .floating-box-btn__cube {
    animation-play-state: paused;
}

@keyframes floating-box-spin {
    0% {
        transform: rotateY(0deg);
    }
    45% {
        transform: rotateY(360deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

@media (max-width: 640px) {
    .floating-box-btn {
        right: 1rem;
        bottom: 1rem;
        width: 3.5rem;
        height: 3.5rem;
    }
}

.modal-textarea {
    min-height: 140px;
    resize: vertical;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #001836;
    color: #ffffff;
    border: none;
    border-radius: 1rem;
    padding: 1rem 1.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.submit-button:hover,
.submit-button:focus-visible {
    transform: translateY(-2px);
    background: #002d5a;
    box-shadow: 0 16px 32px rgba(0, 24, 54, 0.16);
}

.form-status-success {
    color: #0f7e57;
}

.form-status-error {
    color: #b91c1c;
}

.cotizaciones-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.cotizaciones-table th,
.cotizaciones-table td {
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    text-align: left;
    vertical-align: top;
}

.cotizaciones-table thead th {
    background: #dbeafe;
    color: #001836;
    font-weight: 700;
}

.cotizaciones-table tbody tr:nth-child(odd) {
    background: #eff6ff;
}

.cotizaciones-table tbody tr:nth-child(even) {
    background: #f8fbff;
}

.cotizaciones-table tbody tr:hover {
    background: #dbeafe;
}

.cotizaciones-table td:first-child {
    width: 3rem;
    font-weight: 700;
}

.hero-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carousel-image {
    transition: opacity 0.3s ease, transform 0.45s ease;
}

.hero-carousel-image.is-switching {
    opacity: 0.65;
    transform: scale(1.02);
}

.hero-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(0, 24, 54, 0.15);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    color: #001836;
    font-size: 1.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 24, 54, 0.12);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-carousel-control:hover,
.hero-carousel-control:focus-visible {
    background: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.hero-carousel-control-prev {
    left: 0.25rem;
}

.hero-carousel-control-next {
    right: 0.25rem;
}

.hero-carousel-dots {
    margin-top: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
}

.hero-carousel-dot {
    width: 0.55rem;
    height: 0.55rem;
    border: 0;
    border-radius: 9999px;
    background: rgba(0, 24, 54, 0.24);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-carousel-dot.is-active {
    background: #001836;
    transform: scale(1.2);
}

@media (max-width: 639px) {
    .hero-carousel-control {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 1.1rem;
    }

    .hero-carousel-control-prev {
        left: -0.25rem;
    }

    .hero-carousel-control-next {
        right: -0.25rem;
    }
}
