/* ===== NUEVOS COLORES CORPORATIVOS ===== */
:root {
    --azul-principal: #0070C0;
    --azul-secundario: #00B0F0;
    --amarillo-acento: #FFC000;
    --gris-fondo: #F4F6F9;
    --gris-texto: #333333;
    --blanco: #FFFFFF;
    --gris-suave: #E8ECF0;
    --sombra: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--gris-fondo);
    color: var(--gris-texto);
    line-height: 1.6;
}

/* ===== NAVBAR MODERNA ===== */
.navbar-modern {
    background: linear-gradient(135deg, var(--azul-principal) 0%, #0058A0 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-modern.scrolled {
    background: var(--azul-principal);
    padding: 0.5rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    transition: transform 0.3s ease;
}

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

.brand-text {
    font-weight: 700;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--blanco) 0%, var(--azul-secundario) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--blanco) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--amarillo-acento) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amarillo-acento);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--azul-principal) 0%, var(--azul-secundario) 50%, #0058A0 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    margin-top: -76px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,192,0,0.08)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease;
}

.hero-logo {
    height: 120px;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--blanco);
}

.hero h1 span {
    color: var(--amarillo-acento);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-left {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-right {
    animation: slideInRight 0.8s ease forwards;
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* ===== TARJETAS MODERNAS ===== */
.card-modern {
    background: var(--blanco);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px var(--sombra);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 112, 192, 0.1);
    height: 100%;
}

.card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--azul-secundario);
}

.servicio-card {
    background: var(--blanco);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--azul-secundario);
    margin-bottom: 25px;
}

.servicio-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== SECCIÓN DE DATOS RELEVANTES ===== */
.stats-section {
    background: linear-gradient(135deg, var(--azul-principal), var(--azul-secundario));
    border-radius: 20px;
    padding: 50px 30px;
    margin: 40px 0;
    color: var(--blanco);
}

.stat-card {
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--amarillo-acento);
    display: block;
}

.stat-label {
    font-size: 1rem;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== EQUIPO ===== */
.team-card {
    text-align: center;
    padding: 30px 20px;
    transition: all 0.3s ease;
    border-radius: 20px;
}

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

.team-icon {
    font-size: 4rem;
    color: var(--azul-secundario);
    margin-bottom: 20px;
}

/* ===== FORMULARIO ===== */
.form-modern {
    background: var(--blanco);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--sombra);
}

.form-modern input,
.form-modern textarea,
.form-modern select {
    border: 2px solid var(--gris-suave);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-modern input:focus,
.form-modern textarea:focus {
    border-color: var(--azul-secundario);
    box-shadow: 0 0 0 3px rgba(0, 176, 240, 0.1);
    outline: none;
}

/* ===== BOTONES ===== */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--azul-principal), var(--azul-secundario));
    color: var(--blanco);
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #0058A0, #0090D0);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 112, 192, 0.3);
    color: var(--blanco);
}

.btn-outline-custom {
    border: 2px solid var(--azul-secundario);
    color: var(--azul-secundario);
    background: transparent;
    padding: 10px 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-custom:hover {
    background: var(--azul-secundario);
    color: var(--blanco);
    transform: translateY(-2px);
}

.btn-acento {
    background: var(--amarillo-acento);
    color: var(--azul-principal);
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-acento:hover {
    background: #e5a800;
    transform: translateY(-2px);
    color: var(--azul-principal);
}

/* ===== BADGES ===== */
.badge-custom {
    background: var(--azul-secundario);
    color: var(--blanco);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* ===== FOOTER ===== */
.footer-modern {
    background: linear-gradient(135deg, var(--azul-principal) 0%, #0058A0 100%);
    color: var(--blanco);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-modern a {
    color: var(--blanco);
    transition: color 0.3s ease;
}

.footer-modern a:hover {
    color: var(--amarillo-acento);
}

/* ===== BOTÓN WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: var(--blanco);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--blanco);
}

/* ===== TÍTULOS ===== */
.section-title {
    color: var(--azul-principal);
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--amarillo-acento);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-logo {
        height: 80px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .form-modern {
        padding: 20px;
    }
}

/* ===== TARJETAS DE FUNCIONES FUTURAS (RESPONSIVE) ===== */
.funcion-card {
    background: var(--blanco);
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: 0 10px 30px var(--sombra);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 112, 192, 0.1);
    height: 100%;
    text-align: center;
}

.funcion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--azul-secundario);
}

.funcion-card i {
    font-size: 3.5rem;
    color: var(--azul-secundario);
    margin-bottom: 15px;
}

.funcion-card h4 {
    color: var(--azul-principal);
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.funcion-card p {
    color: var(--gris-texto);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .funcion-card h4 {
        font-size: 1.1rem;
    }
    
    .funcion-card i {
        font-size: 2.5rem;
    }
    
    .funcion-card {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .funcion-card h4 {
        font-size: 1rem;
    }
    
    .funcion-card p {
        font-size: 0.85rem;
    }
}

/* ===== ESTILOS PARA IMÁGENES DE SERVICIOS ===== */
.servicio-icon {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
    background: var(--gris-fondo);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: all 0.3s ease;
}

.servicio-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.servicio-card:hover .servicio-icon {
    background: var(--azul-secundario);
    transform: scale(1.05);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .servicio-icon {
        width: 50px;
        height: 50px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .servicio-card .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .servicio-icon {
        margin-right: 0 !important;
        margin-bottom: 15px;
    }
}

/* ===== TARJETAS HORIZONTALES DE SERVICIOS ===== */
.servicio-card-horizontal {
    background: var(--blanco);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--sombra);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 112, 192, 0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.servicio-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.servicio-contenido {
    display: flex;
    flex-direction: row;
    height: 320px;  /* Altura FIJA para todas las tarjetas */
    flex: 1;
}

/* Lado izquierdo - Texto */
.servicio-texto {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;  /* Si el texto es muy largo, permite scroll */
    min-width: 0;  /* Permite que el texto se reduzca si es necesario */
}

.servicio-titulo {
    color: var(--azul-principal);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.3;
}

.servicio-descripcion {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Lado derecho - Imagen con ANCHO FIJO */
.servicio-imagen {
    width: 160px;  /* ANCHO FIJO para todas las imágenes */
    flex-shrink: 0;  /* Evita que la imagen se encoja */
    background: linear-gradient(135deg, var(--gris-fondo), #e8ecef);
    overflow: hidden;
    position: relative;
}

.servicio-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.servicio-card-horizontal:hover .servicio-imagen img {
    transform: scale(1.05);
}

/* Badges dentro de la tarjeta */
.servicio-badges strong {
    font-size: 0.85rem;
}

.servicio-badges .badge-custom {
    font-size: 0.75rem;
    padding: 6px 12px;
}

/* Responsive para tablets */
@media (max-width: 992px) {
    .servicio-contenido {
        height: 300px;
    }
    
    .servicio-imagen {
        width: 140px;
    }
    
    .servicio-titulo {
        font-size: 1.2rem;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .servicio-contenido {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
    
    .servicio-imagen {
        width: 100%;
        height: 200px;  /* Altura fija en móviles */
        order: -1;
    }
    
    .servicio-imagen img {
        position: relative;
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
    
    .servicio-texto {
        padding: 20px;
        text-align: center;
    }
    
    .servicio-titulo {
        font-size: 1.3rem;
    }
    
    .servicio-badges .d-flex {
        justify-content: center;
    }
    
    .servicio-descripcion {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .servicio-imagen {
        height: 180px;
    }
    
    .servicio-imagen img {
        height: 180px;
    }
    
    .servicio-texto {
        padding: 15px;
    }
    
    .servicio-titulo {
        font-size: 1.2rem;
    }
    
    .servicio-descripcion {
        font-size: 0.8rem;
    }
}
/* ===== PUNTO DISCRETO DE ACCESO ADMIN ===== */
.admin-dot {
    position: fixed;
    bottom: 12px;
    right: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    z-index: 9999;
    display: block;
    text-decoration: none;
}

.admin-dot:hover {
    background: var(--amarillo-acento);
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(255, 192, 0, 0.5);
}

/* En móviles, un poco más grande para que sea fácil de tocar */
@media (max-width: 768px) {
    .admin-dot {
        width: 14px;
        height: 14px;
        bottom: 15px;
        right: 15px;
    }
}
/* ===== PANEL DE EDICIÓN - ADVERTENCIA ===== */
.advertencia-edicion {
    background: linear-gradient(135deg, rgba(255, 192, 0, 0.1), rgba(255, 192, 0, 0.05));
    border-left: 4px solid var(--amarillo-acento);
    border-radius: 12px;
    padding: 20px 25px;
}

.advertencia-icono {
    font-size: 1.8rem;
    color: var(--amarillo-acento);
    margin-right: 15px;
    margin-top: 3px;
}

.advertencia-titulo {
    color: var(--azul-principal);
    margin-bottom: 8px;
    font-weight: 700;
}

.advertencia-texto {
    color: var(--gris-texto);
    line-height: 1.6;
}

/* ===== TARJETAS DE SELECCIÓN DE PÁGINA ===== */
.pagina-card {
    display: block;
    background: var(--blanco);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
}

.pagina-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 112, 192, 0.15);
    border-color: var(--azul-secundario);
    text-decoration: none;
}

.pagina-icono {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azul-principal), var(--azul-secundario));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    transition: all 0.3s ease;
}

.pagina-icono i {
    font-size: 1.8rem;
    color: var(--blanco);
}

.pagina-card:hover .pagina-icono {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--amarillo-acento), #e5a800);
}

.pagina-card:hover .pagina-icono i {
    color: var(--azul-principal);
}

.pagina-card h4 {
    color: var(--azul-principal);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.pagina-card p {
    color: var(--gris-texto);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .pagina-card {
        padding: 25px 20px;
    }
    
    .pagina-icono {
        width: 60px;
        height: 60px;
    }
    
    .pagina-icono i {
        font-size: 1.5rem;
    }
    
    .advertencia-edicion {
        padding: 15px 20px;
    }
    
    .advertencia-icono {
        font-size: 1.5rem;
        margin-right: 10px;
    }
}
/* ===== PÁGINA DE LOGIN ===== */
.login-icono {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azul-principal), var(--azul-secundario));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 10px 25px rgba(0, 112, 192, 0.25);
}

.login-icono i {
    font-size: 2rem;
    color: var(--blanco);
}

/* Estilos del formulario de login */
.card-modern input[type="text"],
.card-modern input[type="password"] {
    border: 2px solid var(--gris-suave);
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.card-modern input[type="text"]:focus,
.card-modern input[type="password"]:focus {
    border-color: var(--azul-secundario);
    box-shadow: 0 0 0 3px rgba(0, 176, 240, 0.15);
    outline: none;
}

/* Botón del login */
.card-modern .btn-primary-custom {
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Alert de error más visible */
.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #721c24;
}
