/* Variables de colores corporativos */
:root {
    --primary-color: #004A98;    /* Azul corporativo */
    --secondary-color: #28bbf8;  /* Azul claro */
    --accent-color: #FFB800;     /* Amarillo/Dorado */
    --text-color: #2e2e2e;
    --light-gray: #f8f9fa;
    --color-principal-1: #fb4903;
    --color-principal-2: #4c9fed;
    --color-principal-3: #f0d12b;
}

/* Estilos generales */
body {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    line-height: 24px;
    color: var(--text-color);
    padding-top: 0;
    margin: 0;
}

/* Navbar personalizada */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/hero_bg_1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: flex-end;
    position: relative;
    height: 100vh;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 40px;
}

.hero-section .container {
    height: auto;
}

.hero-section .row {
    height: auto;
}

.hero-section .col-12 {
    text-align: center;
    width: 100%;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-content-bottom {
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 80%, rgba(0,0,0,0.0) 100%);
    padding: 40px 0 20px 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}
.hero-content-bottom h1,
.hero-content-bottom p,
.hero-content-bottom a {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Secciones */
section {
    padding: 80px 0;
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.card-body {
    padding: 2rem;
    position: relative;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-text {
    color: #666;
    line-height: 1.6;
}

/* Formulario de contacto */
.form-control {
    border-radius: 0;
    border: 1px solid #ddd;
    padding: 12px;
    font-size: 14px;
}

.form-control:focus {
    box-shadow: none;
    border-color: #28bbf8;
}

/* Botones */
.btn-primary, .btn-warning, .btn-lg.btn-warning {
    background-color: var(--color-principal-1) !important;
    border-color: var(--color-principal-1) !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-warning:hover, .btn-lg.btn-warning:hover {
    background-color: #d93e02 !important;
    border-color: #d93e02 !important;
}

/* Footer mejorado */
footer {
    background-color: #1a1a1a;
}

footer h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--color-principal-3);
}

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

footer .social-links a:hover {
    background-color: var(--color-principal-3);
    color: #222;
    transform: translateY(-3px);
}

footer ul li a {
    transition: all 0.3s ease;
}

footer ul li a:hover {
    color: var(--accent-color) !important;
    padding-left: 5px;
}

footer hr {
    border-color: rgba(255,255,255,0.1);
}

footer p {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .card {
        margin-bottom: 20px;
    }
}

/* Animaciones */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Servicios */
.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 74, 152, 0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-icon i {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.card:hover .service-icon {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.card:hover .service-icon i {
    color: white;
}

.list-unstyled li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.list-unstyled i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Mejoras en la sección de servicios */
#servicios {
    background-color: var(--light-gray);
}

#servicios .lead {
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Mejoras en los botones */
.btn {
    transition: all 0.3s ease;
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary:after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255,255,255,0.2);
    transition: width 0.3s ease;
}

.btn-primary:hover:after {
    width: 120%;
}

/* Sección Nosotros */
.feature-box {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.feature-box i {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-box:hover i {
    transform: scale(1.1);
}

.feature-box h4 {
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin: 1rem 0;
}

.feature-box p {
    color: #666;
    font-size: 0.9rem;
}

#nosotros {
    background-color: white;
    position: relative;
}

#nosotros::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,74,152,0.05) 0%, rgba(40,187,248,0.05) 100%);
    z-index: 0;
}

#nosotros .container {
    position: relative;
    z-index: 1;
}

.text-principal-1 { color: var(--color-principal-1) !important; }
.text-principal-2 { color: var(--color-principal-2) !important; }
.text-principal-3 { color: var(--color-principal-3) !important; }
.bg-principal-1 { background-color: var(--color-principal-1) !important; }
.bg-principal-2 { background-color: var(--color-principal-2) !important; }
.bg-principal-3 { background-color: var(--color-principal-3) !important; }

.slogan-highlight { color: var(--color-principal-1); font-weight: bold; }

/* Accesos rápidos: alternar bordes e iconos */
.quick-access-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 2px solid var(--color-principal-2);
    transition: border-color 0.3s;
}
.quick-access-box:nth-child(1) { border-color: var(--color-principal-1); }
.quick-access-box:nth-child(2) { border-color: var(--color-principal-2); }
.quick-access-box:nth-child(3) { border-color: var(--color-principal-3); }
.quick-access-box:nth-child(4) { border-color: var(--color-principal-1); }
.quick-access-box:nth-child(5) { border-color: var(--color-principal-2); }
.quick-access-box i {
    display: block;
}
.quick-access-box:nth-child(1) i { color: var(--color-principal-1); }
.quick-access-box:nth-child(2) i { color: var(--color-principal-2); }
.quick-access-box:nth-child(3) i { color: var(--color-principal-3); }
.quick-access-box:nth-child(4) i { color: var(--color-principal-1); }
.quick-access-box:nth-child(5) i { color: var(--color-principal-2); }

/* Títulos de secciones alternando colores */
section h2.text-center {
    font-weight: 700;
    margin-bottom: 1.5rem;
}
#servicios h2, #formularios h2 { color: var(--color-principal-2); }
#nosotros h2 { color: var(--color-principal-1); }
#contacto h2 { color: var(--color-principal-3); }

/* Badge de asistencia en amarillo */
.badge.bg-primary {
    background-color: var(--color-principal-3) !important;
    color: #222 !important;
}

/* Menos azul de fondo, más blanco y gris claro */
.bg-light {
    background-color: #f8f9fa !important;
}

/* Fondos diferenciados para secciones (más intensos) */
.bg-accesos { background-color: #ececec !important; }
.bg-nosotros { background-color: #fff !important; }
.bg-servicios { background-color: #d0e7fa !important; }
.bg-formularios { background-color: #fff3b0 !important; }
.bg-contacto { background-color: #fff !important; }

/* Divisores de color primario entre secciones */
.section-divider {
    height: 6px;
    width: 100%;
    display: flex;
    margin: 0;
    border: none;
    padding: 0;
}
.section-divider span {
    flex: 1;
    height: 100%;
}
.section-divider .d1 { background: var(--color-principal-1); }
.section-divider .d2 { background: var(--color-principal-2); }
.section-divider .d3 { background: var(--color-principal-3); }

/* Mejorar layout de Sobre Nosotros */
@media (min-width: 992px) {
  #nosotros .container > .row {
    align-items: stretch;
  }
  #nosotros .col-md-6.fade-in:first-child {
    max-width: 600px;
  }
  #nosotros .col-md-6.fade-in:last-child {
    flex: 1 1 0%;
    max-width: 100%;
  }
}

/* Ocultar parte final de Formularios y Descargas */
#formularios .tab-pane#otros {
    display: none !important;
} 