/* CSS Document - Versión Premium */
/* ============ ANIMACIONES ============ */
@keyframes glow {
    0% { transform: scale(1); box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
    50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.7); }
    100% { transform: scale(1); box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
}

@keyframes zoomOnce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes glow-text {
    0% { text-shadow: 0 0 5px rgba(255, 0, 0, 0.5); }
    50% { text-shadow: 0 0 15px rgba(255, 0, 0, 1); }
    100% { text-shadow: 0 0 5px rgba(255, 0, 0, 0.5); }
}

@keyframes brillo {
    0% { box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15); }
    50% { box-shadow: 0px 6px 15px rgba(255, 107, 0, 0.6); }
    100% { box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15); }
}

@keyframes shine {
    100% {
        transform: translateX(100%);
    }
}

/* ============ VARIABLES PREMIUM ============ */
:root {
    --deep-blue: #0A2463;
    --emerald: #3E92CC;
    --gold: #D4AF37;
    --light-bg: #F8F9FA;
    --dark-text: #2E2E2E;
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
    --gold-glow: 0 0 15px rgba(212, 175, 55, 0.7);
    --whatsapp-green: #25D366;
    --whatsapp-dark-green: #128C7E;
}

/* ============ ESTILOS GENERALES ============ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Montserrat:wght@300;400;600&family=Playfair+Display:wght@400;700&display=swap');

body {
    background-color: var(--light-bg);
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-size: 0.9rem; /* REDUCIDO en 10% (era 1rem) */
}

/* ============ HEADER PREMIUM ============ */
.logoheader {
    max-width: 9.6rem; /* REDUCIDO (era 12rem) */
    width: auto;
    height: auto;
    margin: 0 auto 0 1.2rem !important; /* REDUCIDO (era 1.5rem) */
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
    transition: all 0.3s;
    object-fit: contain;
}

.custom-navbar {
    background: linear-gradient(135deg, var(--deep-blue) 0%, #1E3B8A 100%) !important;
    padding-top: 0rem;
    padding-right: 1.6rem; /* REDUCIDO (era 2rem) */
    padding-left: 1.6rem; /* REDUCIDO (era 2rem) */
    padding-bottom: 0rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gold);
}

.custom-navbar .navbar-nav .nav-link {
    color: white !important;
    margin: 0 1.2rem; /* REDUCIDO (era 1.5rem) */
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
    font-size: 0.9rem; /* REDUCIDO */
}

.custom-navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.custom-navbar .navbar-nav .nav-link:hover::after {
    width: 100%;
}

.custom-navbar .navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}

.custom-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============ SEARCH PREMIUM ============ */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.44rem auto; /* REDUCIDO (era 1.8rem) */
    position: relative;
    width: 55%;
    max-width: 560px; /* REDUCIDO (era 700px) */
}

#searchInput {
    font-size: 0.88rem; /* REDUCIDO (era 1.1rem) */
    color: var(--dark-text);
    padding: 0.72rem 1.04rem; /* REDUCIDO (era 0.9rem 1.3rem) */
    border: 2px solid var(--emerald);
    border-radius: 50px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(62, 146, 204, 0.1);
}

#searchInput:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
    outline: none;
}

#searchInput::placeholder {
    color: #A0AEC0;
    font-weight: 500;
}

.search-icon {
    position: absolute;
    right: 1.2rem; /* REDUCIDO (era 1.5rem) */
    color: var(--emerald);
    font-size: 0.88rem; /* REDUCIDO (era 1.1rem) */
    cursor: pointer;
    transition: all 0.3s;
}

.search-icon:hover {
    color: var(--gold);
    transform: scale(1.1);
}

/* ============ CONTENEDORES RECTANGULARES ============ */
.main-container {
    position: relative;
    min-height: 100vh;
    max-width: 1600px; /* NUEVO: tamaño fijo para escritorio */
    margin: 0 auto; /* NUEVO: centrado */
}

.new-rectangle {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px; /* REDUCIDO (era 20px) */
    box-shadow: var(--shadow-lg);
    padding: 1.2rem; /* REDUCIDO (era 1.5rem) */
    margin-top: 4rem; /* REDUCIDO (era 5rem) */
    margin-right: 1.2rem; /* REDUCIDO (era 1.5rem) */
    margin-left: 8rem; /* REDUCIDO (era 10rem) */
    margin-bottom: 1.6rem; /* REDUCIDO (era 2rem) */
    width: 288px; /* REDUCIDO (era 360px) */
    transition: all 0.3s ease;
    position: absolute;
    z-index: 3;
}

#total-factor-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.96rem auto; /* REDUCIDO (era 1.2rem) */
    padding: 0.64rem; /* REDUCIDO (era 0.8rem) */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px; /* REDUCIDO (era 10px) */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    width: 80%;
    max-width: 224px; /* REDUCIDO (era 280px) */
}

#total-factor-container p {
    margin: 0;
    font-size: 0.8rem; /* REDUCIDO (era 1rem) */
    color: var(--deep-blue);
    font-weight: 600;
    text-align: center;
}

#total-uf-value {
    color: var(--gold);
    font-weight: 700;
    margin-left: 0.4rem; /* REDUCIDO (era 0.5rem) */
}

/* ============ MODAL DE ALERTA ============ */
.alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.alert-content {
    background: white;
    padding: 1.44rem; /* REDUCIDO (era 1.8rem) */
    border-radius: 12px; /* REDUCIDO (era 15px) */
    max-width: 304px; /* REDUCIDO (era 380px) */
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.alert-content h3 {
    color: var(--deep-blue);
    margin-bottom: 0.8rem; /* REDUCIDO (era 1rem) */
    font-family: 'Playfair Display', serif;
}

.alert-content p {
    color: var(--dark-text);
    margin-bottom: 1.2rem; /* REDUCIDO (era 1.5rem) */
}

.alert-close-btn {
    background: linear-gradient(to right, var(--emerald), #2AB7CA);
    color: white;
    border: none;
    padding: 0.56rem 1.28rem; /* REDUCIDO (era 0.7rem 1.6rem) */
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(62, 146, 204, 0.3);
}

.alert-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 146, 204, 0.4);
}

.left-rectangle {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px; /* REDUCIDO (era 20px) */
    box-shadow: var(--shadow-lg);
    padding: 1.2rem; /* REDUCIDO (era 1.5rem) */
    margin-top: 0.8rem; /* REDUCIDO (era 1rem) */
    margin-right: 1.2rem; /* REDUCIDO (era 1.5rem) */
    margin-left: 8rem; /* REDUCIDO (era 10rem) */
    margin-bottom: 1.6rem; /* REDUCIDO (era 2rem) */
    width: 288px; /* REDUCIDO (era 360px) */
    position: absolute;
    z-index: 2;
    transition: top 0.3s ease-in-out;
}

.left-rectangle2 {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px; /* REDUCIDO (era 20px) */
    box-shadow: var(--shadow-lg);
    padding: 1.2rem; /* REDUCIDO (era 1.5rem) */
    margin-top: 1.6rem; /* REDUCIDO (era 2rem) */
    margin-right: 1.2rem; /* REDUCIDO (era 1.5rem) */
    margin-left: 8rem; /* REDUCIDO (era 10rem) */
    margin-bottom: 1.6rem; /* REDUCIDO (era 2rem) */
    width: 288px; /* REDUCIDO (era 360px) */
    position: absolute;
    z-index: 2;
    transition: top 0.3s ease-in-out;
}

.new-rectangle .text-container,
.left-rectangle .title-container1,
.left-rectangle2 .title-container1,
.left-rectangle-preferente .title-container1,
.left-rectangle3 .title-container1,
.left-rectangle-coverage .title-container1 {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--emerald) 100%);
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.04rem; /* REDUCIDO (era 1.3rem) */
    text-align: center;
    padding: 0.96rem; /* REDUCIDO (era 1.2rem) */
    margin: 0 auto 1.2rem auto; /* REDUCIDO (era 1.5rem) */
    border-radius: 12px; /* REDUCIDO (era 15px) */
    box-shadow: var(--shadow-lg);
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    width: fit-content;
    max-width: 193%;
}

.new-rectangle .text-container h2,
.left-rectangle .title-container1 h2,
.left-rectangle2 .title-container1 h2,
.left-rectangle-preferente .title-container1 h2,
.left-rectangle3 .title-container1 h2,
.left-rectangle-coverage .title-container1 h2 {
    margin: 0;
    font-size: inherit;
    font-weight: 700;
}

.new-rectangle .text-container::after,
.left-rectangle .title-container1::after,
.left-rectangle2 .title-container1::after,
.left-rectangle-preferente .title-container1::after,
.left-rectangle3 .title-container1::after,
.left-rectangle-coverage .title-container1::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                rgba(255,255,255,0) 0%, 
                rgba(255,255,255,0.2) 50%, 
                rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    animation: shine 3s infinite;
}

.rectangle {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px; /* REDUCIDO (era 20px) */
    box-shadow: var(--shadow-lg);
    padding: 1.6rem; /* REDUCIDO (era 2rem) */
    margin: 1.44rem auto; /* REDUCIDO (era 1.8rem) */
    width: 58%;
    max-width: 960px; /* REDUCIDO (era 1200px) */
    position: relative;
    margin-left: 30rem; /* REDUCIDO (era 37.5rem) */
}

.gray-rectangle {
    background: rgba(248, 249, 250, 0.9);
    border-radius: 16px; /* REDUCIDO (era 20px) */
    box-shadow: var(--shadow-lg);
    padding: 1.2rem; /* REDUCIDO (era 1.5rem) */
    margin: 1.44rem auto; /* REDUCIDO (era 1.8rem) */
    width: 100%;
}

.gray-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem; /* REDUCIDO (era 1.5rem) */
    justify-content: space-between;
}

/* ============ TEXT CONTAINER PREMIUM ============ */
.text-container {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--emerald) 100%);
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem; /* REDUCIDO (era 3.5rem) */
    text-align: center;
    padding: 2rem; /* REDUCIDO (era 2.5rem) */
    margin: 1.44rem auto; /* REDUCIDO (era 1.8rem) */
    border-radius: 12px; /* REDUCIDO (era 15px) */
    box-shadow: var(--shadow-lg);
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: none;
}

.text-container h3 {
    font-size: 1.04rem; /* REDUCIDO (era 1.3rem) */
    margin-top: 0.64rem; /* REDUCIDO (era 0.8rem) */
    color: rgba(255,255,255,0.9);
    font-weight: 400;
}

/* ============ ESTILOS PARA TÍTULOS DE SECCIÓN ============ */
.section-title {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--emerald) 100%);
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.28rem; /* REDUCIDO (era 1.6rem) */
    text-align: center;
    padding: 0.8rem 1.44rem; /* REDUCIDO (era 1rem 1.8rem) */
    margin: 1.44rem auto; /* REDUCIDO (era 1.8rem) */
    border-radius: 12px; /* REDUCIDO (era 15px) */
    box-shadow: var(--shadow-lg);
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: none;
    width: fit-content;
    max-width: 90%;
    position: relative;
    overflow: hidden;
}

.section-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                rgba(255,255,255,0) 0%, 
                rgba(255,255,255,0.2) 50%, 
                rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    animation: shine 3s infinite;
}

.section-title small {
    font-size: 0.76rem; /* REDUCIDO (era 0.95rem) */
    display: block;
    margin-top: 0.4rem; /* REDUCIDO (era 0.5rem) */
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
}

/* ============ FORMULARIOS PREMIUM ============ */
.input-group {
    margin: 0.96rem auto; /* REDUCIDO (era 1.2rem) */
    width: 50%;
}

.edad-label,
.carga-label {
    font-weight: 600;
    color: var(--deep-blue);
    margin-bottom: 0.4rem; /* REDUCIDO (era 0.5rem) */
    display: block;
    font-size: 0.9rem; /* REDUCIDO */
}

input[type="number"],
input[type="text"] {
    width: 100%;
    padding: 0.56rem 0.72rem; /* REDUCIDO (era 0.7rem 0.9rem) */
    border: 2px solid #E2E8F0;
    border-radius: 6px; /* REDUCIDO (era 8px) */
    font-size: 0.76rem; /* REDUCIDO (era 0.95rem) */
    transition: all 0.3s;
    background: rgba(255,255,255,0.8);
}

input[type="number"]:focus,
input[type="text"]:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(62, 146, 204, 0.2);
    outline: none;
}

/* ============ CHECKBOXES PREMIUM ============ */
.carga-checkbox,
.isapre-checkbox,
.zone-checkbox {
    width: 14px; /* REDUCIDO (era 18px) */
    height: 14px; /* REDUCIDO (era 18px) */
    border: 2px solid var(--emerald);
    border-radius: 5px; /* REDUCIDO (era 6px) */
    appearance: none;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    margin-right: 0.4rem; /* REDUCIDO (era 0.5rem) */
}

.carga-checkbox:checked,
.isapre-checkbox:checked,
.zone-checkbox:checked {
    background-color: var(--emerald);
    border-color: var(--emerald);
}

.carga-checkbox:checked::after,
.isapre-checkbox:checked::after,
.zone-checkbox:checked::after {
    /* Contenido vacío - solo mostrar el color */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--emerald);
    border-radius: 3px;
}

/* Estilos para el grupo del toggle (checkbox carga) */
.toggle-group {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.96rem auto; /* REDUCIDO (era 1.2rem) */
    width: 100%;
}

/* Ajustes para la etiqueta del checkbox */
.carga-label {
    margin-left: 0.4rem; /* REDUCIDO (era 0.5rem) */
    color: var(--deep-blue);
    font-weight: 600;
    cursor: pointer;
}

/* ============ BOTONES DE PLAN - ESTILOS RESPONSIVOS ============ */
.plan-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.56rem; /* REDUCIDO (era 0.7rem) */
    margin-top: 0.96rem; /* REDUCIDO (era 1.2rem) */
    width: 100%;
}

.top-buttons {
    display: flex;
    justify-content: center;
    gap: 0.56rem; /* REDUCIDO (era 0.7rem) */
    margin-bottom: 0;
    flex-wrap: wrap;
    width: 100%;
}

/* Botones base - mismos estilos para todos */
.download-button,
.contact-button,
.whatsapp-button {
    background: linear-gradient(to right, var(--emerald), #2AB7CA);
    color: white;

    border: none;
    padding: 0.56rem 1.04rem; /* REDUCIDO (era 0.7rem 1.3rem) */
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(62, 146, 204, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem; /* REDUCIDO (era 0.85rem) */
    min-width: 104px; /* REDUCIDO (era 130px) */
    text-align: center;
}

/* Estados hover para todos los botones */
.download-button:hover,
.contact-button:hover,
.whatsapp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(62, 146, 204, 0.4);
}

/* Colores específicos para cada botón */
.download-button {
    background: linear-gradient(to right, #FF6836, #FF8E53);
}

.contact-button {
    background: linear-gradient(to right, var(--emerald), #2AB7CA);
}

.whatsapp-button {
    background: linear-gradient(to right, var(--whatsapp-green), var(--whatsapp-dark-green));
    min-width: 144px; /* REDUCIDO (era 180px) */
    width: 100%;
    max-width: 100%;
}

.whatsapp-button:hover {
    background: linear-gradient(to right, var(--whatsapp-dark-green), var(--whatsapp-green));
}

.agregar-beneficiario-btn {
    display: block;
    width: fit-content;
    margin: 0.96rem auto; /* REDUCIDO (era 1.2rem) */
    padding: 0.56rem 1.44rem; /* REDUCIDO (era 0.7rem 1.8rem) */
    background: linear-gradient(to right, var(--emerald), #2AB7CA);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(62, 146, 204, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    font-size: 0.8rem; /* REDUCIDO */
}

.agregar-beneficiario-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(62, 146, 204, 0.4);
}

/* ============ LISTA BENEFICIARIOS ============ */
#beneficiarios-list {
    list-style: none;
    width: 100%;
    max-width: 280px; /* REDUCIDO (era 350px) */
    margin: 1.2rem auto; /* REDUCIDO (era 1.5rem) */
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Cada item de beneficiario */
#beneficiarios-list li {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.64rem 0.96rem; /* REDUCIDO (era 0.8rem 1.2rem) */
    margin-bottom: 0.64rem; /* REDUCIDO (era 0.8rem) */
    border-radius: 8px; /* REDUCIDO (era 10px) */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--emerald);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    width: 100%;
    min-width: 224px; /* REDUCIDO (era 280px) */
    max-width: 256px; /* REDUCIDO (era 320px) */
    box-sizing: border-box;
    white-space: nowrap;
}

#beneficiarios-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.beneficiarios-container {
    width: 90% !important;
    max-width: 256px !important; /* REDUCIDO (era 320px) */
    margin: 0.8rem auto !important; /* REDUCIDO (era 1rem) */
}

.beneficiario-item {
    min-width: 224px !important; /* REDUCIDO (era 280px) */
    white-space: nowrap !important;
    padding: 0.56rem 0.96rem !important; /* REDUCIDO (era 0.7rem 1.2rem) */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.delete-button {
    background: linear-gradient(to right, #E53E3E, #F56565);
    color: white;
    border: none;
    width: 18px; /* REDUCIDO (era 22px) */
    height: 18px; /* REDUCIDO (era 22px) */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 0.64rem !important; /* REDUCIDO (era 0.8rem) */
    flex-shrink: 0 !important;
    font-size: 0.64rem; /* REDUCIDO (era 0.8rem) */
}

.delete-button:hover {
    transform: rotate(90deg) scale(1.1);
}

/* ============ PLANES Y PRECIOS ============ */
.plan-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0.8rem; /* REDUCIDO (era 1rem) */
}

.logo {
    width: 56px; /* REDUCIDO (era 70px) */
    height: 56px; /* REDUCIDO (era 70px) */
    object-fit: contain;
    margin-bottom: 0.64rem; /* REDUCIDO (era 0.8rem) */
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1));
}

.plan-name {
    font-size: 1.04rem; /* REDUCIDO (era 1.3rem) */
    color: var(--deep-blue);
    font-weight: 700;
    margin-bottom: 0.4rem; /* REDUCIDO (era 0.5rem) */
    font-family: 'Playfair Display', serif;
}

.additional-info {
    font-size: 0.68rem; /* REDUCIDO (era 0.85rem) */
    color: #4A5568;
    margin-bottom: 0.64rem; /* REDUCIDO (era 0.8rem) */
}

.plan-price-container {
    background: white;
    border-radius: 10px; /* REDUCIDO (era 12px) */
    border: 3px solid var(--gold);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 1.04rem; /* REDUCIDO (era 1.3rem) */
    text-align: center;
    animation: brillo 2s infinite alternate;
    margin: 1.2rem auto; /* REDUCIDO (era 1.5rem) */
    max-width: 304px; /* REDUCIDO (era 380px) */
}

.plan-price {
    font-size: 1.44rem; /* REDUCIDO (era 1.8rem) */
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.4rem; /* REDUCIDO (era 0.5rem) */
}

.plan-price-uf {
    font-size: 0.88rem; /* REDUCIDO (era 1.1rem) */
    color: var(--deep-blue);
    font-weight: 600;
}

.hospital-label,
.ambulatory-label {
    font-size: 0.88rem; /* REDUCIDO (era 1.1rem) */
    color: var(--deep-blue);
    font-weight: 600;
    margin: 0 0 0.64rem 0; /* REDUCIDO (era 0.8rem) */
    padding-bottom: 0.4rem; /* REDUCIDO (era 0.5rem) */
    border-bottom: 2px solid #EDF2F7;
}

.hospital-info,
.ambulatory-info {
    font-size: 0.72rem; /* REDUCIDO (era 0.9rem) */
    color: #4A5568;
    line-height: 1.6;
    margin: 0.4rem 0; /* REDUCIDO (era 0.5rem) */
    flex: 1;
    min-width: 192px; /* REDUCIDO (era 240px) */
}

/* ============ NUEVOS ESTILOS PARA LISTAS DE CLÍNICAS ============ */
.hospital-coverage,
.ambulatory-coverage {
    list-style-type: none;
    padding-left: 0;
    margin: 0.4rem 0; /* REDUCIDO (era 0.5rem) */
}

/* CORRECCIÓN: Forzar que las clínicas se muestren una debajo de otra */
.hospital-coverage li,
.ambulatory-coverage li {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-bottom: 0.32rem !important; /* REDUCIDO (era 0.4rem) */
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    font-size: 0.68rem; /* REDUCIDO (era 0.85rem) */
}

.hospital-coverage li:last-child,
.ambulatory-coverage li:last-child {
    margin-bottom: 0;
}

.highlight-clinic {
    color: var(--gold);
    font-weight: 700;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
    animation: zoomOnce 2s ease-in-out, glow-gold-intense 1.2s infinite alternate;
    display: inline-block;
    position: relative;
    padding: 0.16rem 0.4rem; /* REDUCIDO (era 0.2rem 0.5rem) */
    border-radius: 4px;
}

@keyframes glow-gold-intense {
    0% { 
        text-shadow: 0 0 8px rgba(212, 175, 55, 0.5),
                     0 0 2px rgba(255, 255, 255, 0.8);
    }
    50% {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.8),
                     0 0 5px rgba(255, 255, 255, 0.9);
    }
    100% { 
        text-shadow: 0 0 12px rgba(212, 175, 55, 0.7),
                     0 0 3px rgba(255, 255, 255, 0.85);
    }
}

/* ============ PAGINATION CONTAINER ============ */
#pagination-container {
    display: flex;
    justify-content: center;
    margin: 1.2rem auto; /* REDUCIDO (era 1.5rem) */
    padding: 0.64rem; /* REDUCIDO (era 0.8rem) */
    clear: both;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.24rem; /* REDUCIDO (era 0.3rem) */
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.4rem; /* REDUCIDO (era 0.5rem) */
    color: var(--deep-blue);
    user-select: none;
}

.pagination-button {
    padding: 0.4rem 0.72rem; /* REDUCIDO (era 0.5rem 0.9rem) */
    background: linear-gradient(to right, var(--emerald), #2AB7CA);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem; /* REDUCIDO (era 0.85rem) */
    min-width: 29px; /* REDUCIDO (era 36px) */
    text-align: center;
    box-shadow: 0 4px 15px rgba(62, 146, 204, 0.3);
}

.pagination-button:hover:not(:disabled) {
    background: linear-gradient(to right, var(--deep-blue), var(--emerald));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 146, 204, 0.4);
}

.pagination-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.pagination-button.active {
    background: linear-gradient(to right, var(--gold), #D4AF37);
    font-weight: bold;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
}

.page-numbers {
    display: flex;
    gap: 0.4rem; /* REDUCIDO (era 0.5rem) */
    flex-wrap: wrap;
    justify-content: center;
}

/* ============ MODAL PREMIUM ============ */
.modal-premium {
    width: 90%;
    max-width: 464px; /* REDUCIDO (era 580px) */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px; /* REDUCIDO (era 20px) */
    padding: 0;
    z-index: 1050;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-content-premium {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    border-radius: 16px; /* REDUCIDO (era 20px) */
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border: none;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.modal-header-premium {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--emerald) 100%);
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.04rem; /* REDUCIDO (era 1.3rem) */
    text-align: center;
    padding: 1.04rem; /* REDUCIDO (era 1.3rem) */
    border-radius: 16px 16px 0 0; /* REDUCIDO (era 20px) */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.modal-body-premium {
    padding: 1.2rem; /* REDUCIDO (era 1.5rem) */
    color: var(--dark-text);
    line-height: 1.6;
    overflow-y: auto;
    flex-grow: 1;
    max-height: calc(90vh - 104px); /* REDUCIDO (era 130px) */
    scrollbar-width: thin;
    scrollbar-color: var(--emerald) rgba(0,0,0,0.1);
}

/* Personalización de scrollbar para Chrome/Edge/Safari */
.modal-body-premium::-webkit-scrollbar {
    width: 8px;
}

.modal-body-premium::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

.modal-body-premium::-webkit-scrollbar-thumb {
    background-color: var(--emerald);
    border-radius: 4px;
}

.modal-body-premium::-webkit-scrollbar-thumb:hover {
    background-color: var(--deep-blue);
}

.modal-close-premium {
    position: absolute;
    top: 0.64rem; /* REDUCIDO (era 0.8rem) */
    right: 0.64rem; /* REDUCIDO (era 0.8rem) */
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 22px; /* REDUCIDO (era 28px) */
    height: 22px; /* REDUCIDO (era 28px) */
    border-radius: 50%;
    font-size: 0.88rem; /* REDUCIDO (era 1.1rem) */
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-actions-premium {
    display: flex;
    justify-content: center;
    gap: 0.64rem; /* REDUCIDO (era 0.8rem) */
    padding: 1.04rem; /* REDUCIDO (era 1.3rem) */
    background: rgba(248, 249, 250, 0.9);
    border-radius: 0 0 16px 16px; /* REDUCIDO (era 20px) */
    flex-shrink: 0;
}

.modal-btn-premium {
    background: linear-gradient(to right, var(--emerald), #2AB7CA);
    color: white;
    border: none;
    padding: 0.56rem 1.28rem; /* REDUCIDO (era 0.7rem 1.6rem) */
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(62, 146, 204, 0.3);
    min-width: 112px; /* REDUCIDO (era 140px) */
    text-align: center;
    font-size: 0.8rem; /* REDUCIDO */
}

.modal-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 146, 204, 0.4);
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1040;
    display: none;
}

/* ============ SORT CONTAINER ============ */
.sort-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.64rem auto; /* REDUCIDO (era 0.8rem) */
    gap: 0.56rem; /* REDUCIDO (era 0.7rem) */
    width: 55%;
    max-width: 560px; /* REDUCIDO (era 700px) */
}

.sort-container label {
    font-weight: 600;
    color: var(--deep-blue);
    white-space: nowrap;
    font-size: 0.76rem; /* REDUCIDO (era 0.95rem) */
}

#sort-select {
    padding: 0.56rem 0.72rem; /* REDUCIDO (era 0.7rem 0.9rem) */
    border: 2px solid var(--emerald);
    border-radius: 6px; /* REDUCIDO (era 8px) */
    font-size: 0.76rem; /* REDUCIDO (era 0.95rem) */
    background-color: white;
    color: var(--dark-text);
    cursor: pointer;
    transition: all 0.3s;
    flex-grow: 1;
    max-width: 224px; /* REDUCIDO (era 280px) */
}

#sort-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
    outline: none;
}

/* ============ RECTÁNGULO DE CLÍNICAS PREFERENTES ============ */
.left-rectangle-preferente {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px; /* REDUCIDO (era 20px) */
    box-shadow: var(--shadow-lg);
    padding: 1.2rem; /* REDUCIDO (era 1.5rem) */
    margin-top: 2.4rem; /* REDUCIDO (era 3rem) */
    margin-right: 1.2rem; /* REDUCIDO (era 1.5rem) */
    margin-left: 8rem; /* REDUCIDO (era 10rem) */
    margin-bottom: 1.6rem; /* REDUCIDO (era 2rem) */
    width: 288px; /* REDUCIDO (era 360px) */
    position: absolute;
    z-index: 2;
    transition: top 0.3s ease-in-out;
}

.left-rectangle-preferente .title-container1 {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--emerald) 100%);
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.04rem; /* REDUCIDO (era 1.3rem) */
    text-align: center;
    padding: 0.96rem; /* REDUCIDO (era 1.2rem) */
    margin: 0 auto 1.2rem auto; /* REDUCIDO (era 1.5rem) */
    border-radius: 12px; /* REDUCIDO (era 15px) */
    box-shadow: var(--shadow-lg);
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    width: fit-content;
    max-width: 193%;
}

.left-rectangle-preferente .title-container1 h2 {
    margin: 0;
    font-size: inherit;
    font-weight: 700;
}

.left-rectangle-preferente .title-container1::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                rgba(255,255,255,0) 0%, 
                rgba(255,255,255,0.2) 50%, 
                rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    animation: shine 3s infinite;
}

/* Contenedor de clínicas preferentes */
.clinica-preferente-container {
    margin-bottom: 1.2rem; /* REDUCIDO (era 1.5rem) */
}

/* Cada item de clínica preferente */
.clinica-preferente-item {
    margin-bottom: 0.96rem; /* REDUCIDO (era 1.2rem) */
    padding-bottom: 0.8rem; /* REDUCIDO (era 1rem) */
    border-bottom: 1px solid #E2E8F0;
}

.clinica-preferente-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Etiqueta de clínica */
.clinica-preferente-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.48rem; /* REDUCIDO (era 0.6rem) */
}

.clinica-number {
    font-weight: 600;
    color: var(--deep-blue);
    font-size: 0.76rem; /* REDUCIDO (era 0.95rem) */
    margin-right: 0.4rem; /* REDUCIDO (era 0.5rem) */
}

.clinica-obligatorio {
    font-size: 0.64rem; /* REDUCIDO (era 0.8rem) */
    color: #E53E3E;
    font-weight: 500;
}

.clinica-opcional {
    font-size: 0.64rem; /* REDUCIDO (era 0.8rem) */
    color: #4A5568;
    font-weight: 500;
}

/* Select de clínica preferente */
.clinica-preferente-select {
    width: 100%;
    padding: 0.56rem 0.72rem; /* REDUCIDO (era 0.7rem 0.9rem) */
    border: 2px solid #E2E8F0;
    border-radius: 6px; /* REDUCIDO (era 8px) */
    font-size: 0.72rem; /* REDUCIDO (era 0.9rem) */
    background-color: white;
    color: var(--dark-text);
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233E92CC' d='M6 8.5L1.5 4l1-1L6 6.5 9.5 3l1 1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.clinica-preferente-select:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(62, 146, 204, 0.2);
    outline: none;
}

.clinica-preferente-select option {
    padding: 0.4rem; /* REDUCIDO (era 0.5rem) */
    font-size: 0.72rem; /* REDUCIDO (era 0.9rem) */
}

/* Botón para agregar clínica */
.agregar-clinica-btn {
    display: block;
    width: 100%;
    margin: 1.2rem auto 0.64rem auto; /* REDUCIDO (era 1.5rem 0.8rem) */
    padding: 0.56rem; /* REDUCIDO (era 0.7rem) */
    background: linear-gradient(to right, var(--emerald), #2AB7CA);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(62, 146, 204, 0.3);
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem; /* REDUCIDO (era 0.9rem) */
}

.agregar-clinica-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 146, 204, 0.4);
}

.agregar-clinica-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.agregar-clinica-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Contador de clínicas */
.clinica-counter {
    text-align: center;
    font-size: 0.68rem; /* REDUCIDO (era 0.85rem) */
    color: var(--dark-text);
    margin-top: 0.64rem; /* REDUCIDO (era 0.8rem) */
    padding: 0.4rem; /* REDUCIDO (era 0.5rem) */
    background: rgba(248, 249, 250, 0.9);
    border-radius: 6px;
    font-weight: 500;
}

#clinica-count {
    color: var(--emerald);
    font-weight: 700;
}

/* Botón de eliminar clínica */
.eliminar-clinica-btn {
    display: block;
    width: 100%;
    margin-top: 0.4rem; /* REDUCIDO (era 0.5rem) */
    padding: 0.4rem; /* REDUCIDO (era 0.5rem) */
    background: linear-gradient(to right, #E53E3E, #F56565);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.64rem; /* REDUCIDO (era 0.8rem) */
    font-family: 'Montserrat', sans-serif;
}

.eliminar-clinica-btn:hover {
    background: linear-gradient(to right, #C53030, #E53E3E);
    transform: translateY(-1px);
}

/* ============ RECTÁNGULO DE FILTRO DE COBERTURA ============ */
.left-rectangle-coverage {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px; /* REDUCIDO (era 20px) */
    box-shadow: var(--shadow-lg);
    padding: 1.2rem; /* REDUCIDO (era 1.5rem) */
    margin-top: 3.2rem; /* REDUCIDO (era 4rem) */
    margin-right: 1.2rem; /* REDUCIDO (era 1.5rem) */
    margin-left: 8rem; /* REDUCIDO (era 10rem) */
    margin-bottom: 1.6rem; /* REDUCIDO (era 2rem) */
    width: 288px; /* REDUCIDO (era 360px) */
    position: absolute;
    z-index: 2;
    transition: top 0.3s ease-in-out;
}

.left-rectangle-coverage .title-container1 {
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--emerald) 100%);
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.04rem; /* REDUCIDO (era 1.3rem) */
    text-align: center;
    padding: 0.96rem; /* REDUCIDO (era 1.2rem) */
    margin: 0 auto 1.2rem auto; /* REDUCIDO (era 1.5rem) */
    border-radius: 12px; /* REDUCIDO (era 15px) */
    box-shadow: var(--shadow-lg);
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    width: fit-content;
    max-width: 193%;
}

.left-rectangle-coverage .title-container1 h2 {
    margin: 0;
    font-size: inherit;
    font-weight: 700;
}

.left-rectangle-coverage .title-container1::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                rgba(255,255,255,0) 0%, 
                rgba(255,255,255,0.2) 50%, 
                rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    animation: shine 3s infinite;
}

/* Grupos de filtros de cobertura */
.coverage-filter-group {
    margin-bottom: 1.2rem; /* REDUCIDO (era 1.5rem) */
}

.coverage-subtitle {
    font-weight: 600;
    color: var(--deep-blue);
    margin-bottom: 0.64rem; /* REDUCIDO (era 0.8rem) */
    font-size: 0.8rem; /* REDUCIDO (era 1rem) */
    text-align: center;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 0.4rem; /* REDUCIDO (era 0.5rem) */
}

/* Contenedor de botones de cobertura - DISEÑO COMPACTO */
.coverage-buttons-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.32rem; /* REDUCIDO (era 0.4rem) */
    margin-bottom: 0.4rem; /* REDUCIDO (era 0.5rem) */
}

/* Labels de cobertura */
.coverage-buttons-container label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 249, 250, 0.9);
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 0.32rem 0.24rem; /* REDUCIDO (era 0.4rem 0.3rem) */
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.68rem; /* REDUCIDO (era 0.85rem) */
    color: var(--dark-text);
    text-align: center;
    min-height: 26px; /* REDUCIDO (era 32px) */
    box-sizing: border-box;
}

.coverage-buttons-container label:hover {
    background: rgba(232, 240, 254, 0.9);
    border-color: var(--emerald);
}

/* Checkboxes de cobertura */
.coverage-checkbox {
    width: 11px; /* REDUCIDO (era 14px) */
    height: 11px; /* REDUCIDO (era 14px) */
    border: 2px solid var(--emerald);
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 0.32rem; /* REDUCIDO (era 0.4rem) */
    flex-shrink: 0;
    position: relative;
}

.coverage-checkbox:checked {
    background-color: var(--emerald);
    border-color: var(--emerald);
}

/* ELIMINAR LOS SIGNOS DE INTERROGACIÓN - SOLO DEJAR EL COLOR */
.coverage-checkbox:checked::after {
    /* Contenido vacío - solo mostrar el color */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--emerald);
    border-radius: 2px;
}

/* Botón para limpiar filtros de cobertura */
.reset-coverage-btn {
    display: block;
    width: 100%;
    margin-top: 0.8rem; /* REDUCIDO (era 1rem) */
    padding: 0.48rem; /* REDUCIDO (era 0.6rem) */
    background: linear-gradient(to right, #718096, #A0AEC0);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.72rem; /* REDUCIDO (era 0.9rem) */
    font-family: 'Montserrat', sans-serif;
}

.reset-coverage-btn:hover {
    background: linear-gradient(to right, #4A5568, #718096);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============ BOTÓN FLOTANTE WHATSAPP ============ */
.whatsapp-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 35px;
    right: 35px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.7);
}

.whatsapp-float img {
    width: 36px;
    height: 36px;
}

/* ============ ESTILOS PARA INPUT DE CLÍNICAS CON AUTOCOMPLETADO ============ */
.clinica-input-wrapper {
    position: relative;
    width: 100%;
}

.clinica-preferente-input {
    width: 100%;
    padding: 0.56rem 0.72rem; /* REDUCIDO (era 0.7rem 0.9rem) */
    border: 2px solid #E2E8F0;
    border-radius: 6px; /* REDUCIDO (era 8px) */
    font-size: 0.72rem; /* REDUCIDO (era 0.9rem) */
    background-color: white;
    color: var(--dark-text);
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

.clinica-preferente-input:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(62, 146, 204, 0.2);
    outline: none;
}

.clinica-preferente-input::placeholder {
    color: #A0AEC0;
    font-style: italic;
}

/* Estilos para las sugerencias de autocompletado */
.clinica-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 6px; /* REDUCIDO (era 8px) */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 2px;
}

.clinica-suggestion-item {
    padding: 0.56rem 0.8rem; /* REDUCIDO (era 0.7rem 1rem) */
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.72rem; /* REDUCIDO (era 0.9rem) */
    color: var(--dark-text);
    border-bottom: 1px solid #F1F5F9;
}

.clinica-suggestion-item:last-child {
    border-bottom: none;
}

.clinica-suggestion-item:hover {
    background-color: rgba(62, 146, 204, 0.1);
    color: var(--emerald);
}

.clinica-suggestion-item.active {
    background-color: rgba(62, 146, 204, 0.2);
    color: var(--deep-blue);
    font-weight: 600;
}

/* Estilos para el datalist nativo */
.clinica-preferente-input::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
}

/* ESTILOS UNIFICADOS PARA BOTONES X (BENEFICIARIOS Y CLÍNICAS) */
.delete-button, .clear-clinica-btn {
    background: #e74c3c !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 19px !important; /* REDUCIDO (era 24px) */
    height: 19px !important; /* REDUCIDO (era 24px) */
    cursor: pointer !important;
    font-size: 11px !important; /* REDUCIDO (era 14px) */
    font-weight: bold !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
}

.delete-button:hover, .clear-clinica-btn:hover {
    background: #c0392b !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.delete-button:active, .clear-clinica-btn:active {
    transform: translateY(-50%) scale(0.95) !important;
}

/* Para los botones X de clínicas */
.clinica-input-wrapper {
    position: relative !important;
}

.clinica-input-wrapper .clear-clinica-btn {
    position: absolute !important;
    right: 8px !important; /* REDUCIDO (era 10px) */
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ============ CAMPOS DE FORMULARIO INDIVIDUALES ============ */

/* Contenedor para campos de contacto */
.contact-fields-container {
    display: flex;
    flex-direction: column;
    gap: 0.96rem; /* REDUCIDO (era 1.2rem) */
    margin: 1.2rem auto; /* REDUCIDO (era 1.5rem) */
    width: 100%;
    max-width: 464px; /* REDUCIDO (era 580px) */
}

/* Campos individuales - UNO DEBAJO DEL OTRO */
.name-field,
.email-field,
.phone-field,
.message-field {
    margin-bottom: 0.64rem; /* REDUCIDO (era 0.8rem) */
    width: 100%;
}

/* Etiquetas específicas */
.name-label,
.email-label,
.phone-label,
.message-label {
    font-weight: 600;
    color: var(--deep-blue);
    margin-bottom: 0.48rem; /* REDUCIDO (era 0.6rem) */
    display: block;
    font-size: 0.76rem; /* REDUCIDO (era 0.95rem) */
    width: 100%;
}

/* Campos de entrada específicos - 100% DE ANCHO */
.name-input,
.email-input,
.phone-input {
    width: 100%;
    padding: 0.56rem 0.72rem; /* REDUCIDO (era 0.7rem 0.9rem) */
    border: 2px solid #E2E8F0;
    border-radius: 6px; /* REDUCIDO (era 8px) */
    font-size: 0.76rem; /* REDUCIDO (era 0.95rem) */
    transition: all 0.3s;
    background: rgba(255,255,255,0.8);
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

.name-input:focus,
.email-input:focus,
.phone-input:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(62, 146, 204, 0.2);
    outline: none;
}

/* Campo de mensaje específico - 100% DE ANCHO */
.message-textarea {
    width: 100%;
    padding: 0.56rem 0.72rem; /* REDUCIDO (era 0.7rem 0.9rem) */
    border: 2px solid #E2E8F0;
    border-radius: 6px; /* REDUCIDO (era 8px) */
    font-size: 0.76rem; /* REDUCIDO (era 0.95rem) */
    transition: all 0.3s;
    background: rgba(255,255,255,0.8);
    font-family: 'Montserrat', sans-serif;
    resize: vertical;
    min-height: 88px; /* REDUCIDO (era 110px) */
    line-height: 1.5;
    box-sizing: border-box;
}

.message-textarea:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(62, 146, 204, 0.2);
    outline: none;
}

/* Placeholders específicos */
.name-input::placeholder,
.email-input::placeholder,
.phone-input::placeholder,
.message-textarea::placeholder {
    color: #A0AEC0;
    font-weight: 400;
}

/* Estados de validación */
.name-input.valid,
.email-input.valid,
.phone-input.valid,
.message-textarea.valid {
    border-color: #38A169;
}

.name-input.invalid,
.email-input.invalid,
.phone-input.invalid,
.message-textarea.invalid {
    border-color: #E53E3E;
}

/* ELIMINAMOS EL DISPLAY FLEX PARA QUE ESTÉN UNO DEBAJO DEL OTRO */
.contact-fields-row {
    display: block;
    width: 100%;
}

.contact-fields-row .name-field,
.contact-fields-row .email-field,
.contact-fields-row .phone-field {
    width: 100%;
    margin-bottom: 0.96rem; /* REDUCIDO (era 1.2rem) */
}

/* ============ ESTILOS PARA RESALTADO DE CLÍNICAS PREFERENTES ============ */
.highlight-clinica-preferente {
    color: var(--gold) !important;
    font-weight: 700 !important;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.6) !important;
    animation: zoomOnce 2s ease-in-out, glow-gold-intense 1.2s infinite alternate !important;
    display: inline-block !important;
    position: relative !important;
    padding: 0.16rem 0.4rem !important; /* REDUCIDO (era 0.2rem 0.5rem) */
    border-radius: 4px !important;
    background-color: rgba(212, 175, 55, 0.1) !important;
}

/* ============ BOTÓN DE RESET DE FILTROS ============ */
.reset-filters-btn {
    display: block;
    margin: 0.8rem auto; /* REDUCIDO (era 1rem) */
    padding: 0.48rem 0.96rem; /* REDUCIDO (era 0.6rem 1.2rem) */
    background: linear-gradient(to right, #718096, #A0AEC0);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.72rem; /* REDUCIDO (era 0.9rem) */
    font-family: 'Montserrat', sans-serif;
}

.reset-filters-btn:hover {
    background: linear-gradient(to right, #4A5568, #718096);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============ Ajustes para mantener el layout original ============ */
/* Asegurar que hospital-info y ambulatory-info mantengan su disposición side-by-side */
.gray-content {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1.2rem !important; /* REDUCIDO (era 1.5rem) */
    justify-content: space-between !important;
    align-items: flex-start !important;
}

.hospital-info, 
.ambulatory-info {
    flex: 1 !important;
    min-width: 192px !important; /* REDUCIDO (era 240px) */
    max-width: calc(50% - 0.6rem) !important; /* REDUCIDO (era 0.75rem) */
}

/* ============ RESPONSIVE PARA DISPOSITIVOS MÓVILES ============ */
@media (max-width: 767px) {
    body {
        font-size: 0.85rem; /* Ligera reducción para móviles */
    }
    
    /* NUEVO: Ocultar searchbox en móviles */
    .search-container {
        display: none !important;
    }
    
    .plan-actions {
        gap: 0.4rem; /* REDUCIDO (era 0.5rem) */
        margin-top: 0.8rem; /* REDUCIDO (era 1rem) */
    }
    
    .top-buttons {
        gap: 0.4rem; /* REDUCIDO (era 0.5rem) */
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }
    
    .download-button,
    .contact-button {
        padding: 0.48rem 0.72rem; /* REDUCIDO (era 0.6rem 0.9rem) */
        font-size: 0.64rem; /* REDUCIDO (era 0.8rem) */
        min-width: 88px; /* REDUCIDO (era 110px) */
        flex: 1;
        max-width: 45%;
    }
    
    .whatsapp-button {
        min-width: auto;
        padding: 0.56rem 1.04rem; /* REDUCIDO (era 0.7rem 1.3rem) */
        width: 100%;
        max-width: 100%;
        font-size: 0.64rem; /* REDUCIDO (era 0.8rem) */
    }
    
    .top-buttons {
        width: 100%;
    }
    
    .contact-fields-container {
        gap: 0.64rem; /* REDUCIDO (era 0.8rem) */
    }
    
    .name-input,
    .email-input,
    .phone-input,
    .message-textarea {
        padding: 0.48rem 0.64rem; /* REDUCIDO (era 0.6rem 0.8rem) */
        font-size: 0.72rem; /* REDUCIDO (era 0.9rem) */
    }
    
    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 18px;
        right: 18px;
    }
    
    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
    
    .modal-premium {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header-premium {
        font-size: 0.88rem; /* REDUCIDO (era 1.1rem) */
        padding: 0.8rem; /* REDUCIDO (era 1rem) */
        border-radius: 12px 12px 0 0; /* REDUCIDO (era 15px) */
    }
    
    .modal-body-premium {
        max-height: calc(85vh - 88px); /* REDUCIDO (era 110px) */
        padding: 0.96rem; /* REDUCIDO (era 1.2rem) */
    }
    
    .modal-actions-premium {
        padding: 0.8rem; /* REDUCIDO (era 1rem) */
        flex-direction: column;
    }
    
    .modal-btn-premium {
        width: 100%;
        padding: 0.48rem; /* REDUCIDO (era 0.6rem) */
        font-size: 0.72rem; /* REDUCIDO (era 0.9rem) */
    }
    
    .modal-close-premium {
        top: 0.32rem; /* REDUCIDO (era 0.4rem) */
        right: 0.32rem; /* REDUCIDO (era 0.4rem) */
        width: 19px; /* REDUCIDO (era 24px) */
        height: 19px; /* REDUCIDO (era 24px) */
        font-size: 0.76rem; /* REDUCIDO (era 0.95rem) */
    }

    .plan-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .whatsapp-button {
        width: 90%;
        margin: 0.32rem 0; /* REDUCIDO (era 0.4rem) */
        min-width: auto;
    }
    
    /* En móviles, las clínicas se muestran una debajo de la otra */
    .hospital-info, 
    .ambulatory-info {
        max-width: 100% !important;
        margin-bottom: 0.8rem !important; /* REDUCIDO (era 1rem) */
    }
    
    .gray-content {
        flex-direction: column !important;
        gap: 0.8rem !important; /* REDUCIDO (era 1rem) */
    }
    
    /* Filtros de cobertura en móviles */
    .coverage-buttons-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .coverage-buttons-container label {
        font-size: 0.64rem; /* REDUCIDO (era 0.8rem) */
        padding: 0.24rem 0.16rem; /* REDUCIDO (era 0.3rem 0.2rem) */
    }
    
    .left-rectangle-coverage {
        width: 95% !important;
        max-width: 720px !important; /* REDUCIDO (era 900px) */
        margin: 0.96rem auto !important; /* REDUCIDO (era 1.2rem) */
        padding: 1.2rem !important; /* REDUCIDO (era 1.5rem) */
        float: none !important;
        position: static !important;
        box-sizing: border-box !important;
    }
}


/* ============ RESPONSIVE PARA TABLETS ============ */
@media (min-width: 768px) and (max-width: 1024px) {
    /* NUEVO: Ocultar searchbox en tablets también */
    .search-container {
        display: none !important;
    }
    
    .plan-actions {
        gap: 0.48rem; /* REDUCIDO (era 0.6rem) */
    }
    
    .top-buttons {
        gap: 0.48rem; /* REDUCIDO (era 0.6rem) */
    }
    
    .download-button,
    .contact-button {
        min-width: 96px; /* REDUCIDO (era 120px) */
        padding: 0.52rem 0.96rem; /* REDUCIDO (era 0.65rem 1.2rem) */
        font-size: 0.68rem; /* REDUCIDO (era 0.85rem) */
    }
    
    .whatsapp-button {
        min-width: 136px; /* REDUCIDO (era 170px) */
        font-size: 0.68rem; /* REDUCIDO (era 0.85rem) */
    }
    
    .plan-actions {
        justify-content: space-around;
    }
    
    .modal-premium {
        max-width: 80% !important;
        max-height: 80vh !important;
    }
    
    .modal-content-premium {
        max-height: calc(80vh - 2rem) !important;
    }
    
    .modal-actions-premium {
        flex-direction: row !important;
        justify-content: center !important;
    }
    
    .modal-btn-premium {
        width: auto !important;
        min-width: 45% !important;
        font-size: 0.72rem; /* REDUCIDO (era 0.9rem) */
    }
    
    /* Filtros de cobertura en tablets */
    .coverage-buttons-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .left-rectangle-coverage {
        width: 94% !important;
        max-width: 736px !important; /* REDUCIDO (era 920px) */
        margin: 0.8rem auto !important; /* REDUCIDO (era 1rem) */
        padding: 1.2rem !important; /* REDUCIDO (era 1.5rem) */
        float: none !important;
        position: static !important;
        box-sizing: border-box !important;
    }
}

/* ============ VERSIÓN PARA TODOS LOS DISPOSITIVOS EXCEPTO PC ============ */
@media (max-width: 1024px) {
    /* NUEVO: Ocultar searchbox en todos los dispositivos excepto PC */
    .search-container {
        display: none !important;
    }
    
    /* Resetear la escala para móviles */
    .new-rectangle,
    .left-rectangle,
    .left-rectangle2,
    .left-rectangle-preferente,
    .left-rectangle3,
    .left-rectangle-coverage {
        transform: none;
    }
    
    .left-rectangle,
    .left-rectangle2,
    .left-rectangle-preferente,
    .left-rectangle3,
    .left-rectangle-coverage,
    .new-rectangle,
    .rectangle,
    .plan-price-container,
    .gray-rectangle {
        width: 95% !important;
        max-width: 720px !important; /* REDUCIDO (era 900px) */
        margin: 0.96rem auto !important; /* REDUCIDO (era 1.2rem) */
        padding: 1.2rem !important; /* REDUCIDO (era 1.5rem) */
        float: none !important;
        position: static !important;
        box-sizing: border-box !important;
    }

    .rectangle {
        width: 96% !important;
        max-width: 760px !important; /* REDUCIDO (era 950px) */
        padding: 1.6rem !important; /* REDUCIDO (era 2rem) */
        margin-top: 1.2rem !important; /* REDUCIDO (era 1.5rem) */
        margin-bottom: 1.2rem !important; /* REDUCIDO (era 1.5rem) */
        margin-left: auto !important;
    }

    .new-rectangle {
        width: 96% !important;
        max-width: 760px !important; /* REDUCIDO (era 950px) */
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .rectangle,
    .new-rectangle {
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }

    .rectangle .input-group,
    .new-rectangle .input-group {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* ELIMINADO: Search container rules que ya no son necesarias */
    
    .new-rectangle {
        margin-top: 0.8rem !important; /* REDUCIDO (era 1rem) */
    }
    
    .modal-premium {
        width: 85%;
        max-width: 400px; /* REDUCIDO (era 500px) */
    }
    
    .modal-header-premium {
        font-size: 0.96rem; /* REDUCIDO (era 1.2rem) */
        padding: 0.88rem; /* REDUCIDO (era 1.1rem) */
    }
    
    .modal-body-premium {
        max-height: calc(90vh - 96px); /* REDUCIDO (era 120px) */
        padding: 1.04rem; /* REDUCIDO (era 1.3rem) */
    }
    
    .modal-actions-premium {
        margin: 0 1.04rem 1.04rem; /* REDUCIDO (era 1.3rem) */
    }
    
    /* Estilos específicos para clínicas preferentes en móviles */
    .clinica-preferente-select {
        font-size: 0.68rem; /* REDUCIDO (era 0.85rem) */
        padding: 0.48rem 0.64rem; /* REDUCIDO (era 0.6rem 0.8rem) */
        padding-right: 2.2rem;
    }
    
    .agregar-clinica-btn {
        font-size: 0.68rem; /* REDUCIDO (era 0.85rem) */
        padding: 0.48rem; /* REDUCIDO (era 0.6rem) */
    }
    
    .clinica-number {
        font-size: 0.72rem; /* REDUCIDO (era 0.9rem) */
    }
    
    .clinica-obligatorio,
    .clinica-opcional {
        font-size: 0.6rem; /* REDUCIDO (era 0.75rem) */
    }
}

/* ============ DISPOSITIVO 820x1180 - DISEÑO TABLET UNIFICADO ============ */
@media (min-width: 820px) and (max-width: 1024px), 
       (min-width: 820px) and (max-width: 1180px) and (orientation: portrait) {
    
    .left-rectangle,
    .left-rectangle2,
    .left-rectangle-preferente,
    .left-rectangle3,
    .left-rectangle-coverage,
    .new-rectangle,
    .rectangle,
    .plan-price-container,
    .gray-rectangle {
        width: 94% !important;
        max-width: 736px !important; /* REDUCIDO (era 920px) */
        margin: 0.8rem auto !important; /* REDUCIDO (era 1rem) */
        padding: 1.2rem !important; /* REDUCIDO (era 1.5rem) */
        float: none !important;
        position: static !important;
        box-sizing: border-box !important;
    }

    .rectangle {
        padding: 1.6rem !important; /* REDUCIDO (era 2rem) */
        margin-top: 0.96rem !important; /* REDUCIDO (era 1.2rem) */
        margin-bottom: 1.44rem !important; /* REDUCIDO (era 1.8rem) */
    }

    .main-container {
        display: flex;
        flex-direction: column;
        gap: 0.64rem; /* REDUCIDO (era 0.8rem) */
    }

    /* Orden de los elementos en móviles/tablets */
    .new-rectangle { order: 1; }
    .left-rectangle { order: 2; }
    .left-rectangle2 { order: 3; }
    .left-rectangle-preferente { order: 4; } /* Clínicas preferentes */
    .left-rectangle-coverage { order: 5; } /* Filtro de cobertura */
    .left-rectangle3 { order: 6; }
    .rectangle { order: 7; }

    .rectangle .input-group,
    .new-rectangle .input-group,
    .left-rectangle .input-group,
    .left-rectangle2 .input-group,
    .left-rectangle-preferente .input-group,
    .left-rectangle-coverage .input-group,
    .left-rectangle3 .input-group {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0.56rem auto !important; /* REDUCIDO (era 0.7rem) */
    }
    
    /* ELIMINADO: Search container rules que ya no son necesarias */
    
    .new-rectangle {
        margin-top: 0.64rem !important; /* REDUCIDO (era 0.8rem) */
    }
}