/* Variables de colores */

/* Importar colores dinámicos desde la base de datos */
@import url('colores_dinamicos_version.php');

:root {
    --primary-color: #001f3f; /* Fallback - será sobrescrito por colores_dinamicos.php */
    --secondary-color: #006400;
    --light-color: #ffffff;
    --dark-color: #333333;
    --gray-color: #f8f9fa;
}

/* Estilos generales */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Ajusta este valor según la altura de tu navbar */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Ajustes para las secciones */
section {
    scroll-margin-top: 80px; /* Ajusta este valor según la altura de tu navbar */
}

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

.navbar-brand {
    color: var(--light-color) !important;
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--light-color) !important;
    transition: color 0.3s ease;
}

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

/* Hero Slider */
.hero-slider {
    height: 600px;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Custom Slider Styles */
.custom-slider {
    height: 500px;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.custom-slider .carousel-item {
    height: 500px;
    position: relative;
}

.custom-slider .slider-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.custom-slider .custom-caption {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    max-width: 500px;
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
    color: white;
}

.custom-slider .slider-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
}

.custom-slider .slider-desc {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
}

.custom-slider .slider-btn {
    display: inline-block;
    background: linear-gradient(135deg, #002efd 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
}

.custom-slider .slider-btn:hover {
    background: linear-gradient(135deg, #0020c7 0%, #5a3a7a 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 46, 253, 0.3);
}

.custom-slider .custom-arrow {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 20px;
}

.custom-slider .custom-indicators {
    bottom: 20px;
}

.custom-slider .custom-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
}

.custom-slider .custom-indicators button.active {
    background: #002efd;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Sección de Noticias */
.news-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

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

/* Sección de Mapa */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand img {
        height: 60px;
    }
    
    .carousel-caption {
        padding: 2rem;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .slider-btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .quality-indicator {
        margin-bottom: 1rem;
    }
    
    .ofrecemos-card {
        margin-bottom: 1rem;
    }
    
    .ofrecemos-desc {
        font-size: 0.9rem;
    }
    
    .ofrecemos-contact {
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .navbar-brand img {
        height: 80px;
    }
    
    .carousel-caption {
        padding: 4rem;
    }
    
    .carousel-caption h2 {
        font-size: 2.5rem;
    }
    
    .carousel-caption p {
        font-size: 1.1rem;
    }
}

@media (min-width: 992px) {
    .carousel-caption h2 {
        font-size: 3.5rem;
    }
    
    .carousel-caption p {
        font-size: 1.2rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
} 
