/* PopUP */


.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    height: 80%;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}



/* Estilos generales */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    text-align: center;
}


/* Header */
header {
    position: relative;
    background: url('fondoheader.png') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 1vh 1vw; /* Margen proporcional */
}

/* Texto Animado */
.animated-text {
    font-size: clamp(18px, 5vw, 40px); /* Se adapta autom�ticamente */
    font-weight: bold;
    margin: 20px 0;
    text-align: center;
    display: inline-block;
    white-space: normal;
    line-height: 1.3;
    max-width: 90%;
}

/* Destacar "Beneficios" */
.highlight {
    color: #FFD700;
    font-size: clamp(22px, 6vw, 44px);
    font-weight: bold;
    text-shadow: 0px 0px 15px rgba(255, 215, 0, 0.8);
}

/* Logo */
.logo-container {
    width: 150%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: clamp(150px, 35vw, 400px); /* Se adapta autom�ticamente */
    max-width: 90%;
    animation: fadeIn 2s ease-in-out;
    /*filter: drop-shadow(0px 0px 20px rgba(255, 215, 0, 0.8));*/
    border-radius: 20px;
    /*padding: 10px;*/
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(192, 192, 192, 0.3));
}

/* Bot�n "Ser Miembro" */
.btn {
    padding: clamp(10px, 2vw, 15px) clamp(20px, 4vw, 30px);
    font-size: clamp(20px, 2vw, 18px);
    background: linear-gradient(45deg, #787877, #C0C0C0);
    color: black;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease-in-out;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.823);
}

.btn:hover {
    background: linear-gradient(45deg, #C0C0C0, #787877);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgb(172, 172, 172);
}

/* RESPONSIVE DESIGN */

/* Texto Animado - 100% Responsivo */
.animated-text {
    font-size: clamp(20px, 4vw, 60px); /* Se adapta autom�ticamente */
    font-weight: bold;
    text-align: center;
    display: inline-block;
    white-space: normal;
    line-height: 1.3;
    max-width: 90%;
    border-right: 3px solid #FFD700; /* Cursor parpadeante */
    animation: blinkCursor 0.7s infinite;
    padding: 0 10px; /* Agrega margen interno */
}

/* Cursor parpadeante */
@keyframes blinkCursor {
    50% { border-color: transparent; }
}

/* RESPONSIVE: Ajustes en pantallas peque�as */
@media (max-width: 768px) {
    .animated-text {
        font-size: clamp(14px, 5vw, 28px); /* Reduce tama�o en m�viles */
        max-width: 95%;
        text-align: center;
    }

    .highlight {
        font-size: clamp(16px, 6vw, 32px);
    }
}

@media (max-width: 480px) {
    .animated-text {
        font-size: 30px;
        text-align: center;
    }

    .highlight {
        font-size: 40px;
    }
}







/* Secci�n de Descuentos */
.discounts {
    text-align: center;
    padding: 50px 20px;
    display: flex;
    flex-direction: column; /* Organiza los elementos en columna */
    align-items: center; /* Centra los descuentos */
    justify-content: center;
    gap: 30px;
}

/* Contenedor de descuentos */
.discount-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
}

/* Tarjeta de descuento */
.discount-card {
    background: #111;
    border-radius: 15px;
    padding: 20px;
    width: 250px;
    display: flex;
    align-items: center;
    box-shadow: 0px 5px 15px rgb(229 229 229 / 30%);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    z-index: 10;
}

.discount-card:hover {
    transform: scale(1.05);
    z-index: 20;
}

/* �conos en c�rculo dorado */
.discount-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #787877, #C0C0C0);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.discount-icon img {
    width: 40px;
    height: 40px;
}

/* Informaci�n del descuento */
.discount-info {
    text-align: left;
}

.discount-percent {
    font-size: 24px;
    font-weight: bold;
    color: #787877;
}

.discount-text {
    font-size: 16px;
    color: #fff;
}

/* Tooltip con descripci�n y foto */
.discount-card .tooltip {
    position: absolute;
    left: 50%;
    bottom: -170px;
    width: 280px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 15px;
    font-size: 14px;
    text-align: center;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    box-shadow: 0px 5px 20px rgba(255, 255, 255, 0.7);
}

/* Imagen dentro del tooltip */
.discount-card .tooltip img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Efecto hover para mostrar el tooltip */
.discount-card:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
    z-index: 1000;
}

/* Descuento principal */
.discount-card.main-discount {
    width: 90%;
    max-width: 600px; /* Tama�o m�s grande */
    padding: 30px;
    border: 3px solid #787877;
    box-shadow: 0px 10px 30px rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, #222, #111);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: left;
}

/* �cono m�s grande */
.discount-card.main-discount .discount-icon {
    width: 80px;
    height: 80px;
}

/* Texto m�s llamativo */
.discount-card.main-discount .discount-info {
    flex: 1;
    padding-left: 10px;
}

.discount-card.main-discount .discount-text {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.discount-card.main-discount .discount-percent {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
}

/* Tooltip del descuento principal */
.discount-card.main-discount .tooltip {
    width: 320px;
    font-size: 16px;
    padding: 20px;
}

/* Pie de p�gina */
footer {
    margin-top: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
    header {
        height: 50vh;
    }
    .logo {
        width: 300px;
    }
    .discount-card.main-discount {
        flex-direction: column;
        text-align: center;
    }
    .discount-card.main-discount .discount-info {
        padding-left: 0;
    }
}




/* obsequio ----------------------------------*/
/* Secci�n de Obsequios */
.gifts {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gift-container {
    background: #222;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0px 5px 15px rgb(229 229 229 / 30%);
}

/* Icono */
.gift-icon {
    background: linear-gradient(45deg, #787877, #C0C0C0);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
}

.gift-icon img {
    width: 50px;
}

/* T�tulo */
.gift-container h2 {
    color: #787877;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Lista de obsequios */
.gift-list {
    text-align: left;
}

.gift-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 215, 0, 0.5);
    padding: 10px 0;
}

.gift-price {
    font-weight: bold;
    color: #787877;
}

/* Total ahorro */
.gift-total {
    margin-top: 20px;
    padding: 10px;
    border: 2px solid #ecebe4;
    border-radius: 10px;
    /* background: rgba(255, 215, 0, 0.1);*/
    font-size: 22px;
    font-weight: bold;
    color: #ffffff;
}

.gift-total-price {
    display: block;
    font-size: 28px;
}






















.section-discounts {
    background-color: #1a1818;
    padding: 60px 0;
  }
  
  .section-discounts .section-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
    color: #7d7d7d;
  }
  
  .discount-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
  }
  
  .discount-item {
    background-color: rgb(44, 43, 43);
    border-radius: 8px;
    padding: 20px;
    width: 220px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
  }
  
  .discount-item:hover {
    transform: scale(1.05);
  }
  
  .discount-item h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #d2dcd3;
  }
  
  .discount-item p {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
  }
  

/* SEDES ----------------------------------*/

/* Secci�n Vis�tanos */
.visit-us {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 50px 20px;
}

.visit-us h2 {
    color: #787877;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Estilos de las sedes */
.locations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.location {
    background: #222;
    padding: 15px;
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0px 5px 10px rgb(229 229 229 / 30%);
    transition: transform 0.3s ease-in-out;
}

.location:hover {
    transform: scale(1.05);
}

.location h3 {
    color: #787877;
}

.location p {
    margin-bottom: 10px;
}

/* Lista de sedes */
.branches {
    margin-top: 30px;
}

.branches h3 {
    color: #787877;
    font-size: 20px;
}

.branches ul {
    list-style: none;
    padding: 0;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.branches li {
    background: rgba(255, 215, 0, 0.1);
    padding: 10px;
    margin: 5px auto;
    max-width: 300px;
    border-radius: 5px;
}

/* Bot�n interactivo */
#toggleBranches {
    background: #a5a5a4;
    color: #111;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: background 0.3s;
}

#toggleBranches:hover {
    background: #dcdcdc;
}

/* Ocultar lista por defecto */
.hidden {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease-in-out, height 0.5s ease-in-out;
}





/* Secci�n de Suscripci�n */
.subscription {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 50px 20px;
}

.subscription h2 {
    color: #e0e0e0;
    font-size: 26px;
    margin-bottom: 15px;
}

.subscription .price {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.subscribe-btn,
.whatsapp-btn {
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s ease-in-out;
}

.subscribe-btn {
    background: #FFD700;
    color: #111;
}

.subscribe-btn:hover {
    background: #FFC107;
}

.whatsapp-btn {
    background: #25D366;
    color: #fff;
}

.whatsapp-btn:hover {
    background: #1EBE5D;
}

/* Solución para evitar el scroll lateral en móviles */
html, body {
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

.logo-container {
    width: 100%; /* antes decía 150%, esto causa desbordamiento */
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn {
    padding: clamp(10px, 2vw, 15px) clamp(20px, 4vw, 30px);
    font-size: clamp(18px, 4vw, 22px);
    background: linear-gradient(45deg, #787877, #C0C0C0);
    color: black;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 30px;
    margin: 0 auto;
    display: block;
    max-width: 90%;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.823);
}

img, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}