/* ===================================================
   1. RESET Y ESTILOS GENERALES
   =================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333333;
}

/* ===================================================
   2. ENCABEZADO / NAVBAR (INDEX)
   =================================================== */
.navbar {
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
    object-fit: contain;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.navbar-nav a {
    text-decoration: none;
    color: #333333;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.navbar-nav a:hover {
    color: #008f4c;
}

.btn-user-icon {
    background-color: #008f4c;
    color: #ffffff !important;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.btn-user-icon:hover {
    background-color: #006b38;
}

/* ===================================================
   3. SECCIÓN HERO Y FONDO (webfondo.jpg)
   =================================================== */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)), url('webfondo.jpg') center/cover no-repeat;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

/* ===================================================
   4. CAJITAS DE TEXTO FLOTANTES
   =================================================== */
.cards-container {
    display: flex;
    gap: 25px;
    width: 100%;
    max-width: 1100px;
    margin-top: 10px;
    margin-bottom: 40px;
}

.info-card {
    flex: 1;
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.info-card h2 {
    color: #008f4c;
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.info-card p {
    color: #666666;
    font-size: 0.9rem;
}

/* ===================================================
   5. CARRUSEL / SLIDER
   =================================================== */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    background: #ffffff;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: auto;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.dots-container {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease;
}

.dot.active {
    background: #ffffff;
    width: 12px;
    height: 12px;
}

/* ===================================================
   6. COMPONENTES Y TARJETA DE LOGIN (Misma paleta verde)
   =================================================== */
.card-utfv {
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.card-header-utfv.primary {
    background-color: #008f4c;
    color: #ffffff;
    text-align: center;
    padding: 1.2rem;
}

.card-header-utfv.primary h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.card-body-utfv {
    padding: 1.8rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333333;
    font-size: 0.9rem;
}

.form-control-utfv {
    width: 100%;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control-utfv:focus {
    outline: none;
    border-color: #008f4c;
    box-shadow: 0 0 0 3px rgba(0, 143, 76, 0.2);
}

.btn-utfv.btn-primary-utfv {
    width: 100%;
    padding: 12px;
    background-color: #008f4c;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-utfv.btn-primary-utfv:hover {
    background-color: #006b38;
}

.btn-utfv.btn-primary-utfv:active {
    transform: scale(0.99);
}

/* ===================================================
   7. ESTILOS DE LA PÁGINA DE LOGIN (login.html)
   =================================================== */
.login-body {
    background-color: #f4f6f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    position: relative;
}

.btn-back-home {
    position: absolute;
    top: 20px;
    left: 20px;
    text-decoration: none;
    color: #008f4c;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-back-home:hover {
    background-color: #e8f5e9;
    transform: translateY(-2px);
}

.alert-box {
    display: none;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    background-color: #f8d7da;
    color: #721c24;
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid #f5c6cb;
}

.login-footer-link {
    text-align: center;
    margin-top: 18px;
}

.login-footer-link a {
    color: #666666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.login-footer-link a:hover {
    color: #008f4c;
}

/* ===================================================
   8. ESTILOS DEL FOOTER (PIE DE PÁGINA)
   =================================================== */
.footer {
    background-color: #1e1e1e;
    color: #ffffff;
    padding: 40px 0 0 0;
    margin-top: 40px;
    font-size: 0.88rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 20px 40px 20px;
}

.footer-column h4 {
    color: #008f4c;
    font-size: 1.05rem;
    margin-bottom: 18px;
    border-bottom: 2px solid #008f4c;
    padding-bottom: 6px;
    display: inline-block;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.footer-column ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-contact-item {
    color: #cccccc;
    margin-top: 10px;
    margin-bottom: 8px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 18px;
}

.social-icons img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.social-icons img:hover {
    transform: scale(1.15);
}

.gobiernoimg {
    margin-top: 15px;
}

.gobiernoimg img {
    max-width: 100%;
    height: auto;
}

.footer-bottom {
    background-color: #111111;
    text-align: center;
    padding: 18px 20px;
    border-top: 1px solid #333333;
    color: #888888;
    font-size: 0.8rem;
}

.footer-bottom a {
    color: #008f4c;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ===================================================
   9. RESPONSIVE DESIGN (Móviles y Tablets)
   =================================================== */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-container {
        flex-direction: column;
    }

    .navbar-nav {
        display: none;
    }

    .carousel-slide img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}