/**
 * Estilos principales para el sitio web IESTP GGI
 */

/* Variables */
:root {
    --primary-color: #0056b3;
    --secondary-color: #17a2b8;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --gray-color: #6c757d;
    --white-color: #ffffff;
    --black-color: #000000;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

/* Estilos generales */
body {
    font-family: var(--font-secondary);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    position: relative;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #003d7e;
    text-decoration: none;
}

.btn {
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #003d7e;
    border-color: #003d7e;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Header y Navegación */
.top-bar {
    background-color: var(--primary-color);
    padding: 0.5rem 0;
}

.site-header {
    background-color: var(--white-color);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.logo img {
    max-height: 70px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--primary-color);
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.navbar {
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 1rem 1rem;
    font-weight: 500;
    font-family: var(--font-primary);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--white-color);
    background-color: rgba(255,255,255,0.1);
}

.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.6rem 1.5rem;
    font-weight: 400;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Banner / Carousel */
.banner-carousel {
    position: relative;
    margin-bottom: 2rem;
}

.carousel-item {
    height: 500px;
    background-color: var(--dark-color);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
}

.carousel-caption {
    bottom: 20%;
    left: 5%;
    right: 5%;
    text-align: left;
    max-width: 600px;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Programas de Estudio */
.programs-section .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.programs-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.programs-section .card-title {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.object-cover {
    object-fit: cover;
}

/* Noticias */
.featured-news .card {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.featured-news .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.featured-news .card-img-top {
    height: 200px;
    object-fit: cover;
}

.featured-news .card-title {
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.featured-news .card-footer {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 1rem;
}

/* Estadísticas */
.stats-section {
    background-color: var(--primary-color);
    padding: 3rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white-color);
}

.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Enlaces Importantes */
.important-links .card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.important-links .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.important-links .card-title {
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.important-links .card-text {
    margin-bottom: 1.5rem;
}

/* Formulario de Contacto */
.contact-section {
    background-color: var(--light-color);
}

.contact-info {
    height: 100%;
    border-radius: 0.5rem;
}

.contact-info ul li {
    margin-bottom: 1rem;
}

.contact-info .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.contact-info .social-icon:hover {
    background-color: var(--dark-color);
}

.map-container {
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0;
}

.footer-title {
    color: var(--white-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 30px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white-color);
    padding-left: 5px;
}

.social-icon-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: var(--white-color);
    transition: all 0.3s ease;
}

.social-icon-footer:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.copyright {
    background-color: var(--primary-color);
    padding: 1rem 0;
    color: var(--white-color);
}

.developer-credit a {
    font-weight: 500;
    text-decoration: underline;
}

/* Botón Volver Arriba */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
}

/* Media Queries */
@media (max-width: 991.98px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        bottom: 10%;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption {
        bottom: 5%;
        text-align: center;
        left: 10%;
        right: 10%;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
        display: none;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stats-section .stat-number {
        font-size: 2rem;
    }
    
    .stats-section .stat-label {
        font-size: 0.9rem;
    }
} 