/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
}

.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header de fecha */
.fecha-header {
    background-color: #003746;
    color: white;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.nav-links span {
    color: white;
}

/* Header principal */
.main-header {
    background-color: #003746;
    padding: 20px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-banamex {
    height: 30px;
}

.separator {
    width: 1px;
    height: 30px;
    background-color: white;
    margin: 0 20px;
}

.bancanet-text {
    color: white;
    font-size: 24px;
}

/* Tipografía */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Roboto:wght@400;500;700&display=swap');

/* Contenido principal */
.main-content {
    flex: 1;
    background-color: #f8f9fa;
}

/* Hero Section */
.hero-section {
    background: url('https://www.banamex.com/assets/globals/img/ilustrations/illustracion_header.svg') no-repeat center center;
    background-size: cover;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,55,70,0.9), rgba(0,77,99,0.85));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    color: white;
    font-size: 48px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-description {
    color: white;
    font-size: 20px;
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 40px;
    line-height: 1.6;
}

.download-btn-hero {
    background: linear-gradient(45deg, #ffffff, #f8f9fa);
    color: #003746;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    min-width: 300px;
    min-height: 60px;
}

.download-btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-text:before {
    content: '↓';
    margin-right: 15px;
    font-size: 24px;
}

.btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
}

.btn-loading.show {
    display: flex;
}

.btn-loading img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.download-btn-hero.loading .btn-text {
    display: none;
}

.download-btn-hero.loading .btn-loading {
    display: flex;
}

/* Slider Container */
.slider-container {
    padding: 30px;
    background: white;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    flex: 0 0 100%;
    padding: 30px;
    min-height: 400px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background: #003746;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #003746;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 24px;
    font-weight: bold;
}

.slider-nav:hover {
    background: #004d63;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.instructions-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.instructions-content {
    padding: 30px;
}

.instructions-content h2 {
    color: #003746;
    margin-bottom: 40px;
    font-size: 32px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid #003746;
    padding-bottom: 15px;
}

.instruction-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.step {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    max-height: 350px;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.step h3 {
    color: #003746;
    margin-bottom: 20px;
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    border-left: 4px solid #003746;
    padding-left: 15px;
}

.step img {
    display: block;
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 10px 0;
    transition: transform 0.2s ease;
}

.step img:hover {
    transform: scale(1.02);
}

.step p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.step ol, .step ul {
    margin-left: 20px;
    line-height: 1.6;
}

.download-btn {
    background: linear-gradient(45deg, #003746, #004d63);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    margin: 20px 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.download-btn:before {
    content: '↓';
    margin-right: 10px;
    font-size: 20px;
}

.download-btn:hover {
    background: linear-gradient(45deg, #004d63, #003746);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.download-btn:active {
    transform: translateY(1px);
}

.security-note {
    grid-column: 1 / -1;
    background: linear-gradient(to right, #003746, #004d63);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.security-note h3 {
    color: white !important;
    font-size: 24px !important;
    margin-bottom: 20px;
    border-left: 4px solid #ffffff;
    padding-left: 15px;
}

.security-note ul {
    list-style: none;
    padding: 0;
}

.security-note ul li {
    margin: 10px 0;
    padding-left: 30px;
    position: relative;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

.security-note ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ffffff;
    font-weight: bold;
}

.support-contact {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #003746;
    margin-top: 30px;
}

.support-contact p {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    margin: 10px 0;
}

.support-contact strong {
    color: #003746;
    font-size: 24px;
    display: block;
    margin-top: 10px;
}

/* Footer */
.footer {
    background-color: #f5f5f5;
    padding: 30px 20px;
    margin-top: auto;
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 40px;
    filter: brightness(0) saturate(100%) invert(15%) sepia(91%) saturate(1574%) hue-rotate(183deg) brightness(96%) contrast(103%);
}

.footer-text {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-contract {
    color: #003746;
    font-weight: 600;
    font-size: 14px;
}

.footer-links a {
    color: #003746;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-code {
    text-align: center;
}

/* Imágenes clickeables */
.clickable-image {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.clickable-image:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Modal para ampliar imágenes */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #003746;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.modal-close:hover {
    color: #004d63;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-caption {
    margin-top: 20px;
    color: #003746;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    padding: 0 20px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 20px;
    }

    .instructions-content {
        padding: 20px;
    }

    .fecha-header {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        margin-top: 10px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 95%;
        padding: 15px;
    }

    .modal-image {
        max-height: 60vh;
    }

    .modal-caption {
        font-size: 16px;
    }
}
