/* Estilos Específicos del Proyecto Intermed */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9ff;
}

.glass-header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.gradient-text {
    background: linear-gradient(135deg, #001f3f 60%, #00c2cb 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.turq-glow:hover {
    box-shadow: 0 0 20px rgba(0, 194, 203, 0.4);
}

.dental-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    will-change: transform;
}

.dental-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0, 31, 63, 0.12);
    border-color: rgba(0, 194, 203, 0.35);
}

.dental-card.has-icon > div:first-child {
    transition: transform 0.35s ease, background-color 0.35s ease;
}

.dental-card.has-icon:hover > div:first-child {
    transform: scale(1.08) rotate(-3deg);
    background-color: #d8eefc;
}

.dental-card h3,
.dental-card p {
    transition: transform 0.35s ease, color 0.35s ease;
}

.dental-card:hover h3 {
    transform: translateY(-2px);
}

.dental-card:hover p {
    transform: translateY(-1px);
}

.hero-carousel {
    isolation: isolate;
}

.faq-list {
    display: grid;
    gap: 0;
}

.faq-item {
    padding: 1.5rem 0;
    border-top: 2px solid rgba(0, 31, 63, 0.35);
}

.faq-item:last-child {
    border-bottom: 2px solid rgba(0, 31, 63, 0.35);
}

.faq-item h3 {
    margin-bottom: 0.65rem;
}

.faq-item p {
    max-width: 74rem;
}

.table-modal {
    position: fixed;
    inset: 0;
    z-index: 105;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.table-modal.is-visible {
    display: flex;
}

.table-modal-content {
    position: relative;
    display: flex;
    width: min(100%, 48rem);
    max-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(196, 198, 207, 0.3);
    border-radius: 2rem;
    background: #f8f9ff;
    color: #0b1c30;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.table-modal-header {
    flex: none;
    padding: 1.5rem 4rem 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(196, 198, 207, 0.3);
    background: #ffffff;
}

.table-modal-header h2 {
    margin: 0;
    color: #001f3f;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.table-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid rgba(196, 198, 207, 0.5);
    border-radius: 50%;
    background: #ffffff;
    color: #001f3f;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.table-modal-close:hover {
    background: #eff4ff;
}

.table-modal-close:focus-visible {
    outline: 3px solid #00c2cb;
    outline-offset: 2px;
}

.table-modal-body {
    overflow-y: auto;
    padding: 1.5rem;
}

.privacy-document {
    color: #43474e;
}

.privacy-document section + section {
    margin-top: 1.5rem;
}

.privacy-document h3,
.privacy-document h4 {
    margin: 1.25rem 0 0.5rem;
    color: #001f3f;
    font-weight: 700;
    line-height: 1.4;
}

.privacy-document h3 {
    font-size: 1.125rem;
}

.privacy-document h4 {
    font-size: 1rem;
}

.privacy-document p,
.privacy-document address {
    margin: 0.5rem 0;
}

.privacy-document address {
    font-style: normal;
}

.privacy-document ul,
.privacy-document ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.privacy-document ul {
    list-style: disc;
}

.privacy-document ol {
    list-style: decimal;
}

.privacy-document a {
    color: #00545a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-table-wrapper {
    margin: 1rem 0;
    overflow-x: auto;
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.privacy-table th,
.privacy-table td {
    padding: 0.75rem;
    border: 1px solid rgba(116, 119, 127, 0.3);
    vertical-align: top;
}

.privacy-table th {
    background: #eff4ff;
    color: #001f3f;
    font-weight: 700;
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.55s ease;
}

.hero-carousel-slide.is-active {
    opacity: 1;
}

.floating-globe {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    z-index: 90;
    display: grid;
    width: 4.5rem;
    height: 4.5rem;
    place-items: center;
    overflow: visible;
    color: #d8eefc;
    background: #001f3f;
    border: 2px solid #00c2cb;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(0, 194, 203, 0.12), 0 10px 28px rgba(0, 31, 63, 0.3);
    isolation: isolate;
    perspective: 500px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-globe__message {
    position: absolute;
    right: -0.7rem;
    bottom: calc(100% + 0.8rem);
    padding: 0.55rem 0.8rem;
    color: #001f3f;
    background: #ffffff;
    border: 2px solid #00c2cb;
    border-radius: 0.8rem;
    box-shadow: 0 8px 20px rgba(0, 31, 63, 0.2);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
    animation: message-float 2.8s ease-in-out infinite;
}

.floating-globe__message::after {
    position: absolute;
    right: 1.25rem;
    bottom: -0.48rem;
    width: 0.8rem;
    height: 0.8rem;
    content: "";
    background: #ffffff;
    border-right: 2px solid #00c2cb;
    border-bottom: 2px solid #00c2cb;
    transform: rotate(45deg);
}

.floating-globe::before {
    position: absolute;
    inset: 16%;
    z-index: -1;
    content: "";
    background: #00c2cb;
    border-radius: 50%;
    opacity: 0.16;
    filter: blur(10px);
    animation: globe-pulse 2.4s ease-in-out infinite;
}

.floating-globe__icon {
    font-size: 2.7rem;
    line-height: 1;
    transform-style: preserve-3d;
    animation: globe-spin 5s linear infinite;
}

.floating-globe__orbit {
    position: absolute;
    width: 4.9rem;
    height: 1.45rem;
    border: 1px solid rgba(216, 238, 252, 0.8);
    border-radius: 50%;
    transform: rotate(-25deg);
    animation: globe-orbit 3.5s ease-in-out infinite;
    pointer-events: none;
}

.floating-globe:hover,
.floating-globe:focus-visible {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 0 0 7px rgba(0, 194, 203, 0.16), 0 14px 34px rgba(0, 31, 63, 0.36);
}

.floating-globe:focus-visible {
    outline: 3px solid #d8eefc;
    outline-offset: 4px;
}

@keyframes globe-spin {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

@keyframes globe-orbit {
    0%, 100% {
        transform: rotate(-25deg) scaleX(0.8);
        opacity: 0.45;
    }
    50% {
        transform: rotate(-25deg) scaleX(1.08);
        opacity: 1;
    }
}

@keyframes globe-pulse {
    0%, 100% {
        transform: scale(0.7);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.25);
        opacity: 0.32;
    }
}

@keyframes message-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-0.25rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-globe__icon,
    .floating-globe__orbit,
    .floating-globe::before,
    .floating-globe__message {
        animation: none;
    }
}

@media (max-width: 640px) {
    .table-modal {
        padding: 1rem 0.75rem;
    }

    .table-modal-content {
        border-radius: 1.25rem;
    }

    .table-modal-header,
    .table-modal-body {
        padding: 1.25rem;
    }

    .table-modal-header {
        padding-right: 3.75rem;
    }
}

#contact-modal.is-visible {
    display: flex;
}

#contact-status[data-state="success"] {
    background-color: rgba(0, 194, 203, 0.12);
    color: #00545a;
}

#contact-status[data-state="error"] {
    background-color: rgba(186, 26, 26, 0.12);
    color: #8e1717;
}

#contact-form input:invalid,
#contact-form select:invalid,
#contact-form textarea:invalid {
    box-shadow: none;
}

#contact-form.was-validated input:invalid,
#contact-form.was-validated select:invalid,
#contact-form.was-validated textarea:invalid {
    border-color: rgba(186, 26, 26, 0.65);
}