* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Estilos base responsivos */
:root {
    --primary-color: #0047AB;
    --secondary-color: #000000;
    --accent-color: #1E90FF;
    --dark-color: #000000;
    --light-color: #FFFFFF;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Estilos de encabezado responsivos */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.8rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.logo-container img {
    max-height: 50px;
    max-width: 100%;
}

/* Estilos para el menú móvil */
.menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.8rem;
    color: white;
    z-index: 101;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 1000;
    display: none;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-menu-header img {
    height: 50px;
}

.close-menu {
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.menu-item:hover, .menu-item:active {
    background-color: rgba(255, 255, 255, 0.2);
}

.menu-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.menu-text {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Estilos de contenido principal responsivos */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

section {
    margin-bottom: 2rem;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.row-title {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
}

/* Contenedores de tarjetas responsivos */
.card-container {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.two-columns {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.three-columns {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Estilos de tarjetas responsivos */
.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    padding: 1rem;
}

.operator-logo {
    max-height: 100px !important;
    padding: 1rem !important;
}

.card h3 {
    color: var(--primary-color);
    padding: 0 1rem;
    margin-top: 0.5rem;
}

.card p {
    padding: 0.5rem 1rem;
    color: #555;
}

.card ul {
    padding: 0 1rem 1rem 2rem;
    color: #555;
}

.card ul li {
    margin-bottom: 0.5rem;
}

/* Estilos de tarjetas promocionales */
.promo-card {
    text-align: center;
}

.promo-img {
    max-height: 120px !important;
    margin: 0 auto;
}

.promo-link {
    display: inline-block;
    margin: 1rem auto;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.promo-link:hover {
    background-color: var(--accent-color);
}

/* Botón de WhatsApp responsivo */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

/* Footer responsivo */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 1.2rem 1rem;
    margin-top: 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    max-height: 40px;
    max-width: 100%;
}

.footer-logo {
    margin-bottom: 0.8rem;
}

.footer-info {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Media queries para diferentes tamaños de pantalla */
@media (max-width: 1200px) {
    main {
        padding: 1rem 2rem;
    }
}

@media (max-width: 992px) {
    .two-columns, .three-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.6rem 1rem;
    }
    
    .logo-container img {
        max-height: 40px;
    }
    
    .two-columns, .three-columns {
        grid-template-columns: 1fr;
    }
    
    .card {
        max-width: 100%;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        right: 15px;
        bottom: 15px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .row-title {
        font-size: 1.2rem;
    }
    
    .card h3 {
        font-size: 1.1rem;
    }
    
    .card p, .card ul {
        font-size: 0.9rem;
    }
}

/* Prevenir scroll cuando el menú está abierto */
body.menu-open {
    overflow: hidden;
}

/* Añade estos estilos para mejorar el centrado y uso del espacio en la sección de activaciones */
.activation-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.activation-card {
    flex: 1 1 400px;
    max-width: 500px;
    min-width: 280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    text-align: center;
    padding-bottom: 1.5rem;
}

.activation-card .operator-logo {
    max-height: 120px;
    margin: 0 auto 1rem;
}

.activation-card h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.activation-card p {
    text-align: center;
    margin-bottom: 1.5rem;
}

.activation-link {
    display: inline-block;
    margin: 0.5rem auto;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: 500;
}

.activation-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Media queries para asegurar responsividad */
@media (max-width: 768px) {
    .activation-container {
        gap: 1.5rem;
    }
    
    .activation-card {
        flex: 1 1 100%;
    }
}

/* Estilos para la organización en 2x2 */
.grid-2x2-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.5rem;
    margin: 0 auto 2rem;
    max-width: 1200px;
}

.grid-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
}

.grid-card .operator-logo {
    max-height: 80px;
    margin: 0 auto 1rem;
    display: block;
}

.grid-card h3 {
    text-align: center;
}

@media (max-width: 768px) {
    .grid-2x2-container {
        grid-template-columns: 1fr;
    }
}

.home-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin: 0 auto;
    text-decoration: none;
    transition: color 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.home-icon:hover {
    color: #e0e0e0;
}

/* Update header to include the home icon */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    position: relative;
}

/* Adjust logo container to allow space for home icon */
.logo-container {
    flex: 1;
}

/* Estilos para la sección de promociones especiales */
.promo-image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.promo-image {
    flex: 0 1 auto;
    max-width: 70%;
    text-align: center;
}

.promo-image img {
    width: 70%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.promo-image img:hover {
    transform: scale(1.05);
}

.section-description {
    text-align: center;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Media queries para las imágenes de promoción */
@media (max-width: 768px) {
    .promo-image {
        max-width: 90%;
    }
    
    .promo-image img {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .promo-image-container {
        flex-direction: column;
        align-items: center;
    }
    
    .promo-image {
        max-width: 100%;
    }
}

/* Asegurar que el footer se mantenga abajo */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Estilos para el hub de navegación */
.hub-card-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0 3rem;
}

.hub-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    text-align: center;
    text-decoration: none;
    color: var(--dark-color);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hub-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

.hub-card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    background-color: rgba(0, 71, 171, 0.1);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.hub-card:hover .hub-card-icon {
    background-color: rgba(0, 71, 171, 0.2);
}

.hub-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.hub-card p {
    color: #555;
    margin-bottom: 1.5rem;
}

.hub-card-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.hub-card:hover .hub-card-button {
    background-color: var(--accent-color);
}

/* Media queries para el hub */
@media (max-width: 768px) {
    .hub-card {
        padding: 1.5rem;
    }
    
    .hub-card-icon {
        font-size: 2.5rem;
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .hub-card {
        padding: 1.2rem;
    }
    
    .hub-card-icon {
        font-size: 2rem;
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .hub-card h3 {
        font-size: 1.3rem;
    }
    
    .hub-card p {
        font-size: 0.9rem;
    }
    
    .hub-card-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}