﻿body {
    padding-top: 40px; /* altura del navbar */
}


/* Menú fijo con fondo oscuro */
.navbar.fixed-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #000000 !important;
    height: 60px;
    padding: 0px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Letras blancas en el menú */
.navbar .nav-link,
.navbar .navbar-brand {
    color: #ffffff !important;
    font-weight: bold;
    font-size: 1rem;
}

    /* Hover en links */
    .navbar .nav-link:hover {
        color: #ff6f61 !important;
    }

/

/* Asegura que los controles se expandan */
.fullWidth {
    width: 100% !important;
}

/* Margen inferior estándar para grupos de formulario */
.form-group {
    margin-bottom: 15px;
}

/* Opcional: Quita márgenes por defecto del body para que el layout se ocupe toda la pantalla */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

.form-group label {
    display: block; /* Asegura que la etiqueta ocupe toda la línea */
    text-align: left; /* Alinea el texto a la izquierda */
    margin-bottom: 5px; /* Separa la etiqueta del control, dándole un poco de espacio */
    font-size: 0.9em; /* Opcional: reduce ligeramente el tamaño de fuente para que la etiqueta no se vea tan larga */
    max-width: 150px; /* Opcional: limita el ancho de la etiqueta si deseas que no se extienda demasiado */
    white-space: nowrap; /* Evita que se extienda en varias líneas */
}

#pnlContactForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}


/* Sección Hero ocupando toda la pantalla; usamos tu imagen de cabecera como fondo */
.hero-section {
    width: 100%;
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: url('../Images/cabecerapaint.jpg') no-repeat center center;
    background-size: cover;
    padding-top: 80px;
}



/* Contenido central del Hero */
.hero-content {
    position: absolute;
    width: 100%;
    text-align: center;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    color: #fff;
}

.hero-content h1,
.hero-content p {
    position: relative;
    margin-bottom: 20px;
}

/* Base del Hero: Tarjetas */
.hero-cards {
    position:absolute;
    bottom:60px;
    width: 100%;
    height:auto;
    display: flex;
    justify-content: space-between; /* Centra las tarjetas */
    flex-wrap: wrap;
    gap: 20px; /* Aumentado para mayor separación entre tarjetas */
    padding: 40px 20px; /* Aumentado para bajarlas más */
    padding-top: 40px !important;
    margin-top:40px;
    /*position: absolute;*/
    /*bottom: 30px;*/ /* Desplaza las tarjetas más abajo */
    /*padding-bottom:30px;*/
}


/* Estilo de cada tarjeta con fondo blanco y borde naranja */
.service-card {
    background: #808080;
    border: 5px solid #ff6f61;
    border-radius: 10px;
    padding: 15px;
    width: 350px;
    flex-shrink: 0;
    transition: transform 0.3s, box-shadow 0.3s;
}



/* Flecha de navegación */
.arrow-down {
    position: absolute;
    bottom: 30px;
    right:20px;
    width: 60px;
    height: 60px;
    display:block;
}

.arrow-down img {
    width: 100%;
    opacity:1;
    transition: transform 0.3s ease-in-out;
}

.arrow-down img:hover {
    transform: scale(1.1); /* Efecto al pasar el mouse */
}
.welcome-section {
    text-align: center;
    font-size: 42px;
    font-weight: bold;
    color: #0073e6; /* Azul vibrante */
    padding: 30px 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
.welcome-container {
    background: linear-gradient(to right, #0073e6, #00a3ff); /* Azul degradado */
    padding: 50px 20px;
    border-radius: 10px;
}
.welcome-section {
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-grid {
    display: flex; /* Cambiado de grid a flex */
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}


/* Efecto hover */
.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


/* Contenedor del ícono */
.icon-container {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}



/* Imágenes temporales */
.icon-container img {
    max-width: 70%;
    max-height: 70%;
}

/* Descripción */
.service-description {
    font-size: 0.9em;
    font-weight: bold;
    text-align:center;
}


.cta-button {
    background: #ff6f61;
    color: #fff;
    padding: 10px 25px;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 5px;
}


/* ======= HEADER ======= */
.header-content {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    margin: auto;
}

.default-header h1, .default-header p {
    text-align: center !important;
    max-width: 900px; /* Ajusta el ancho máximo para una mejor legibilidad */
    margin: 10px auto;
    font-size: 18px;
    line-height: 1.6;
}

.zona-cabecera {
    margin-top: 0 !important;
    height: 140px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff9d6;
    
}

.header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}



.default-header {
    width: 100%;
    margin: auto;
    margin-bottom: 0 !important;
    padding:0;
    justify-content: center !important;
}


/* ======= BUTTONS ======= */
.btn {
    border: 2px;
    padding: 10px;
    background: #007bff !important;
    color: white;
}

.btn-outline-primary {
    background-color: #f4d06f !important; /* amarillo suave */
    color: #333 !important;
    border-color: #f4d06f !important;
}

.btn-outline-primary:hover {
    background-color: #ffb347 !important; /* naranja suave */
    color: white !important;
    border-color: #ffb347 !important;
}


/* ======= CARD STYLES ======= */
.card {
    width:80%;
    max-width: 1200px !important;
    padding: 20px;
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin:20px auto;
    margin-bottom:50px;

}

.card-header {
    background: linear-gradient(to right, #003399, #66a3ff);
    padding: 12px;
    border-radius: 10px 10px 0 0;
    font-weight: bold;
}

.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 450px;
    padding-bottom: 20px;
}
.card-custom {
    width: 100%;
    max-width: 900px;
    height: auto; /* 🔹 Permite crecimiento controlado */
    min-height: 500px; /* 🔹 Evita cambios bruscos */
    margin: auto;
    padding: 20px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid #007bff;
    border-radius: 10px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 🔹 Mantiene todo alineado */
}


.card .form-control {
    width: 100% !important;
    
}

.form-control {
    width: 100%; /* O ajusta a un porcentaje específico según necesidad */
    max-width: 600px; /* Tamaño máximo para evitar que sean muy pequeños */
    font-size: 18px;
    padding: 12px;
}

/* Asegurar alineación uniforme */
.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom:15px;
}

/* Centrar el botón y mejorar su tamaño */
.btn-primary {
    width: 220px;
    font-size: 18px;
    padding: 12px;
    display: block;
    margin: 20px auto; /* Lo centra en el formulario */
}


.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    place-items:center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width:100%;
    overflow-x: auto; /* 🔹 Permite scroll horizontal si es necesario */
}

/*.col {
    flex: 1;
    min-width:300px;
}

/* ======= GENERAL STYLES ================================================================================== */

/* Desplaza el contenido principal a la derecha del TreeView */
.content-to-right {
    margin-left: 250px;
    width: calc(100% - 280px);
    margin-top: 0; /* Ajusta según tu necesidad */
}

/* Elimina márgenes superiores no deseados en el título */
.no-margin {
    margin-top: 0 !important;
    padding-top: 0;
}

.text-list {
    text-align: left !important; /* Asegura que el texto quede alineado a la izquierda */
    font-weight: bold; /* Pone los títulos en negrita */
    padding-left: 10px; /* Opcional: agrega un pequeño margen izquierdo */
}

.form-control {
    width: 100% !important; /* Asegura que los inputs ocupen todo el ancho disponible */
    max-width: 500px !important; /* Ajusta el ancho máximo para que no sean demasiado largos */
    padding: 10px !important; /* Mejora la usabilidad con más espacio interno */
    font-size: 16px !important; /* Aumenta el tamaño del texto para mejor legibilidad */
}
.form-group {
    display: flex;
    flex-direction: row; /* 🔹 Mantiene los elementos en una columna */
    align-items: center;
    margin-bottom: 15px; /* 🔹 Espaciado entre cada campo */
}

.form-group label {
    width: 150px;
    text-align: right;
    font-weight: bold;
    margin-bottom: 10px;
    flex-shrink: 0;
}
.form-group .form-control{
    flex-grow:1;
}

.form-container {
    margin-top: 20px; /* 🔹 Espacio entre la tabla y los campos */
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    width: 100%;
    max-width: 600px;
    margin: auto;
}


.body-content {
    background-color: white;
    width: 100%;
    max-width: 100vw;
    height: auto;
    margin: auto !important;
    padding: 0 !important;
}

.contenedor-grillas {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px; /* 🔹 Espacio entre las grillas */
}

.grid-usuarios {
    flex-basis: 60%; /* 🔹 Se queda a la izquierda */
}

.grid-consultorios {
    flex-basis: 40%; /* 🔹 Se va a la derecha */
}


/* ======= FOOTER ======= */
.footer {
    text-align: center;
    padding: 20px;
}

.footer-text {
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

/*Tabla */

.table-striped {
    width: 100%;
    max-width: 1200px; /* Aumentamos el ancho máximo */
    margin: auto;
    border: 1px solid #ddd;
}

.table-striped th, .table-striped td {
    padding: 12px;
    text-align: left;
    vertical-align: middle; /* Centra el texto verticalmente */
}

.table-striped th {
    background-color: #007bff; /* Azul más atractivo */
    color: white;
    font-weight: bold;
    text-align: center;
}

.table-striped td {
    background-color: #f8f9fa;
}

.table-striped tr:hover {
    background-color: #e9ecef; /* Efecto hover */
}

.btn-sm {
    font-size: 14px;
    padding: 5px 10px;
}

#gvConsultorios {
    width: 100% !important; /* 🔹 Forzamos el ancho */
    max-width: 1200px !important;
}

#gvConsultorios th, #gvConsultorios td {
    padding: 12px !important;
    text-align: left !important;
}

#gvConsultorios th {
    background-color: #007bff !important;
    color: white !important;
    font-weight: bold !important;
}

#gvConsultorios tr:hover {
    background-color: #e9ecef !important;
}

/** definición param paneles panel */
.campo-formulario {
    font-size: 0.875rem; /* Letra más chica */
    padding: 4px 8px; /* Menos alto */
    height: auto; /* No forzamos alto fijo */
}

.zona-modulo {
    font-size: 14px;
    line-height: 1.4;
    padding: 1rem 1.5rem;
}





/* ======= RESPONSIVE DESIGN ======= */
@media screen and (min-width: 768px) {
    .body-content {
        padding: 0;
    }
    .menu {
        position:relative;
        left:0;
        display:block;
    }
}

@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .img-fluid {
        margin-bottom: 20px;
    }

    body {
        font-size: 14px;
        padding: 0 10px;
    }

    .grid-item {
        text-align: center;
        padding: 10px;
    }

    .header {
        padding: 10px;
    }
}
