:root {
    --primary:#ff5722;
    --secondary: #f44336;
    --light: #f4f6f8ea;
    --dark: #040F28;
    
}

/* --- Título en la parte superior del carrusel --- */
.carousel-title {
    position: absolute;
    top: 6%; /* Mantiene el título en la parte superior */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.carousel-title h1 {
    font-size: 3rem;
    text-transform: uppercase;
    text-shadow: 0.12rem 0.25rem 0.50rem rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    transition: transform 1s ease-in-out;
    color: var(--light);
}

.carousel-title h1:hover {
    transform: scale(1.2rem);
}

/* --- Íconos flotantes dentro del carrusel --- */
.floating-icons {
    color: white !important;
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    display: flex;
    flex-direction: column;
    gap: 0.94rem;
}

/* --- Estilos de los íconos flotantes --- */
.floating-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18rem;
    height: 3rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white !important;
    font-size: 0.88rem;
    font-weight: bold;
    border-radius: 0.5rem;
    text-decoration: none;
    box-shadow: 0 0.25rem 0.62rem rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-icon i {
    font-size: 1.12rem;
    margin-right: 0.62rem;
}

.floating-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0.38rem 0.94rem rgba(0, 0, 0, 0.3);
}

/* --- Ajustes responsivos para íconos flotantes --- */
@media (max-width: 768px) {
    .floating-icons {
        bottom: 25%;
    }

    .floating-icon {
        width: 9rem;
        height: 2.8rem;
        font-size: 0.75rem;
    }

    .floating-icon i {
        font-size: 1rem;
    }
}

/* Estilo general del footer */

/* Contenedor principal del footer */
.footer {
    background-color: #111; /* Fondo oscuro */
    color: #ccc; /* Texto claro */
    padding: 3rem 1rem; /* Espaciado interno */
    line-height: 1.5; /* Mejora la legibilidad */
    
}

/* Contenedor del logo y descripción */
.footer-logo-wrapper {
    max-width: 40.62rem; /* Limita el ancho total del logo y texto */
    margin: 0 auto; /* Centrado en pantallas pequeñas */
    text-align: center; /* Centrado inicial */
    gap: 1rem; /* Espaciado entre elementos internos */
}

/* Logo del footer con animación */
.footer-logo-image {
    width: 100%; /* Ocupa todo el ancho del contenedor */
    max-height: 100%; /* Mantiene proporciones */
    max-width: 18.75rem; /* Tamaño máximo del logo */    
    transition: transform 0.3s ease; /* Transición suave para hover */
}




/* Encabezado para Ventas */
.page-header-ventas {
    height: 12.50rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url('../img/servicios/prueba\ encabezado\ venta.png') center center no-repeat;
    background-size: cover;
    filter: brightness(1.1);
    transition: all 0.3s ease-in-out;
}

/* Encabezado para Servicios */
.page-header-servicios {
    height: 12.50rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url('/img/servicios/encabezado\ servicio.png') center center no-repeat;
    background-size: cover;
    filter: brightness(1.1);
    transition: all 0.3s ease-in-out;
}

/* Encabezado para Arriendos */
.page-header-arriendos {
    height: 12.50rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.2)), url('../img/servicios/encabezado\ arriendo.png')  center center no-repeat;
    background-size: cover;
    filter: brightness(1.1);
    transition: all 0.3s ease-in-out;
}


.page-header h1 {
    color: var(--primary); /* Color primario */
    text-shadow: 0.12rem 0.12rem 0.38rem rgba(0, 0, 0, 0.7); /* Sombra negra para contraste */
    font-weight: bold;
    letter-spacing: 0.12rem;
}
/* Efecto Overlay General tarjetas servicios y ventas */
.service-item {
    width: 100%; /* Ocupa todo el ancho disponible */
    max-width: 25.00rem;
    margin: 1.25rem auto; 
    height: 18.75rem; 
    overflow: hidden; 
    display: flex; 
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 0.62rem; 
    background-color: #f8f9fa; 
    box-shadow: 0 0.25rem 0.38rem rgba(0, 0, 0, 0.1); 
}

.service-item img {
    width: 120%; 
    height: 110%;
    object-fit: cover;
}

.service-item:hover img {
    transform: scale(1.2); 
}

/* Clase personalizada para bajar el botón leer mas tarjeta twister seccion ventas */
.ajustar-boton {
    position: relative;
    top: 60px;
    margin-top: 8px; 
    display: inline-flex;
    align-items: center;
}

.service-item-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Overlay permanente */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 15, 0.295); 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    z-index: 1;
}



/* Responsivo */
@media (max-width: 768px) {
    .service-item {
        max-width: 88%; 
        height: 15.62rem; 
    }

    .service-item img {
        width: 100%; 
        height: 100%; 
        object-fit: cover; 
    }
}

/* Configuración de los Iconos sociales Flotantes */
.social-icons-floating {
    position: fixed;
    top: 50%; 
    left: 0; 
    transform: translateY(-50%);
    z-index: 9999; 
    display: flex;
    flex-direction: column;
}

/* Ajustes para móviles: Mueve los iconos a la parte inferior derecha */
@media (max-width: 768px) {
    .social-icons-floating {
        top: auto; 
        bottom: 0.75rem !important;
        right: 0.75rem !important; 
        left: auto !important; 
        flex-direction: row !important; 
        gap: 0.50rem !important; 
    }
}

/* Ajuste adicional para pantallas más pequeñas como iPhones */
@media (max-width: 375px) {
    .social-icons-floating {
        bottom: 0.50rem !important;
        right: 0.50rem !important;
    }
}

/* Reducción de tamaño en pantallas menores a 320px */
@media (max-width: 320px) {
    .social-icons-floating .social-icon {
        width: 2rem; 
        height: 2rem;
        font-size: 1rem; 
        margin: 0.10rem 0; 
    }
}

/* Estilos de los íconos */
.social-icons-floating .social-icon {
    width: 2.50rem;
    height: 2.50rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.38rem;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    margin: 0.12rem 0;
    background: linear-gradient(45deg, #ff5722, #f44336);
    border-radius: 0.31rem;
}

.social-icons-floating .social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0.00rem 0.25rem 0.62rem rgba(0, 0, 0, 0.3);
}

/* Colores específicos por red social */
.social-icons-floating .instagram {
    background: linear-gradient(45deg, var(--primary), #e6683c);
}

.social-icons-floating .facebook,
.social-icons-floating .linkedin,
.social-icons-floating .youtube {
    background: var(--primary);
}

/* Hover para todos los iconos sociales */
.social-icons-floating .social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0.00rem 0.25rem 0.62rem rgba(0, 0, 0, 0.3);
    background: var(--secondary);
}


 /* estilos sub paguinas servicios */

/* Transición inicial para el icono */
.rotate-btn .rotate-icon {
    display: inline-block; 
    transition: transform 0.5s ease-in-out;
}

/* Efecto al hacer hover sobre el botón */
.rotate-btn:hover .rotate-icon {
    transform: rotate(360deg);
}

/* estilos  seccion manteniminto ( color de discos) */
 .text-orange {
    color: #FFA500; 
}

.text-green {
    color: #28a745; 
}

.text-blue {
    color: #007bff;
}

.text-yellow {
    color: #ffc107; 
}
/* ----fin---- */

/* ---- CONTENEDOR RESPONSIVO ---- */
@media (max-width: 768px) {
    .custom-container {
        max-width: 95%;
        margin: 0 auto;
        padding: 2.38rem;
    }

    h5 {
        font-size: 1.2rem;
        text-align: left;
    }

    p {
        font-size: 1rem;
        line-height: 1.5;
        text-align: justify;
    }

    .img-fluid {
        max-width: 100%;
        max-height: 100%;
        margin-bottom: 0.94rem;
    }
}

/* ---- ESTRUCTURA DE SUBPÁGINAS ---- */

/* Fila personalizada */
.custom-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 100%;
    margin: 0 auto;
}

/* Carrusel de imágenes */
.custom-carousel-container {
    flex: 2;
    min-width: 21.88rem;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ajuste de imágenes del carrusel */
.custom-img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* ---- MEDIA QUERIES PARA RESPONSIVIDAD ---- */

/* Pantallas medianas (Tablets) */
@media (max-width: 992px) {
    .custom-img {
        height: 28.12rem;
    }
}

/* Pantallas pequeñas (Móviles) */
@media (max-width: 576px) {
    .custom-carousel-container {
        padding: 0.31rem;
    }

    .custom-img {
        max-height: 90vh;
        object-fit: cover;
        object-position: center;
    }
}

/* ---- MEDIA QUERIES PARA IPADS Y TABLETS GALAXY ---- */

/* iPad Air & Galaxy Tab 820 x 1180 */
@media (max-width: 820px) and (max-height: 1180px) {
    .custom-modal-content {
        max-height: 85vh;
    }
}

/* Galaxy Tab 800 x 1280 */
@media (max-width: 800px) and (max-height: 1280px) {
    .custom-modal-content {
        max-height: 83vh;
    }
}

/* Galaxy Tab 712 x 1138 */
@media (max-width: 712px) and (max-height: 1138px) {
    .custom-modal-content {
        max-height: 82vh;
    }
}

/* Galaxy Tab 912 x 1368 */
@media (max-width: 912px) and (max-height: 1368px) {
    .custom-modal-content {
        max-height: 85vh;
    }
}

/* Galaxy Tab 540 x 720 */
@media (max-width: 540px) and (max-height: 720px) {
    .custom-modal-content {
        max-height: 78vh;
    }
}

/* ---- MEDIA QUERIES ESPECÍFICAS PARA IPHONE 15 ---- */

/* iPhone 15 y iPhone 15 Pro (390 x 844 px) */
@media (max-width: 390px) and (max-height: 844px) {
    .custom-container {
        padding: 2rem;
    }

    .custom-carousel-container {
        min-width: 19rem;
    }

    .custom-img {
        height: auto;
        max-height: 85vh;
    }

    h5 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.95rem;
    }
}
/* ---- Ajuste de imágenes en tablets (iPads y Galaxy Tabs) ---- */
@media (max-width: 1024px) { 
    .custom-img {
        display: block;
        max-width: 100%; 
        height: auto;
        margin: 0 auto; 
    }
}

/* Galaxy Tab S4 (712 x 1138), iPad Mini, iPad Air */
@media (max-width: 820px) and (max-height: 1180px) {
    .custom-carousel-container {
        display: flex;
        justify-content: center; 
        align-items: center;
    }

    .custom-img {
        max-width: 90%; 
        height: auto;
        object-fit: contain; 
    }
}   
/* Ajuste específico para Galaxy Tab S4 y iPad Mini */
@media (max-width: 712px) and (max-height: 1138px) {
    .custom-carousel-container {
        text-align: center;
    }

    .custom-img {
        max-width: 85%;
        height: auto;
    }
}

/* Ajuste adicional para iPads más grandes y Galaxy Tab 800 x 1280 */
@media (max-width: 800px) and (max-height: 1280px) {
    .custom-carousel-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .custom-img {
        max-width: 85%;
        height: auto;
    }
}

/* iPhone 15 Plus y iPhone 15 Pro Max (430 x 932 px) */
@media (max-width: 430px) and (max-height: 932px) {
    .custom-container {
        padding: 2.2rem;
    }

    .custom-carousel-container {
        min-width: 20rem;
    }

    .custom-img {
        height: auto;
        max-height: 88vh;
    }

    h5 {
        font-size: 1.15rem;
    }

    p {
        font-size: 1rem;
    }
}

/* Android 1080p (estándar) */
@media (max-width: 412px) and (max-height: 915px) {
    .custom-container {
        padding: 2rem;
    }

    .custom-img {
        height: auto;
        max-height: 85vh;
    }
}

/* Android más pequeños (Pixel 4a, Galaxy A) */
@media (max-width: 360px) and (max-height: 800px) {
    .custom-container {
        padding: 1.8rem;
    }

    .custom-img {
        height: auto;
        max-height: 80vh;
    }

    h5 {
        font-size: 1rem;
    }

    p {
        font-size: 0.9rem;
    }
}


/* ---- MODAL PARA AMPLIAR IMÁGENES ---- */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    padding: 0.94rem;
    overflow: hidden;
}

/* Imagen dentro del modal */
.custom-modal-content {
    max-width: 100%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 0.50rem;
    box-shadow: 0 0 0.94rem rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease-in-out;
}

/* Botón de cierre del modal */
.custom-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.88rem;
    color: white;
    font-size: 1.88rem;
    font-weight: bold;
    cursor: pointer;
}
/* ---- BOTONES DE NAVEGACIÓN ---- */
.custom-modal-prev,
.custom-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0.62rem;
    user-select: none;
}

.custom-modal-prev {
    left: 0.94rem;
}

.custom-modal-next {
    right: 0.94rem;
}

/* ---- TEXTO DE DESCRIPCIÓN ---- */
.custom-description {
    font-size: clamp(0.9rem, 1vw, 1.2rem);
}

/* ---- RESPONSIVIDAD ---- */

/* Pantallas medianas (Tablets, iPads y Galaxy Tabs) */
@media (max-width: 992px) {
    .custom-modal-content {
        max-height: 85vh;
    }
}

/* Pantallas pequeñas (Móviles) */
@media (max-width: 576px) {
    .custom-modal-content {
        transform: scale(1.1);
        max-height: 80vh;
    }

    .custom-modal-caption {
        font-size: 0.88rem;
    }

    .custom-modal-prev,
    .custom-modal-next {
        font-size: 1.88rem;
    }

    .custom-modal-close {
        font-size: 1.56rem;
    }
}

/* ---- MEDIA QUERIES PARA IPADS Y TABLETS GALAXY ---- */

/* iPad Air & Galaxy Tab 820 x 1180 */
@media (max-width: 820px) and (max-height: 1180px) {
    .custom-modal-content {
        max-height: 85vh;
    }
}

/* Galaxy Tab 800 x 1280 */
@media (max-width: 800px) and (max-height: 1280px) {
    .custom-modal-content {
        max-height: 83vh;
    }
}

/* Galaxy Tab 712 x 1138 */
@media (max-width: 712px) and (max-height: 1138px) {
    .custom-modal-content {
        max-height: 82vh;
    }
}

/* Galaxy Tab 912 x 1368 */
@media (max-width: 912px) and (max-height: 1368px) {
    .custom-modal-content {
        max-height: 85vh;
    }
}

/* Galaxy Tab 540 x 720 */
@media (max-width: 540px) and (max-height: 720px) {
    .custom-modal-content {
        max-height: 78vh;
    }
}

/* ---- MEDIA QUERIES ESPECÍFICAS PARA IPHONE 15 ---- */

/* iPhone 15 y iPhone 15 Pro (390 x 844 px) */
@media (max-width: 390px) and (max-height: 844px) {
    .custom-modal-content {
        max-height: 78vh;
    }

    .custom-modal-close {
        font-size: 1.5rem;
        top: 1rem;
        right: 1.5rem;
    }

    .custom-modal-prev,
    .custom-modal-next {
        font-size: 1.8rem;
        padding: 0.5rem;
    }
}

/* iPhone 15 Plus y iPhone 15 Pro Max (430 x 932 px) */
@media (max-width: 430px) and (max-height: 932px) {
    .custom-modal-content {
        max-height: 80vh;
    }

    .custom-modal-close {
        font-size: 1.6rem;
        top: 1rem;
        right: 1.6rem;
    }

    .custom-modal-prev,
    .custom-modal-next {
        font-size: 2rem;
        padding: 0.6rem;
    }
}

/* Android 1080p (estándar) */
@media (max-width: 412px) and (max-height: 915px) {
    .custom-modal-content {
        max-height: 80vh;
    }

    .custom-modal-close {
        font-size: 1.5rem;
    }

    .custom-modal-prev,
    .custom-modal-next {
        font-size: 1.9rem;
    }
}

/* Android más pequeños (Pixel 4a, Galaxy A) */
@media (max-width: 360px) and (max-height: 800px) {
    .custom-modal-content {
        max-height: 75vh;
    }

    .custom-modal-close {
        font-size: 1.4rem;
    }

    .custom-modal-prev,
    .custom-modal-next {
        font-size: 1.7rem;
    }
}

/* ---- Ajustes para pantallas muy pequeñas (≤ 320px) ---- */
@media (max-width: 320px) {
    .custom-container {
        padding: 1.5rem;
    }

    .custom-carousel-container {
        min-width: 18rem; 
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }

    .custom-img {
        max-height: 75vh; 
        object-fit: cover;
        object-position: center;
    }

    h5 {
        font-size: 1rem; 
    }

    p {
        font-size: 0.88rem;
        text-align: justify; 
        line-height: 1.4;
    }
}

/* ---- Centrar los párrafos ---- */
.custom-text-center {
    text-align: center;
    margin-bottom: 1rem; 
}

/* ---- Ajustar espaciado de los botones en móviles ---- */
@media (max-width: 576px) {
    .custom-actions {
        display: flex;
        flex-direction: column; 
        align-items: center; 
        gap: 0.8rem; 
        width: 100%;
        padding: 1rem 0; 
    }

    .custom-actions button,
    .custom-actions a {
        width: 85%; 
        max-width: 200px; 
        padding: 0.5rem 0.8rem; 
        font-size: 0.85rem; 
    }
}



       
/* Botón para volver arriba */
.back-to-top {
    position: fixed;
    bottom: 1.25em; 
    right: 50%; 
    display: none; 
    width: 60px; 
    height: 60px; 
    font-size: 1.50rem; 
    background-color: #ff6600; 
    color: white; 
    border: none;
    border-radius: 50%; 
    z-index: 9999; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); 
    transition: all 0.3s ease-in-out;
    cursor: pointer; 
}

/* Mostrar cuando se activa */
.back-to-top.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Asegurar que el botón sea clickeable en todas las pantallas */
.back-to-top:active,
.back-to-top:focus {
    outline: none;
    box-shadow: 0px 0px 10px rgba(255, 102, 0, 0.7); /* Resalta al hacer clic */
}

/* Responsivo */
@media (max-width: 768px) {
    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        bottom: 0.94em;
        right: 40%;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.12rem;
        bottom: 0.62em;
        right: 40%;
    }
}




/* Estilo base para los enlaces */
.navbar-nav {
    justify-content: center; 
}

/* Efecto de línea mejorado */
.navbar-nav .nav-link::after {
    content: ""; 
    position: absolute;
    bottom: 0; 
    left: 0; 
    width: 0%; 
    height: 5px; 
    background-color: #ff5722; 
    transition: width 0.3s ease-in-out;
}

/* Expansión de la línea al pasar el ratón o hacer clic */
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:active::after {
    width: 100%; 
}

/* Estilo base para los enlaces */
.navbar-nav .nav-link {
    position: relative; 
    font-size: 1.2rem; 
    text-decoration: none; 
    color: #fff; 
    text-align: center; 
    padding: 0.6rem; 
    transition: color 0.3s ease;
    justify-content: center; 
    display: flex; 
}

/* --- Ajuste general para el navbar --- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 2rem; 
    min-height: 2.8rem; 
    background-color: #0b132b;
    position: relative;
    z-index: 1000;
    width: 100%;
    max-width: 1400px; 
    margin: 0 auto; 
}

/* --- Ajuste para el logo --- */
#navbarLogo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 35%; 
    margin-left: -20px; 
}


/* --- Tamaño del logo ajustado --- */
#navbarLogoImage {
    height: auto;
    max-height: clamp(30rem, 3vw, 15rem); 
    max-width: 90%;
    object-fit: contain;
    transition: max-height 0.3s ease, transform 0.3s ease;
}


/* ============================== */
/*  menú hamburguesa  */
/* ============================== */
.navbar-toggler {
    position: absolute; 
    right: -18px; 
    top: 16px; 
    z-index: 1000; 
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================== */
/* 🖥️ Ajustes para Monitores Grandes */
/* ============================== */

/* --- Monitores de 30 pulgadas (2560x1440 o similares) --- */
@media (min-width: 2560px) and (max-width: 3199px) {
    #navbarLogo {
        max-width: 58px;
        margin-left: -40px; 
    }

    #navbarLogoImage {
        max-height: clamp(12rem, 3.5vw, 18rem); 
        max-width: 220%;
    }
}

/* --- Monitores de 40 pulgadas (3840x2160 o similares) --- */
@media (min-width: 3200px) and (max-width: 3999px) {
    #navbarLogo {
        max-width: 28%;
        margin-left: -50px;
    }

    #navbarLogoImage {
        max-height: clamp(14rem, 4vw, 20rem);
        max-width: 240%;
    }
}

/* --- Monitores de 50 pulgadas (5120x2880 o superiores) --- */
@media (min-width: 4000px) {
    #navbarLogo {
        max-width: 25%;
        margin-left: -60px;
    }

    #navbarLogoImage {
        max-height: clamp(16rem, 5vw, 22rem);
        max-width: 260%;
    }
}


/* ============================== */
/* 📱 Ajustes para Dispositivos Móviles */
/* ============================== */

/* --- Móviles pequeños (hasta 360px, como iPhone SE, Galaxy A10) --- */
@media (max-width: 360px) {
    #navbarLogo {
        max-width: 50%;
        margin-left: -10px; 
    }

    #navbarLogoImage {
        max-height: clamp(5rem, 3vw, 7rem); 
        max-width: 190%;
    }
}

/* --- Móviles medianos (iPhone 12, 13, 14, 15, Samsung S9+, S10) --- */
@media (min-width: 361px) and (max-width: 480px) {
    #navbarLogo {
        max-width: 45%;
        margin-left: -15px;
    }

    #navbarLogoImage {
        max-height: clamp(6rem, 3.5vw, 8rem);
        max-width: 190%;
    }
}

/* --- Móviles grandes (iPhone 15, 16 Pro Max, Samsung S20, S21, S22) --- */
@media (min-width: 481px) and (max-width: 600px) {
    #navbarLogo {
        max-width: 40%;
        margin-left: -20px;
    }

    #navbarLogoImage {
        max-height: clamp(7rem, 4vw, 9rem);
        max-width: 140%;
    }
}



/* ============================== */
/*  Ajustes para iPad Mini */
/* ============================== */

/* --- iPad Mini en vertical (768x1024) --- */
@media (min-width: 600px) and (max-width: 768px) and (orientation: portrait) {
    #navbarLogo {
        max-width: 30%;
        margin-left: -10px;
    }

    #navbarLogoImage {
        max-height: clamp(8rem, 3.5vw, 10rem); /* 🔥 Ajuste fino */
        max-width: 150%;
    }
}

/* --- iPad Mini en horizontal (1024x768) --- */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    #navbarLogo {
        max-width: 28%;
        margin-left: -30px;
    }

    #navbarLogoImage {
        max-height: clamp(9rem, 4vw, 12rem);
        max-width: 160%;
    }
}

/* Ajuste logo aniversario */
#aniversaryLogo {
    position: absolute;
    top: 10px; 
    left: -60px; 
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px; 
}

#aniversaryLogoImage {
    max-height: clamp(2px, 6vw, 5px); /* Ajuste responsivo */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;

    
}



/* 📱 Ajuste para móviles pequeños (iPhone 12 Pro, S9+, etc.) */
@media (max-width: 480px) {
    #aniversaryLogo {
        top: 22px; /* Ajuste superior */
        left: -12px; /* Lo alinea mejor a la izquierda */
        padding-left: 0; /* Elimina cualquier padding extra */
    }

    #aniversaryLogoImage {
        max-height: 20px; /* Reduce el tamaño del logo en móviles */
    }
}

/* 📱 Ajuste para móviles medianos (iPhone 15, Galaxy S9+, etc.) */
@media (min-width: 481px) and (max-width: 768px) {
    #aniversaryLogo {
        top: 8px; /* Ajuste superior */
        left: 8px; /* Lo alinea más a la izquierda */
    }

    #aniversaryLogoImage {
        max-height: 40px; /* Ajuste del tamaño */
    }
}
/* 📟 Ajuste para tablets pequeñas (iPad Mini, Galaxy Tab S4 en vertical) */
@media (min-width: 600px) and (max-width: 768px) {
    #aniversaryLogo {
        top: 20px; /* Ajuste de alineación */
        left: -35px; /* Corrección fina para mantener estructura */
    }

    #aniversaryLogoImage {
        max-height: clamp(40px, 5.5vw, 70px); /* Se ajusta mejor sin perder tamaño */
    }
}

/* 📟 Ajuste para tablets medianas (iPad Air, Galaxy Tab S4 en horizontal) */
@media (min-width: 769px) and (max-width: 1024px) {
    #aniversaryLogo {
        top: 60px; /* Corrección de altura */
        left: -45px; /* Ajuste para centrar mejor en iPad Air */
    }

    #aniversaryLogoImage {
        max-height: clamp(40px, 6vw, 75px); /* Se mantiene el diseño original sin alteraciones */
    }
}

/* 📟 Ajuste para iPad Air en vertical (820x1180) */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    #aniversaryLogo {
        top: 20px; /* Ajuste fino para alineación */
        left: -38px; /* Corrección para evitar que se desplace */
    }

    #aniversaryLogoImage {
        max-height: clamp(40px, 6vw, 75px); /* Se mantiene la estructura sin alterar */
    }
}

/* 📟 Ajuste para iPad Pro 11" y 12.9" en vertical (834x1194 y 1024x1366) */
@media (min-width: 834px) and (max-width: 1366px) and (orientation: portrait) {
    #aniversaryLogo {
        top: 12px; /* Mantiene la alineación correcta */
        left: -48px; /* Ajuste fino para evitar desplazamientos */
    }

    #aniversaryLogoImage {
        max-height: clamp(40px, 6vw, 85px); /* Ajuste sin alterar la estructura */
    }
}

/* 📟 Ajuste para iPad Pro 11" y 12.9" en horizontal (1194x834 y 1366x1024) */
@media (min-width: 1025px) and (max-width: 1366px) and (orientation: landscape) {
    #aniversaryLogo {
        top: 10px; /* Mantiene la misma alineación */
        left: -35px; /* Ajuste preciso para centrar mejor */
    }

    #aniversaryLogoImage {
        max-height: clamp(40px, 6vw, 90px); /* Se mantiene el tamaño sin alterar la estructura */
    }
}


/* 📟 Ajuste para iPad Air en horizontal (1180x820) */
@media (min-width: 1025px) and (max-width: 1280px) and (orientation: landscape) {
    #aniversaryLogo {
        top: 10px; /* Mantiene la misma alineación */
        left: -35px; /* Ajuste fino para mejor centrado */
    }

    #aniversaryLogoImage {
        max-height: clamp(20px, 6vw, 30px); /* Tamaño ajustado respetando el diseño */
    }
}



/* 🖥️ Ajuste para monitores grandes */
@media (min-width: 1281px) {
    #aniversaryLogo {
        top: 10px; /* Se mantiene igual */
        left: -40px; /* No se mueve más */
    }

    #aniversaryLogoImage {
        max-height: clamp(10px, 6vw, 40px); /* Conserva la estructura original */
    }
}
/* fin logo */


/* Ajuste  logo wepay en el footer */
#webpayLogo {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Asegura alineación vertical */
    margin-top: -20px; /* Sube más el logo */
    margin-bottom: -15px; /* Reduce espacio inferior */
    padding: 0; /* Elimina cualquier relleno extra */
}

/* 📌 Ajuste del tamaño del logo */
#webpayLogoImage {
    max-width: clamp(140px, 18vw, 220px); /* Ajuste fino del tamaño */
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* 📌 Ajuste para pantallas pequeñas (móviles) */
@media (max-width: 480px) {
    #webpayLogo {
        margin-top: -18px; /* Sube aún más en móviles */
        margin-bottom: -10px;
    }

    #webpayLogoImage {
        max-width: 150px; /* Ajuste de tamaño en móviles */
    }
}

/* 📌 Ajuste para tablets */
@media (min-width: 481px) and (max-width: 768px) {
    #webpayLogo {
        margin-top: -15px; /* Sube moderadamente en tablets */
        margin-bottom: -10px;
    }

    #webpayLogoImage {
        max-width: 170px; /* Ajuste de tamaño para tablets */
    }
}







/* Estilo base para "Link de Pago" */
.link-pago-text {
    font-weight: bold; /* Texto en negrita */
    font-size: clamp(14px, 2vw, 20px); /* Ajuste responsivo */
    text-align: center; /* Centra el texto */
    margin-bottom: 5px; /* Espacio entre el texto y el logo */
}

/* 📱 Ajuste para móviles pequeños */
@media (max-width: 480px) {
    .link-pago-text {
        font-size: 14px; /* Texto más pequeño en pantallas reducidas */
    }
}

/* 📱 Ajuste para móviles medianos */
@media (min-width: 481px) and (max-width: 768px) {
    .link-pago-text {
        font-size: 16px; /* Tamaño medio */
    }
}

/* 📟 Ajuste para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .link-pago-text {
        font-size: 18px; /* Tamaño optimizado para tablets */
    }
}

/* 🖥️ Ajuste para pantallas grandes */
@media (min-width: 1025px) {
    .link-pago-text {
        font-size: 28px; /* Mantiene un tamaño adecuado en escritorios */
        
    }
}

/* Puedes agregar esto en tu archivo style.css o en un <style> en el <head> */
.btn-ml {
    background: linear-gradient(90deg, #ffe600 80%, #fffde7 100%);
    border: 2px solid #ffe600;
    color: #333 !important;
    box-shadow: 0 2px 8px 0 rgba(255,230,0,0.15);
    transition: transform 0.1s, box-shadow 0.2s;
    font-weight: 600;
    font-size: 1.08rem;
    padding: 0.6em 1.2em;
}
.btn-ml:hover, .btn-ml:focus {
    transform: scale(1.04);
    box-shadow: 0 4px 16px 0 rgba(255,230,0,0.25);
    background: linear-gradient(90deg, #fffde7 80%, #ffe600 100%);
    color: #222 !important;
    text-decoration: none;
}
.btn-ml img {
    margin-right: 0.5em;
    margin-bottom: 2px;
}