/* -------------------------------------------
   Estilos generales para toda la página
------------------------------------------- */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

body {
    padding-top: 60px;
}

html {
    scroll-padding-top: 65px;
    /* Alinea con la altura del navbar fijo */
}


/* -------------------------------------------
   Navbar (barra de navegación)
------------------------------------------- */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
    /* transición para el hover */
}

/* Subrayado animado en enlaces */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #25D366;
    /* Verde WhatsApp */
    transition: width 0.3s;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: #25D366;
}

.nav-link.active {
    font-weight: bold;
}


/* -------------------------------------------
   Hero Section (sección principal)
------------------------------------------- */
section.bg-primary {
    background: linear-gradient(135deg, #0A58CA, #0D6EFD);
    background-size: cover;
    background-position: center;
    color: white;
}

.display-4-1 {
    font-weight: bold;
}

.display-4-2 { 
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 35px;
}

/* -------------------------------------------
   Tarjetas / Planes
------------------------------------------- */
.card {
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* -------------------------------------------
   Botones
------------------------------------------- */
.btn-primary {
    background-color: #007bff;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-verde {
    background-color: #25D366;
    /* Color WhatsApp */
    color: white;
    border: none;
    transition: all 0.2s ease-in-out;
}

.btn-verde:hover {
    background-color: #1ebe5d;
}

.btn-verde:active {
    background-color: #1aa34a;
    transform: scale(0.96);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


/* -------------------------------------------
   Botón flotante para volver arriba
------------------------------------------- */
.btn-subir {
    position: fixed;
    border-radius: 50%;
    z-index: 9999;
    display: flex;
    box-shadow: 0 7px 10px rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.btn-subir img {
    width: 40px;
    height: 40px;
}

#btn-subir {
    bottom: 60px;
    left: 40px;
    opacity: 0;
    pointer-events: none;
    background-color: #05111f;
    padding: 8px;
    border-radius: 15px;
    transition: opacity 0.8s ease;
}

#btn-subir.visible {
    opacity: 1;
    pointer-events: auto;
}

.btn-subir:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.btn-subir:active {
    transform: scale(0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}


/* -------------------------------------------
   Estructura de secciones y títulos
------------------------------------------- */
section {
    padding-top: 60px;
    padding-bottom: 60px;
}

h2 {
    font-weight: bold;
    margin-bottom: 30px;
    color: #222;
}


/* -------------------------------------------
   Footer (pie de página)
------------------------------------------- */
.footer-custom {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.footer-custom h5,
.footer-custom h6 {
    color: #ffffff;
}

.footer-custom p {
    color: #cbd5e1;
    font-size: 19px;
}

.footer-custom hr {
    opacity: 0.2;
}

.link-footer {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.link-footer:hover {
    color: #25D366;
    text-decoration: underline;
}

/* -------------------------------------------
   Formulario de contacto
------------------------------------------- */
form .form-control {
    border-radius: 0.375rem;
    border: 1px solid #ccc;
    box-shadow: none;
}

form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25);
}


/* -------------------------------------------
   WhatsApp flotante
------------------------------------------- */

/* Estilo base para botones flotantes (WhatsApp) */
.btn-whatsapp {
    position: fixed;
    bottom: 60px;
    right: 40px;
    background-color: #25D366;
    color: white;
    padding: 10px;
    border-radius: 50%;
    z-index: 9999;
    display: flex;
    box-shadow: 0 7px 10px rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

/* Animación del botón WhatsApp al pasar el mouse */
.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: scale(1.05) rotate(10deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Animación del botón WhatsApp al hacer click */
.btn-whatsapp:active {
    transform: scale(0.95);
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.4);
}


/* -------------------------------------------
   Imágenes enmarcadas
------------------------------------------- */
#promociones .container {
  display: flex;
  justify-content: center; /* centra los bloques horizontalmente */
  flex-wrap: wrap; /* permite que bajen si no caben en pantalla */
  gap: 20px; /* espacio entre ellos */
  text-align: center; /* centra los textos debajo */
}

.cajon-imagen {
    width: 100%;
    max-width: 260px;
    margin: 20px auto;
    padding: 12px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    overflow: visible;
}

.imagen-chica {
    width: 100%;
    height: auto;
	max-width: 200px;
    margin-bottom: 10px;
    transition: transform 0.35s ease;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    cursor: zoom-in;
}

/* Zoom SOLO en imagen */
.imagen-chica:hover {
    transform: scale(2.2);
    z-index: 9999;
    position: relative;
}

.imagen-chica:active {
    transform: scale(1.35);
    z-index: 9999;
    position: relative;
}

.logo {
    width: 80px;
    height: auto;
}

.logo2 {
    width: 135px;
    height: auto;
}

.texto-debajo {
    font-weight: bold;
    color: #0f172a;
    font-size: 22px;
    margin-bottom: 12px;
    text-transform: uppercase;
}


/* -------------------------------------------
   Textos personalizados
------------------------------------------- */
.texto-importante {
    font-size: 27px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

.texto-rojo {
    color: red;
    font-size: 20px;
    font-weight: bold;
}

.card-text {
    font-size: 18px;
}

.texto-amplia {
    font-size: 18px;
}

.texto-size {
    font-size: 19px;
}

.txt-size {
    font-size: 17px;
}

/* ----------------------------------------------
    Efecto expandible al pasar el mouse en la tarjeta 
---------------------------------------------- */
.efecto-expandible {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* cajon crece poquito */
.efecto-expandible:hover {
    transform: scale(1.04);
    z-index:10;
}

/* tambien en celular */
.efecto-expandible:active {
    transform: scale(1.04);
}

/* ---------------------------------------------
    Sombra y estilo al contenedor de mapa
------------------------------------------- */
.mapa-contenedor {
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

/* Estilos iguales para todas las redes sociales en el footer */
.icono-red {
    width: 30px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.icono-red:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/*-------------------------------------------------
    Centra mejor todas las tarjetas
-----------------------------------------------*/
.row.text-center.g-4 {
    justify-content: center;
}
/*-------------------------------------------------
    la tarjeta flotante quede arriba de todas sin romper el diseño
-----------------------------------------------*/
.cajon-imagen:hover {
    position: relative;
}

/* Ajustes especiales para computadoras */
@media (max-width: 768px) {

    .imagen-chica:hover,
    .imagen-chica:active {
        transform: scale(2.1);
    }

}

/* Ajustes especiales para celulares */
@media (max-width: 768px) {

    .imagen-chica {
        max-width: 170px;
    }

    .imagen-chica:active {
        transform: scale(1.25);
    }

}