/* Variables CSS para fácil mantenimiento */
:root {
    --color-primary: #d9272e;
    --color-text-dark: #333;
    --color-text-medium: #4f4f50;
    --color-text-light: #78787a;
    --color-background: white;
    --color-background-light: #fafafa;
    --color-border: #f0f0f0;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 15px rgba(0,0,0,0.15);
    --shadow-primary: 0 4px 15px rgba(217, 39, 46, 0.1);
    --border-radius: 8px;
    --border-radius-large: 12px;
    --transition: all 0.2s ease;

    /* Tamaños de texto unificados */
    --text-xs: 1rem;        /* 16px */
    --text-sm: 1.6rem;    /* 18px */
    --text-base: 1.8rem;   /* 20px */
    --text-lg: 1.5rem;    /* 22px */
    --text-xl: 1.8rem;    /* 26px */
    --text-2xl: 2rem;       /* 32px */
    --text-3xl: 3rem;     /* 40px */
    --text-4xl: 2.75rem;    /* 44px */
}

:root {
    --color-primary: #d9272e;
    --color-text-dark: #333;
    --color-text-medium: #4f4f50;
    --color-text-light: #78787a;
    --color-background: white;
    --color-background-light: #fafafa;
    --color-background-gray: #f8f9fa;
    --color-border: #f0f0f0;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 15px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --border-radius-large: 12px;
    --transition: all 0.2s ease;
}

.image-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 700px;
    border-radius: 20px;
    margin: 20px auto;
    margin-bottom: 50px;
}

.image-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.main-content {
    padding-top: 10px;
    padding-bottom: 30px;
}

.highlight {
    color: var(--color-primary);
    font-weight: 500;
}

.card-content {
    padding: 24px 20px;
    text-align: center;
}

.card-title {
    font-size: var(--text-lg);
    color: var(--color-text-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.card-description {
    color: var(--color-text-medium);
    font-weight: 350;
    line-height: 1.5;
    font-size: var(--text-sm);
}

/* Métodos de cobro */
.method-card {
    background: var(--color-background);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
}

.method-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.method-visual {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.play-button {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: scale(1.05);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 12px solid #666;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 2px;
}

/* Requisitos */
.requirements {
    text-align: center;
    padding: 40px;
    background: var(--color-background-light);
}

.requirement-item {
    text-align: center;
    padding: 24px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--color-background);
}

.requirement-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

.requirement-title {
    font-size: var(--text-xl);
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

/* Beneficios */
.benefits-intro {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-text-medium);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-card {
    text-align: center;
    padding: 24px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--color-background);
}

.benefit-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

.benefit-title {
    font-size: var(--text-xl);
    color: var(--color-primary);
    margin-bottom: 12px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --text-3xl: 2rem;       /* 32px en mobile */
        --text-2xl: 1.5rem;     /* 24px en mobile */
        --text-xl: 1.25rem;     /* 20px en mobile */
        --text-base: 1rem;      /* 16px en mobile */
    }

    .main-content {
        padding: 30px 0;
    }

    .section {
        margin-bottom: 50px;
    }

    .section-subtitle {
        font-size: var(--text-xl);
        margin-bottom: 30px;
    }

    .card-content {
        padding: 20px 16px;
    }

    .grid {
        gap: 20px;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .requirements {
        padding: 30px 20px;
    }

    .method-visual {
        height: 120px;
    }

    .play-button {
        width: 45px;
        height: 45px;
    }

    .play-icon {
        border-left: 10px solid #666;
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .card-content,
    .requirement-item,
    .benefit-card {
        padding: 20px 15px;
    }
}

.benefit-icon {
    width: 24px;
    height: 24px;
    color: #dc2626; /* Rojo */
    margin-bottom: 8px;
}

.method-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.method-visual {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.method-card:hover .method-visual::before {
    background: rgba(0, 0, 0, 0.5);
}

.play-button {
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.method-card:hover .play-button {
    transform: scale(1.1);
}

.play-icon {
    width: 0;
    height: 0;
    border-left: 15px solid #333;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 3px;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.card-content p {
    color: #666;
    line-height: 1.5;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .modal-content {
        max-width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-title {
        font-size: 1.2em;
    }
}

/* ===== Video Modal (estilos exclusivos) ===== */
#videoModal {
    position: fixed;
    inset: 0;
    display: none;                 /* oculto por defecto */
    align-items: center;
    justify-content: center;       /* centra el contenido */
    padding: 1rem;                 /* espacio para márgenes en móvil */
    background: rgba(0, 0, 0, 0.6);/* overlay */
    z-index: 9999;
}

#videoModal.open {
    display: flex;                 /* mostrar modal */
}

/* Caja principal */
#videoModal .modal-content {
    width: min(900px, 100%);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;              /* recorta bordes redondeados */
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

/* Header */
#videoModal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
}

#videoModal .modal-title {
    margin: 0;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    color: #0f172a; /* slate-900 */
}

/* Botón cerrar */
#videoModal .close-button {
    all: unset;
    cursor: pointer;
    line-height: 1;
    font-size: 1.5rem;
    padding: .25rem .5rem;
    border-radius: 8px;
    color: #334155;                /* slate-700 */
    transition: opacity .2s ease, transform .15s ease, background .15s ease;
}
#videoModal .close-button:hover { opacity: 1; transform: scale(1.05); background: #f1f5f9; }
#videoModal .close-button:focus { outline: 2px solid #94a3b8; outline-offset: 2px; }

/* Cuerpo */
#videoModal .modal-body { padding: 0; }

/* Contenedor de video: 16:9 responsive */
#videoModal .video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
#videoModal .video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Opcional: bloquear scroll del body cuando el modal está abierto */
body.modal-open { overflow: hidden; }

/* Ajustes en pantallas chicas */
@media (max-width: 480px) {
    #videoModal .modal-content { border-radius: 12px; }
    #videoModal .modal-header { padding: .75rem 1rem; }
}

/* Accesibilidad: si el usuario prefiere menos animación */
@media (prefers-reduced-motion: reduce) {
    #videoModal * { transition: none !important; }
}

.animation-hover {

    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--color-background);
}

.animation-hover:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}
.banner-principal {
    background: url("../../img/servicios-internacionales/Banner-remesas.webp");
    width: 100%;
    min-height: 13.5rem;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: calc(50% + 60px) 30px;
    height: 13.5rem;
}
 .banner-modulo {
     background: url("../../img/bg-modulo-logo-main.webp");
     background-size: contain;
     background-repeat: no-repeat;
     width: 100%;
     height: 100%;
 }
.banner-edit {
    background: url("../../img/servicios-internacionales/REMESAS-BAN.webp");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center 32px;
    height: 15rem;
}

