/* ============================================
   CARGAR LIBRERÍA DE ICONOS
   ============================================ */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* ============================================
   VARIABLES
   ============================================ */
:root {
    --mpm-azul: #182b5c;
    --mpm-azul-claro: #2a4080;
    --mpm-rojo: #e30613;
    --mpm-rojo-hover: #b8050f;
    --mpm-gris-100: #f5f5f5;
    --mpm-gris-200: #e0e0e0;
    --mpm-gris-700: #444444;
    --mpm-blanco: #ffffff;
}

/* ============================================
   BLINDAJE GLOBAL DE ICONOS (anti-sobrescritura)
   ============================================ */
.fa-solid, .fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    display: inline-block !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.fa-brands, .fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    display: inline-block !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.fa-regular, .far {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--mpm-azul) 0%, var(--mpm-azul-claro) 100%);
    color: var(--mpm-blanco);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero.hero-con-imagen {
    padding: 140px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 50%; height: 100%;
    background: radial-gradient(circle at top right, rgba(227, 6, 19, 0.2), transparent 70%);
    pointer-events: none;
}

.hero .container { position: relative; z-index: 2; }

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--mpm-blanco);
    line-height: 1.2;
    font-family: 'Roboto Slab', serif;
}

.hero-lead {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.05rem;
    max-width: 800px;
    margin: 0 auto 1rem;
    opacity: 0.9;
}

.hero-botones {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    justify-content: center;
}

.btn i { font-size: 1.1em; }

.btn-primary {
    background-color: var(--mpm-rojo);
    color: var(--mpm-blanco);
    border-color: var(--mpm-rojo);
}
.btn-primary:hover {
    background-color: var(--mpm-rojo-hover);
    border-color: var(--mpm-rojo-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    color: var(--mpm-blanco);
}

.btn-secondary {
    background-color: transparent;
    color: var(--mpm-azul);
    border-color: var(--mpm-azul);
}
.btn-secondary:hover {
    background-color: var(--mpm-azul);
    color: var(--mpm-blanco);
    transform: translateY(-2px);
}

.hero .btn-secondary,
.consulta .btn-secondary {
    color: var(--mpm-blanco);
    border-color: var(--mpm-blanco);
}
.hero .btn-secondary:hover,
.consulta .btn-secondary:hover {
    background-color: var(--mpm-blanco);
    color: var(--mpm-azul);
}

/* ============================================
   TÍTULOS DE SECCIÓN
   ============================================ */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mpm-azul);
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'Roboto Slab', serif;
}

.section-subtitle {
    text-align: center;
    color: var(--mpm-gris-700);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

/* ============================================
   SERVICIOS
   ============================================ */
.servicios {
    padding: 80px 20px;
    background-color: var(--mpm-gris-100);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.servicio-card {
    background-color: var(--mpm-blanco);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid transparent;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--mpm-rojo), var(--mpm-azul));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.servicio-card:hover::before { transform: scaleX(1); }

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    border-bottom-color: var(--mpm-rojo);
}

.servicio-imagen {
    width: calc(100% + 4rem);
    height: 160px;
    margin: -2.5rem -2rem 1.5rem -2rem;
    background-size: cover;
    background-position: center;
    position: relative;
}

.servicio-imagen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(255,255,255,0.9));
}

/* Icono circular con gradiente */
.servicio-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--mpm-azul) 0%, var(--mpm-azul-claro) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mpm-blanco);
    font-size: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(24, 43, 92, 0.25);
    position: relative;
    z-index: 1;
}

.servicio-card:hover .servicio-icon-wrap {
    background: linear-gradient(135deg, var(--mpm-rojo) 0%, var(--mpm-rojo-hover) 100%);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 28px rgba(227, 6, 19, 0.35);
}

.servicio-icon-wrap i {
    color: #ffffff !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-size: 2rem !important;
    line-height: 1 !important;
}

.servicio-card:hover .servicio-icon-wrap i {
    color: #ffffff !important;
}

.servicio-card h3 {
    font-size: 1.15rem;
    color: var(--mpm-azul);
    margin-bottom: 0.75rem;
    font-weight: 700;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto Slab', serif;
}

.servicio-card p {
    color: var(--mpm-gris-700);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

/* Botón "Ver más" - estilo limpio */
button.servicio-link,
.servicio-card .servicio-link {
    background: transparent !important;
    border: none !important;
    padding: 8px 12px !important;
    color: var(--mpm-rojo) !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: gap 0.3s ease, color 0.3s ease !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.2 !important;
}

button.servicio-link:hover,
.servicio-card .servicio-link:hover {
    color: var(--mpm-azul) !important;
    gap: 12px !important;
    background: transparent !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
}

button.servicio-link:focus,
.servicio-card .servicio-link:focus {
    outline: none !important;
    box-shadow: none !important;
}

button.servicio-link i,
.servicio-card .servicio-link i {
    color: inherit !important;
    font-size: 0.85em !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.servicios-cta { text-align: center; }

/* ============================================
   MÉTODO
   ============================================ */
.metodo {
    padding: 80px 20px;
    background-color: var(--mpm-blanco);
}

.metodo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.metodo-paso {
    text-align: center;
    padding: 6rem 2rem 2rem;
    border: 2px solid var(--mpm-gris-200);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--mpm-blanco);
    position: relative;
    overflow: visible;
}

.metodo-paso::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--mpm-rojo), var(--mpm-azul));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 0 0 12px 12px;
}

.metodo-paso:hover::after { transform: scaleX(1); }

.metodo-paso:hover {
    border-color: var(--mpm-rojo);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    transform: translateY(-6px);
}

.metodo-icono {
    width: 90px;
    height: 90px;
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--mpm-rojo) 0%, var(--mpm-rojo-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mpm-blanco);
    font-size: 2.2rem;
    box-shadow: 0 10px 25px rgba(227, 6, 19, 0.35);
    border: 4px solid var(--mpm-blanco);
    z-index: 2;
}

.metodo-icono i {
    color: #ffffff !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-size: 2.2rem !important;
    line-height: 1 !important;
}

.metodo-numero {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mpm-azul);
    opacity: 0.15;
    margin-bottom: 0.5rem;
    line-height: 1;
    font-family: 'Roboto Slab', serif;
}

.metodo-paso h3 {
    color: var(--mpm-azul);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-family: 'Roboto Slab', serif;
}

.metodo-paso p {
    color: var(--mpm-gris-700);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   CONSULTA
   ============================================ */
.consulta {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--mpm-azul) 0%, var(--mpm-azul-claro) 100%);
    color: var(--mpm-blanco);
}

.consulta-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.consulta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--mpm-blanco);
    font-family: 'Roboto Slab', serif;
}

.consulta-tagline {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--mpm-rojo);
}

.consulta h4 {
    margin: 2rem 0 1rem;
    font-size: 1.1rem;
    color: var(--mpm-blanco);
    font-weight: 700;
}

.consulta-beneficios {
    list-style: none;
    padding: 0;
}

.consulta-beneficios li {
    padding: 10px 0;
    font-size: 1rem;
    color: var(--mpm-blanco);
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 12px;
}

.consulta-beneficios li i {
    color: var(--mpm-rojo) !important;
    font-size: 1.2rem !important;
    flex-shrink: 0;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.consulta-botones {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.consulta-img { position: relative; }

.consulta-img img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.consulta-img img:hover { transform: scale(1.02); }

.consulta-img::before {
    content: '';
    position: absolute;
    top: 20px; left: 20px;
    width: 100%; height: 100%;
    border: 3px solid var(--mpm-rojo);
    border-radius: 16px;
    z-index: 1;
    opacity: 0.6;
}

.consulta-placeholder {
    background: rgba(255,255,255,0.05);
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 80px 20px;
    text-align: center;
    color: var(--mpm-blanco);
}

.consulta-placeholder i {
    font-size: 4rem !important;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* ============================================
   VISAS
   ============================================ */
.visas {
    padding: 80px 20px;
    background-color: var(--mpm-gris-100);
}

.visas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.visa-card {
    background-color: var(--mpm-blanco);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--mpm-azul);
}

.visa-card:hover {
    border-left-color: var(--mpm-rojo);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.visa-icono {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--mpm-azul) 0%, var(--mpm-azul-claro) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mpm-blanco);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.visa-icono i {
    color: #ffffff !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-size: 1.6rem !important;
    line-height: 1 !important;
}

.visa-card:hover .visa-icono {
    background: linear-gradient(135deg, var(--mpm-rojo) 0%, var(--mpm-rojo-hover) 100%);
    transform: scale(1.1) rotate(-5deg);
}

.visa-card h3 {
    color: var(--mpm-azul);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.4;
    font-family: 'Roboto Slab', serif;
}

.visa-link {
    color: var(--mpm-rojo);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.5rem;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.visa-link:hover { gap: 12px; color: var(--mpm-azul); }

/* ============================================
   SOLUCIONES
   ============================================ */
.soluciones {
    padding: 80px 20px;
    background-color: var(--mpm-blanco);
}

.soluciones-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.soluciones.soluciones-con-imagen .soluciones-grid {
    grid-template-columns: 1fr 1fr;
}

.soluciones-texto { text-align: left; }
.soluciones-texto .section-title { text-align: left; }

.soluciones-texto p {
    font-size: 1.1rem;
    color: var(--mpm-gris-700);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.soluciones-img img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* ============================================
   POPUP / MODAL
   ============================================ */
.mpm-popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
}

.mpm-popup-overlay.activo { display: flex; }

.mpm-popup {
    background: #fff;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: mpmSlideUp 0.4s ease;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    border-top: 6px solid #e30613;
}

@keyframes mpmSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.mpm-popup-cerrar {
    position: absolute;
    top: 15px; right: 15px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #444;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mpm-popup-cerrar:hover {
    background: #e30613;
    color: #fff;
    transform: rotate(90deg);
}

.mpm-popup-header {
    padding: 40px 40px 20px;
    text-align: center;
}

.mpm-popup-icono {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #182b5c 0%, #2a4080 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(24,43,92,0.3);
}

.mpm-popup-icono i {
    color: #fff !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    font-size: 2rem !important;
}

.mpm-popup-header h2 {
    color: #182b5c;
    font-size: 1.8rem;
    margin: 0;
    font-family: 'Roboto Slab', serif;
}

.mpm-popup-body { padding: 0 40px 20px; }

.mpm-popup-imagen {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 20px;
}

.mpm-popup-body p {
    color: #444;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.mpm-popup-footer {
    padding: 20px 40px 40px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.mpm-popup-footer .btn {
    padding: 12px 24px;
    font-size: 0.85rem;
}

/* ============================================
   FORMULARIO DE CONTACTO
   ============================================ */
.mpm-popup-contacto { max-width: 600px; }

.mpm-form-contacto { padding: 0 40px 40px; }

.mpm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.mpm-form-group { margin-bottom: 15px; }

.mpm-form-group label {
    display: block;
    color: #182b5c;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.mpm-form-group input,
.mpm-form-group select,
.mpm-form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
    background: #fff;
    box-sizing: border-box;
}

.mpm-form-group input:focus,
.mpm-form-group select:focus,
.mpm-form-group textarea:focus {
    border-color: #182b5c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(24,43,92,0.1);
}

.mpm-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.mpm-form-checkbox {
    margin: 15px 0 20px;
    font-size: 0.85rem;
    color: #666;
}

.mpm-form-checkbox input {
    margin-right: 8px;
    vertical-align: middle;
}

.mpm-form-submit {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .consulta-grid { grid-template-columns: 1fr; gap: 3rem; }
    .soluciones.soluciones-con-imagen .soluciones-grid { grid-template-columns: 1fr; }
    .soluciones-texto .section-title { text-align: center; }
    .consulta-img::before { display: none; }
}

@media (max-width: 768px) {
    .hero h1,
    .section-title,
    .consulta h2 { font-size: 1.9rem; }

    .hero-lead,
    .consulta-tagline { font-size: 1.05rem; }

    .hero,
    .servicios,
    .metodo,
    .consulta,
    .visas,
    .soluciones { padding: 50px 15px; }

    .section-subtitle { margin-bottom: 2.5rem; }

    .servicio-card { padding: 2rem 1.5rem; }
    .servicio-imagen { width: calc(100% + 3rem); margin: -2rem -1.5rem 1.5rem -1.5rem; height: 140px; }

    .consulta-botones { flex-direction: column; }
    .consulta-botones .btn { width: 100%; }

    .mpm-popup-header { padding: 30px 20px 15px; }
    .mpm-popup-body { padding: 0 20px 15px; }
    .mpm-popup-footer { padding: 15px 20px 25px; flex-direction: column; }
    .mpm-popup-footer .btn { width: 100%; }
    .mpm-popup-header h2 { font-size: 1.4rem; }
    .mpm-popup-icono { width: 65px; height: 65px; font-size: 1.6rem; }
    .mpm-popup-icono i { font-size: 1.6rem !important; }

    .mpm-form-row { grid-template-columns: 1fr; gap: 0; }
    .mpm-form-contacto { padding: 0 20px 30px; }
}

/* ============================================
   BLOQUEAR SCROLL CUANDO HAY POPUP ABIERTO
   ============================================ */
body.mpm-popup-abierto {
    overflow: hidden;
}

/* ============================================
   FORMULARIO DE CONTACTO - BLINDAJE TOTAL
   Anti-sobrescritura de WordPress y temas
   ============================================ */

/* Reset total del formulario */
#mpm-popup-contacto .mpm-form-contacto,
body #mpm-popup-contacto .mpm-form-contacto,
html body #mpm-popup-contacto .mpm-form-contacto {
    padding: 0 40px 40px !important;
    margin: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
}

/* Grid de 2 columnas */
#mpm-popup-contacto .mpm-form-row,
body #mpm-popup-contacto .mpm-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Grupo de campo */
#mpm-popup-contacto .mpm-form-group,
body #mpm-popup-contacto .mpm-form-group {
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    display: block !important;
    border: none !important;
    box-shadow: none !important;
}

/* Labels */
#mpm-popup-contacto .mpm-form-group label,
body #mpm-popup-contacto .mpm-form-group label {
    display: block !important;
    color: #182b5c !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    font-family: 'Roboto', sans-serif !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    background: transparent !important;
    border: none !important;
}

/* Inputs, selects, textareas */
#mpm-popup-contacto .mpm-form-group input[type="text"],
#mpm-popup-contacto .mpm-form-group input[type="email"],
#mpm-popup-contacto .mpm-form-group input[type="tel"],
#mpm-popup-contacto .mpm-form-group select,
#mpm-popup-contacto .mpm-form-group textarea,
body #mpm-popup-contacto .mpm-form-group input[type="text"],
body #mpm-popup-contacto .mpm-form-group input[type="email"],
body #mpm-popup-contacto .mpm-form-group input[type="tel"],
body #mpm-popup-contacto .mpm-form-group select,
body #mpm-popup-contacto .mpm-form-group textarea {
    width: 100% !important;
    padding: 11px 14px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 0.95rem !important;
    font-family: 'Roboto', sans-serif !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #333333 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    height: auto !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: normal !important;
}

/* Focus */
#mpm-popup-contacto .mpm-form-group input:focus,
#mpm-popup-contacto .mpm-form-group select:focus,
#mpm-popup-contacto .mpm-form-group textarea:focus,
body #mpm-popup-contacto .mpm-form-group input:focus,
body #mpm-popup-contacto .mpm-form-group select:focus,
body #mpm-popup-contacto .mpm-form-group textarea:focus {
    border-color: #182b5c !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(24,43,92,0.1) !important;
}

/* Textarea */
#mpm-popup-contacto .mpm-form-group textarea,
body #mpm-popup-contacto .mpm-form-group textarea {
    resize: vertical !important;
    min-height: 100px !important;
}

/* Select - flecha personalizada */
#mpm-popup-contacto .mpm-form-group select,
body #mpm-popup-contacto .mpm-form-group select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23182b5c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 10px !important;
    padding-right: 36px !important;
}

/* Checkbox */
#mpm-popup-contacto .mpm-form-checkbox,
body #mpm-popup-contacto .mpm-form-checkbox {
    margin: 15px 0 20px !important;
    font-size: 0.85rem !important;
    color: #666 !important;
    font-family: 'Roboto', sans-serif !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

#mpm-popup-contacto .mpm-form-checkbox label,
body #mpm-popup-contacto .mpm-form-checkbox label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-weight: normal !important;
    color: #666 !important;
    text-transform: none !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#mpm-popup-contacto .mpm-form-checkbox input[type="checkbox"],
body #mpm-popup-contacto .mpm-form-checkbox input[type="checkbox"] {
    width: auto !important;
    height: auto !important;
    margin: 3px 0 0 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
    background: #fff !important;
    border: 1px solid #ccc !important;
    accent-color: #e30613 !important;
}

/* Botón de envío */
#mpm-popup-contacto .mpm-form-submit,
body #mpm-popup-contacto .mpm-form-submit {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
    border: none !important;
    background: #e30613 !important;
    background-color: #e30613 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    font-family: 'Roboto', sans-serif !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    line-height: 1 !important;
    box-shadow: none !important;
    height: auto !important;
    text-align: center !important;
    text-decoration: none !important;
}

#mpm-popup-contacto .mpm-form-submit:hover,
body #mpm-popup-contacto .mpm-form-submit:hover {
    background: #b8050f !important;
    background-color: #b8050f !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(227,6,19,0.3) !important;
}

#mpm-popup-contacto .mpm-form-submit:disabled,
body #mpm-popup-contacto .mpm-form-submit:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

#mpm-popup-contacto .mpm-form-submit i,
body #mpm-popup-contacto .mpm-form-submit i {
    color: #ffffff !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 1em !important;
}

/* Mensaje de error/éxito */
#mpm-popup-contacto .mpm-form-mensaje,
body #mpm-popup-contacto .mpm-form-mensaje {
    margin-top: 15px !important;
    padding: 12px !important;
    border-radius: 6px !important;
    text-align: center !important;
    font-size: 0.9rem !important;
    font-family: 'Roboto', sans-serif !important;
    line-height: 1.5 !important;
}

/* Popup contenedor */
#mpm-popup-contacto .mpm-popup,
body #mpm-popup-contacto .mpm-popup {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-radius: 16px !important;
    max-width: 600px !important;
    width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5) !important;
    border-top: 6px solid #e30613 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Responsive */
@media (max-width: 600px) {
    #mpm-popup-contacto .mpm-form-row,
    body #mpm-popup-contacto .mpm-form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    #mpm-popup-contacto .mpm-form-contacto,
    body #mpm-popup-contacto .mpm-form-contacto {
        padding: 0 20px 30px !important;
    }
}

/* ============================================
   BLINDAJE TOTAL DE POPUPS
   (WordPress y temas NO pueden sobrescribir)
   ============================================ */

/* Overlay del popup */
html body .mpm-popup-overlay,
body .mpm-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    padding: 20px !important;
    margin: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
}

html body .mpm-popup-overlay.activo,
body .mpm-popup-overlay.activo {
    display: flex !important;
}

/* Caja del popup */
html body .mpm-popup,
body .mpm-popup {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-radius: 16px !important;
    max-width: 700px !important;
    width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5) !important;
    border-top: 6px solid #e30613 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    animation: mpmSlideUp 0.4s ease !important;
}

/* Botón de cerrar (la X) */
html body .mpm-popup-cerrar,
body .mpm-popup-cerrar,
html body .mpm-popup .mpm-popup-cerrar,
body .mpm-popup .mpm-popup-cerrar {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.05) !important;
    background-color: rgba(0, 0, 0, 0.05) !important;
    border: none !important;
    outline: none !important;
    font-size: 26px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    color: #444444 !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: Arial, sans-serif !important;
    text-decoration: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    transform: none !important;
    overflow: hidden !important;
    text-indent: 0 !important;
}

html body .mpm-popup-cerrar:hover,
body .mpm-popup-cerrar:hover,
html body .mpm-popup .mpm-popup-cerrar:hover,
body .mpm-popup .mpm-popup-cerrar:hover {
    background: #e30613 !important;
    background-color: #e30613 !important;
    color: #ffffff !important;
    transform: rotate(90deg) !important;
    box-shadow: none !important;
    border: none !important;
}

html body .mpm-popup-cerrar:focus,
body .mpm-popup-cerrar:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Header del popup */
html body .mpm-popup-header,
body .mpm-popup-header {
    padding: 40px 40px 20px !important;
    text-align: center !important;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
}

/* Icono del popup */
html body .mpm-popup-icono,
body .mpm-popup-icono {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 20px !important;
    background: linear-gradient(135deg, #182b5c 0%, #2a4080 100%) !important;
    background-color: #182b5c !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 2rem !important;
    box-shadow: 0 10px 25px rgba(24,43,92,0.3) !important;
    border: none !important;
    padding: 0 !important;
}

html body .mpm-popup-icono i,
body .mpm-popup-icono i {
    color: #ffffff !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    font-size: 2rem !important;
    line-height: 1 !important;
}

/* Título del popup */
html body .mpm-popup-header h2,
body .mpm-popup-header h2 {
    color: #182b5c !important;
    font-size: 1.8rem !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Roboto Slab', serif !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

html body .mpm-popup-header p,
body .mpm-popup-header p {
    color: #666666 !important;
    font-size: 0.95rem !important;
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
    font-family: 'Roboto', sans-serif !important;
    line-height: 1.5 !important;
}

/* Cuerpo del popup */
html body .mpm-popup-body,
body .mpm-popup-body {
    padding: 0 40px 20px !important;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
}

html body .mpm-popup-body p,
body .mpm-popup-body p {
    color: #444444 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Roboto', sans-serif !important;
}

html body .mpm-popup-imagen,
body .mpm-popup-imagen {
    width: 100% !important;
    height: 200px !important;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
}

/* Footer del popup */
html body .mpm-popup-footer,
body .mpm-popup-footer {
    padding: 20px 40px 40px !important;
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    border-top: 1px solid #eeeeee !important;
    margin-top: 20px !important;
    background: transparent !important;
}

/* Botones dentro del popup */
html body .mpm-popup-footer .btn,
body .mpm-popup-footer .btn {
    padding: 12px 24px !important;
    font-size: 0.85rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    font-family: 'Roboto', sans-serif !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    line-height: 1 !important;
}

html body .mpm-popup-footer .btn-primary,
body .mpm-popup-footer .btn-primary {
    background: #e30613 !important;
    background-color: #e30613 !important;
    color: #ffffff !important;
    border-color: #e30613 !important;
}

html body .mpm-popup-footer .btn-primary:hover,
body .mpm-popup-footer .btn-primary:hover {
    background: #b8050f !important;
    border-color: #b8050f !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

html body .mpm-popup-footer .btn-secondary,
body .mpm-popup-footer .btn-secondary {
    background: transparent !important;
    color: #182b5c !important;
    border-color: #182b5c !important;
}

html body .mpm-popup-footer .btn-secondary:hover,
body .mpm-popup-footer .btn-secondary:hover {
    background: #182b5c !important;
    color: #ffffff !important;
    border-color: #182b5c !important;
    transform: translateY(-2px) !important;
}

/* Botones del footer del popup - iconos */
html body .mpm-popup-footer .btn i,
body .mpm-popup-footer .btn i {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    font-size: 1em !important;
    color: inherit !important;
}

/* Animación */
@keyframes mpmSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bloquear scroll del body cuando hay popup abierto */
html body.mpm-popup-abierto,
body.mpm-popup-abierto {
    overflow: hidden !important;
}

/* Responsive */
@media (max-width: 768px) {
    html body .mpm-popup-header,
    body .mpm-popup-header {
        padding: 30px 20px 15px !important;
    }
    html body .mpm-popup-body,
    body .mpm-popup-body {
        padding: 0 20px 15px !important;
    }
    html body .mpm-popup-footer,
    body .mpm-popup-footer {
        padding: 15px 20px 25px !important;
        flex-direction: column !important;
    }
    html body .mpm-popup-footer .btn,
    body .mpm-popup-footer .btn {
        width: 100% !important;
    }
    html body .mpm-popup-header h2,
    body .mpm-popup-header h2 {
        font-size: 1.4rem !important;
    }
    html body .mpm-popup-icono,
    body .mpm-popup-icono {
        width: 65px !important;
        height: 65px !important;
    }
    html body .mpm-popup-icono i,
    body .mpm-popup-icono i {
        font-size: 1.6rem !important;
    }
    html body .mpm-popup-cerrar,
    body .mpm-popup-cerrar {
        width: 36px !important;
        height: 36px !important;
        font-size: 22px !important;
        top: 10px !important;
        right: 10px !important;
    }
}