/* ==========================================================
   ESTILOS GENERALES Y RESET
   ========================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    background-color: #f0f2f5;
    padding: 20px;
    color: #333;
    margin: 0;
}

.contenedor-principal {
    max-width: 600px;
    margin: 0 auto;
}

hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 25px 0;
}

/* ==========================================================
   HEADER
   ========================================================== */
.header {
    text-align: left !important;
    padding-left: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-align: left !important;
    float: left;
}

.logo img {
    width: 330px;
    display: block;
    margin: 0 !important;
}

/* ==========================================================
   MENÚ DE NAVEGACIÓN Y SUB-MENÚS
   ========================================================== */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: bold;
    padding: 10px 15px;
    display: block;
}

.nav-menu ul {
    display: none;
    list-style: none;
    padding: 5px 0;
    background-color: #0d0d0d;
}

.nav-menu li ul {
    position: absolute;
    background: #fff;
    list-style: none;
    padding: 0;
    border: 1px solid #ddd;
    min-width: 150px;
    z-index: 1000;
    left: 0;
}

.nav-menu li:hover > ul {
    display: block;
}

.nav-menu li ul li a {
    padding: 8px 15px;
    font-size: 14px;
    color: #000000 !important;
    background-color: #ffffff;
    margin: 2px 5px;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #2c3e50;
    padding-right: 20px;
}

/* ==========================================================
   TIPOGRAFÍA Y CONTENIDO
   ========================================================== */
.titulo-principal {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.subtitulo {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.subtitulo i {
    font-style: italic;
}

.manual-link {
    font-size: 14px;
    margin-bottom: 0;
    display: block;
}

.manual-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.manual-link a:hover {
    text-decoration: underline;
}

/* ==========================================================
   CAJA BLANCA Y SECCIONES
   ========================================================== */
.contenedor {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 30px;
}

.seccion {
    margin-top: 20px;
    margin-bottom: 20px;
}

.seccion-titulo {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    display: block;
}

.botones-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.botones-container.horizontal {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.botones-container a {
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.botones-container a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.botones-container a img {
    width: 170px;
    border-radius: 8px;
    display: block;
}

/* ==========================================================
   BOTONES Y COMPONENTES
   ========================================================== */
.menu-botones {
    margin: 15px auto;
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.btn-opcion {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.btn-opcion:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btn-secundario {
    background-color: #dadce0 !important;
    color: #3c4043 !important;
}

.imagen-container-30 {
    margin: 10px auto;
    text-align: center;
}

.imagen-container-30 img {
    width: 30%;
    height: auto;
}

/* ==========================================================
   ANIMACIONES Y MODAL
   ========================================================== */
.rotar-nativo {
    display: inline-block;
    animation: spin-nativo 1s linear infinite;
}

@keyframes spin-nativo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-family: Arial, sans-serif;
}

.input-texto {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.modal-botones {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.modal-botones .btn-opcion {
    flex: 1;
    text-align: center;
    cursor: pointer;
    border: none;
    padding: 10px 15px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.espaciador {
    height: 120px;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 0;
}

.footer b {
    color: #2c3e50;
}

.footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}

.espacio {
    margin-top: 10px;
}

.footer-wrapper {
    border-top: 2px solid #1a365d;
    padding-top: 15px;
    margin-top: 40px;
    font-family: Arial, sans-serif;
    font-size: 9.5pt;
}

.footer-top-full {
    width: 100%;
    margin-bottom: 15px;
    color: #4a5568;
    line-height: 1.6;
}

.footer-row-split {
    display: table;
    width: 100%;
    border-top: 1px dashed #cbd5e0;
    padding-top: 15px;
}

.footer-col-valores {
    display: table-cell;
    width: 65%;
    vertical-align: top;
    padding-right: 25px;
}

.footer-col-contacto {
    display: table-cell;
    width: 35%;
    vertical-align: top;
    border-left: 1px solid #e2e8f0;
    padding-left: 25px;
}

.footer-title {
    font-weight: bold;
    color: #2b6cb0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-size: 10pt;
}

.valores-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.valores-list li {
    margin-bottom: 2px;
    color: #4a5568;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.valores-list li::before {
    content: "•";
    color: #2b6cb0;
    font-weight: bold;
    margin-right: 8px;
}

.contacto-info {
    color: #4a5568;
    line-height: 1.5;
}

.instagram-link {
    color: #d53f8c;
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.qr-code-img {
    width: 40%;
    height: auto;
    display: block;
}

.qr-texto {
    font-size: 8.5pt;
    color: #718096;
    margin-bottom: 6px;
}

.qr-placeholder {
    width: 70px;
    height: 70px;
    border: 1px solid #cbd5e0;
    padding: 4px;
    background: #f7fafc;
    display: block;
}

.qr-box {
    width: 100%;
    height: 100%;
    background-color: #333;
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc),
                      linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
}

/* ==========================================================
   RESPONSIVE: MEDIA QUERIES
   ========================================================== */
@media (max-width: 768px) {
    .logo img {
        width: 264px !important;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background: #fff;
        border-top: 1px solid #ddd;
        text-align: right;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: right;
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu li a {
        display: block;
        padding: 10px;
        cursor: pointer;
        text-align: right;
    }
    
    .nav-menu li ul {
        position: static;
        box-shadow: none;
        border: none;
        background: #f9f9f9;
    }
    
    .nav-menu ul.show {
        display: block;
    }
    
    .menu-botones {
        width: 100% !important;
        max-width: 100% !important;
    }

    .footer-row-split {
        display: block;
    }

    .footer-col-valores, 
    .footer-col-contacto {
        display: block;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .footer-col-contacto {
        border-left: none;
        border-top: 1px dashed #cbd5e0;
        margin-top: 20px;
        padding-top: 20px;
    }

    .qr-code-img {
        width: 60%;
    }
}

@media (min-width: 769px) {
    .nav-menu li:hover > ul {
        display: block;
    }
    
    .nav-menu li > ul {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
    }
    
    .nav-menu li > ul li > ul {
        top: 0;
        left: -200px;
        right: 100%;
    }
}