/* ================== SERVICIOS ================== */
.servicios-container {
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.titulo-principal {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 50px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1000px;
    width: 100%;
}

/* ===== Tarjetas ===== */
.card-servicio {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-servicio:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-servicio h2 {
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.card-servicio p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-cita {
    background: #4f46e5;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-cita:hover {
    background: #3730a3;
}

.btn-cita.pink {
    background: #db2777;
}

.btn-cita.pink:hover {
    background: #9d174d;
}

/* ====== Card Asesoría Jurídica ====== */
.btn-whatsapp {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background: #25D366;
    color: white;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 15px;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
}

.card-juridica h2 {
    color: #0d9488;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 12px 0 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    font-size: 0.85rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.badge.gratis {
    background: #ecfdf5;
    color: #0f766e;
    border: 1px solid rgba(15, 118, 110, 0.08);
}

.badge.sincita {
    background: #fff7ed;
    color: #92400e;
    border: 1px solid rgba(146, 64, 14, 0.06);
}

.horario-pequeno {
    font-size: 0.95rem;
    color: #444;
    margin-top: 8px;
}

.btn-cita.juridico {
    background: #0d9488;
    color: #fff;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 12px;
    text-decoration: none;
    font-weight: 600;
}

.btn-cita.juridico:hover {
    background: #0f766e;
}

#modalJuridico .modal-content {
    max-width: 520px;
    padding: 22px;
}

#modalJuridico ul {
    margin-left: 18px;
    color: #333;
}

#modalJuridico .horario-modal {
    margin-top: 8px;
    font-weight: 600;
}

@media (max-width: 420px) {
    .badges {
        gap: 6px;
    }

    .badge {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}

/* ================== MODALES (reutilizable) ================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 1rem;
}

.modal:target {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 15px 25px;
    width: 100%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1e293b;
    text-align: center;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 22px;
    text-decoration: none;
    color: #555;
    font-weight: bold;
}

.close-modal:hover {
    color: #000;
}

/* ================== FORMULARIO ================== */
.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.btn-enviar {
    background: #4f46e5;
    color: #fff;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-enviar:hover {
    background: #3730a3;
    transform: translateY(-1px);
}

/* ================== MENSAJES DE ERROR ================== */
.input-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

.error-message {
    font-size: 0.85rem;
    color: #e74c3c;
    margin-top: 3px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.25s ease;
}

.error-message.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================== NOTA AVISO ================== */
.nota-aviso {
    background-color: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 10px 15px;
    margin-top: 10px;
    font-size: 0.95rem;
    color: #333;
    border-radius: 6px;
}

/* ================== DIAS DE ATENCIÓN ================== */
.days-group {
    margin-top: 8px;
}

.days-group input[type="checkbox"] {
    display: none;
}

.days-group label {
    display: block;
    background: #f4f7ff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.days-group input[type="checkbox"]:checked+label {
    background: #3a8ef6;
    color: #fff;
    border-color: #3a8ef6;
    box-shadow: 0 0 8px rgba(58, 142, 246, 0.4);
    transform: translateY(-2px);
}

/* ================== RESPONSIVE ================== */
@media (max-width: 1020px) {
    .modal-content {
        padding: 25px;
        max-width: 90%;
        max-height: 80vh;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .card-servicio {
        padding: 25px;
    }

    .titulo-principal {
        font-size: 2rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 550px) {
    .modal-content {
        padding: 20px 15px;
        max-width: 95%;
        max-height: 75vh;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .card-servicio {
        padding: 20px 15px;
    }

    .titulo-principal {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }

    .card-servicio h2 {
        font-size: 1.5rem;
    }

    .card-servicio p {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .btn-cita {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
        padding: 8px 10px;
    }

    .btn-enviar {
        font-size: 0.95rem;
        padding: 10px;
    }

    .days-group label {
        font-size: 0.9rem;
        padding: 8px 10px;
    }
}