/* Variables y Estilos Generales */
:root {
    --bigalica-primary: #0D2D54;
    --bigalica-dark: #333333;
    --bigalica-success: #28A745;
}

.bg-primary-bigalica { background-color: var(--bigalica-primary) !important; }
.btn-primary-bigalica { background-color: var(--bigalica-primary); border-color: var(--bigalica-primary); }
.btn-primary-bigalica:hover { background-color: #0056b3; border-color: #0056b3; }
.text-primary-bigalica { color: var(--bigalica-primary) !important; }


html, body {
    height: 100%; /* Ocupa el 100% de la altura de la ventana */
    margin: 0;   /* Elimina el margen predeterminado */
    padding: 0;  /* Elimina el padding predeterminado */
}

#form1 { 
   display: flex;
    flex-direction: column;
    min-height: 100vh; /* <- en lugar de 100% */
}

	#logo{
 		height: 64px;
	}

/* ------------------------------------ */
/* SECCIÓN HERO / JUMBOTRON CON IMAGEN DE FONDO */
/* (Imagen 100% ancho, Contenido Centrado) */
/* ------------------------------------ */
#hero-jumbotron {
    width: 100%;
    min-height: 400px; /* Altura mínima para que la imagen se vea bien */
    background-image: url('../img/bigalica.jpg'); 
    background-size: cover; 
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    /* QUITAMOS display: flex, align-items, justify-content */
    padding-top: 80px; /* Suficiente padding para contenido y espacios */
    padding-bottom: 40px; 
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    overflow: hidden;
    /* Aseguramos que el texto sea blanco */
    color: white; 
}

/* Overlay para oscurecer la imagen y mejorar la legibilidad del texto */
#hero-jumbotron::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Capa semi-transparente negra */
    z-index: 1; 
}

/* Asegura que el contenido del jumbotron esté sobre el overlay */
#hero-jumbotron > .container-xl { /* Apuntamos directamente al container-xl */
    position: relative;
    z-index: 2;
    /* El text-center en la sección ya alinea el texto dentro del container-xl */
}

/* ------------------------------------ */
/* NAVEGACIÓN (HEADER) */
/* ------------------------------------ */
.nav-item .nav-link {
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 5px;
    padding: 8px 15px !important;
}
.nav-item .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white !important;
}

/* Estilos para el Offcanvas (Menú Lateral Móvil) */
.offcanvas-header {
    border-bottom: 3px solid rgba(255, 255, 255, 0.5);
}
.offcanvas-body .nav-link {
    color: var(--bigalica-dark) !important; 
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}
.offcanvas-body .nav-link:hover {
    background-color: var(--bigalica-primary); 
    color: white !important;
    transform: none; 
}
.btn-close-white {
    filter: invert(1); /* Hace que la X de cierre sea blanca sobre el fondo azul */
}


/* ------------------------------------ */
/* SECCIÓN SERVICIOS (VALUE CARDS) */
/* ------------------------------------ */
.value-card {
    border-top: 5px solid var(--bigalica-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.15) !important;
}

/* ------------------------------------ */
/* SECCIÓN CLIENTES (SCROLL HORIZONTAL) */
/* ------------------------------------ */
/* Contenedor Externo (Define el área de desplazamiento) */
.clients-scroll-area {
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    padding-bottom: 1rem; 
}

/* Pista de Logos (Fuerza la línea única) */
.logo-scroll-track {
    display: flex;
    flex-wrap: nowrap; 
    width: max-content; 
}

/* Contenedor individual de cada logo */
.client-logo-container {
    flex-shrink: 0; 
    width: 180px; 
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-right: 20px; 
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.client-logo-container:hover {
    opacity: 1;
    transform: scale(1.05);
}
.client-logo {
    max-height: 80px;
    max-width: 100%;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}
.client-logo-container:hover .client-logo {
    filter: none;
}


/* ------------------------------------ */
/* SECCIÓN PLANES (TABLAS) */
/* ------------------------------------ */
.table-hosting th {
    background-color: var(--bigalica-primary);
    color: white;
    border-color: white !important;
}

.table-services th {
    background-color: var(--bigalica-dark);
    color: white;
    border-color: white !important;
}

.table-data-cell {
    font-size: 0.85rem;
}

/* Filas de Precios */
.price-monthly { background-color: #ffc10740; font-weight: bold; }
.price-annual { background-color: #90EE9040; font-weight: bold; }
.price-text { color: var(--bigalica-success); font-weight: bold; }
.colspan-cell { background-color: #f8f9fa; font-style: italic; }

/* Efecto Hover en Columnas de Planes */
.plan-col {
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.table-hosting tr:not(.price-row):hover td:nth-child(2),
.table-services tr:not(.price-row):hover td:nth-child(2) {
    background-color: #e9f5ff; 
    transform: scale(1.01);
}
.table-hosting tr:not(.price-row):hover td:nth-child(3),
.table-services tr:not(.price-row):hover td:nth-child(3) {
    background-color: #e2f0e8; 
    transform: scale(1.01);
}
.table-hosting tr:not(.price-row):hover td:nth-child(4),
.table-services tr:not(.price-row):hover td:nth-child(4) {
    background-color: #fff3e0;
    transform: scale(1.01);
}

/* ------------------------------------ */
/* SECCIÓN BÚSQUEDA DE DOMINIO */
/* ------------------------------------ */
/* Asegura que el selector de TLD no sea demasiado ancho */
#tldSelect {
    max-width: 120px; 
    font-weight: bold;
    text-align: center;
}
/* Ajuste de color para el input dentro del fondo azul */
#domainInput, #tldSelect {
    border: none;
}

.main-content {
  flex: 1; /* ocupa el espacio sobrante */
}


/* ------------------------------------ */
/* PIE DE PÁGINA (FOOTER) */
/* ------------------------------------ */
.footer { 
    background-color: var(--bigalica-dark); 
    color: #cccccc; 
     flex-shrink: 0;

}


/* Oculta la barra de desplazamiento horizontal en el contenedor responsive */
.table-responsive {
    /* Ocultar en navegadores basados en WebKit (Chrome, Safari) */
    scrollbar-width: none; /* Firefox */
}

/* Ocultar en navegadores basados en WebKit (Chrome, Safari, Edge) */
.table-responsive::-webkit-scrollbar {
    display: none;
}

/* 1. Neutraliza el 'padding-right' que causa el salto horizontal. */
/* Esto ocurre cuando se oculta la barra de desplazamiento. */
body.swal2-shown {
    padding-right: 0 !important; /* evita empujón al quitar scroll */
    height: auto !important;     /* asegura que flex no se rompa */
}

/*.swal2-toast-center {
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-bottom: 100px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    color: black;
}*/

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.40);
    justify-content: center;
    align-items: center;
}

.modal-title {
    font-size: 1em;
    font-weight: 600;
}

.modal .modal-content {
    /*background: #fff;*/
    padding: 30px;
    border-radius: 10px;
    max-width: 350px;
    max-height: 560px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    position: relative;
    background-color: white;
    background-size: cover;
    width: 100%;
    height: 100%;
}

.modal .modal-intro {
    /*background: #fff;*/
    padding: 30px;
    border-radius: 10px;
    max-width: 448px;
    max-height: 560px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    position: relative;
    background: url(../image/perfil/intro.jpeg);
    background-size: cover;
    width: 100%;
    height: 100%;
}


.modal .modal-productos {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    position: relative;
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

    .modal .close:hover {
        color: #333;
    }

#scrollUp {
    color: var(--bigalica-primary); 
    right: 25px;
    bottom: 130px;
    text-align: center;
    overflow: hidden;
    z-index: 996 !important;
    background-color:transparent ;
}

    #scrollUp i {
        line-height: 32px !important;
        font-size: 42px;
    }

    #scrollUp:hover {
        transform: translateY(-5px);
        color: var(--bigalica-dark); 
    }


.swiper-contendor {
    padding-bottom: 20px;
    border-bottom: 1px inset #cecece;
    padding-top: 10px;
}

    .swiper-contendor h1 {
        padding-left: 20px;
        font-size: 18px;
        font-weight: 600;
    }


.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 16px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .swiper-slide img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }




/* ------------------------------------ */
/* RESPONSIVENESS (Media Queries) */
/* ------------------------------------ */
@media (max-width: 767.98px) {
    #hero-jumbotron {
        min-height: 300px; /* Menor altura en móviles */
        padding-top: 60px; /* Ajusta el padding */
        padding-bottom: 60px;
    }
    #hero-jumbotron h1 {
        font-size: 2rem !important;
    }
    #hero-jumbotron p {
        font-size: 1rem !important;
    }
}

/* Móviles (Pantallas pequeñas: hasta 575px) */
@media (max-width: 575.98px) {
    /* Ajuste de tipografía general */
    .display-5 { font-size: 1.75rem !important; }
    .fs-4 { font-size: 1.1rem !important; }
    .fs-5 { font-size: 1rem !important; }
    
    /* Reducir padding de las cards de servicios */
    .value-card .card-body { padding: 15px; }

    /* Ajuste para el scroll de clientes */
    .client-logo-container { 
        width: 140px; 
        height: 100px;
    }
    .client-logo { max-height: 50px; }

    /* --- AJUSTES ESPECÍFICOS PARA TABLAS --- */
    .table-data-cell {
        font-size: 0.75rem; 
    }
    .table-hosting th, 
    .table-services th {
        font-size: 0.7rem; 
        padding: 0.4rem 0.2rem; 
    }
    .table-services small {
        font-size: 0.65rem;
        display: block; 
    }
    .price-row td, 
    .price-row th {
        font-size: 0.75rem;
    }
    #planes p.text-end {
        font-size: 0.75rem !important;
    }
	#logo{
 		height: 48px;
	}
    /* -------------------------------------- */
}

/* Tabletas (Pantallas medianas: 576px a 991px) */
@media (min-width: 576px) and (max-width: 991.98px) {
    .display-5 { font-size: 2.5rem !important; }
    
    .client-logo-container { height: 100px; }
    .client-logo { max-height: 65px; }
	#logo{
 		height: 48px;
	}
}

/* Pantallas Grandes (A partir de 992px) */
@media (min-width: 992px) {
    .container-xl { max-width: 1320px; }
}