html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    background: linear-gradient(135deg, #3a3f63, #5a5f87);
    min-height: 100vh;
    margin: 0;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.title-card {
    max-width: 450px;
    margin: 20px auto;
    padding: 15px 20px;
    background: linear-gradient(135deg, #547FC9, #54B9C9);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    text-align: center;
    font-weight: bold;
    font-size: 1.6rem;
    color: #333;
}

/*Alternar colores de tabla */

.table.table-bordered.table-striped tbody tr:nth-child(odd) td {
    background-color: #e8f2ff !important;
}
.table.table-bordered.table-striped tbody tr:nth-child(even) td {
    background-color: #f2f2f2 !important;
}

.table.table-bordered.table-striped tbody tr:hover td {
    background-color: #c9e4ff !important;
}

.table.table-bordered.table-striped thead th {
    background-color: #1f3f77 !important;
    color: white !important;
}

/*Esto es para el navbar*/
.navbar-custom {
    background: #1c1f2b !important;
    padding: 12px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

    .navbar-custom .navbar-brand {
        color: #ffffff !important;
        font-weight: bold;
        font-size: 1.3rem;
    }

    .navbar-custom .nav-link {
        color: #dcdcdc !important;
        font-weight: 500;
        margin-right: 15px;
        transition: 0.3s ease;
    }

        .navbar-custom .nav-link:hover {
            color: #6cb8ff !important;
            transform: translateY(-2px);
        }

        .navbar-custom .nav-link.active {
            color: #4da3ff !important;
            font-weight: 600;
        }

    .navbar-custom .navbar-toggler {
        border-color: #fff;
    }

    .navbar-custom .navbar-toggler-icon {
        filter: invert(1);
    }

/*Este es para la portada*/
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    text-align: center;
    color: #dcdcdc;
    margin-bottom: 40px;
}

/* Carrusel */
#carouselHome img {
    height: 380px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    max-height: 600px;
    background-color: #1e1e2f;
}

.carousel-container {
    max-width: 850px;
    margin: auto;
}

.content-box {
    max-width: 900px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
    margin: 40px auto;
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: #e0e0e0;
}

.home-section {
    padding: 30px 20px;
}

.info-card {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 15px;
    color: white;
    transition: 0.3s;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

    .info-card:hover {
        transform: translateY(-6px);
        background: rgba(255,255,255,0.10);
    }

    .info-card i {
        font-size: 2.5rem;
        margin-bottom: 10px;
        color: #ffffff;
    }


/*Pagina para contactos*/
.contact-container {
    max-width: 900px;
    margin: 40px auto;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    color: #e5e5e5;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 25px;
    color: #cfcfcf;
}

.info-label {
    font-weight: bold;
    color: #ffffff;
}

.contact-icon {
    font-size: 1.4rem;
    margin-right: 8px;
    color: #79a0ff;
}

.social-icons a {
    font-size: 1.8rem;
    margin-right: 15px;
    color: #79a0ff;
    transition: 0.3s;
}

    .social-icons a:hover {
        color: #b7d4ff;
        transform: scale(1.1);
    }