/* Fuentes y estilos base */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

* {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 80px;
    overflow-x: hidden;
}

/* Navbar completamente negro */
#mainNav {
    background-color: #000000 !important;
    padding: 8px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    min-height: 70px;
}

.navbar-brand {
    padding: 0;
    margin: 0;
    line-height: 1;
}

.navbar-brand img {
    height: 45px;
    width: auto;
    display: block;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 15px !important;
    margin: 0 3px;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.navbar-nav .nav-link:hover {
    background-color: #ffc107;
    color: #000000 !important;
    transform: translateY(-2px);
}

.navbar-toggler {
    border: 2px solid rgba(255,255,255,0.3);
    padding: 6px 12px;
    background-color: transparent;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Estilos responsivos para móvil 9:16 */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    #mainNav {
        padding: 5px 0;
        min-height: 60px;
    }
    
    .navbar-brand img {
        height: 38px;
    }
    
    .navbar-collapse {
        background-color: #000000;
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
        border: 1px solid rgba(255,255,255,0.1);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 15px !important;
        font-size: 1rem;
        margin: 2px 0;
    }
    
    .navbar-nav .nav-link:hover {
        padding-left: 25px !important;
    }
}

@media (max-width: 360px) {
    .navbar-brand img {
        height: 32px;
    }
    
    .navbar-toggler {
        padding: 4px 10px;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: -80px;
}

#heroCarousel,
.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 90%;
    max-width: 900px;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.btn-group .btn {
    border-width: 2px;
    font-weight: 600;
    padding: 10px 25px;
}

.btn-group .btn.active {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

.btn-warning {
    background-color: #ffc107;
    border: none;
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255,193,7,0.3);
}

@media (max-width: 768px) {
    .hero-section {
        margin-top: -70px;
    }
    
    .hero-content .btn-group {
        flex-direction: column;
        gap: 8px;
        width: 80%;
        margin: 0 auto;
    }
    
    .hero-content .btn-group .btn {
        width: 100%;
        margin: 0 !important;
    }
}

/* Page Headers */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), var(--bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 0 60px;
    text-align: center;
    margin-top: -80px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.page-header .breadcrumb {
    background: transparent;
    justify-content: center;
}

.page-header .breadcrumb a {
    color: #ffc107;
    text-decoration: none;
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 40px;
        margin-top: -70px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
}

/* Cards y elementos con animación */
.servicio-card, .beneficio-card, .team-member, .valores-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.servicio-card:hover, .beneficio-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    background: #ffc107;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid #ffc107;
    transition: all 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.05);
    border-color: #000;
}

.valores-card i {
    font-size: 3rem;
    color: #ffc107;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.valores-card:hover i {
    color: #000;
    transform: rotate(360deg);
}

/* Iconos */
.fa-icon {
    font-size: 2.5rem;
    color: #ffc107;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.servicio-card:hover .fa-icon,
.beneficio-card:hover .fa-icon {
    color: #000;
    transform: scale(1.2) rotate(10deg);
}

/* Estadísticas */
.numero-global {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffc107;
    line-height: 1;
    margin-bottom: 10px;
}

.estadistica-card {
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.estadistica-card:hover {
    transform: scale(1.05);
    background: #ffc107;
}

.estadistica-card:hover .numero-global {
    color: #000;
}

/* Formularios */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255,193,7,0.25);
}

/* Footer */
footer {
    background-color: #000 !important;
    padding: 20px 0;
}

/* Animaciones personalizadas */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Ajustes para las imágenes */
.img-fluid {
    transition: all 0.5s ease;
}

.img-fluid:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}