
.contacto button[type="submit"]:hover {
    background: var(--azul-oscuro);
}
:root {
    /* Colores corporativos Limpiezas Llegrau */
    --azul-principal: #1a6ea8; /* Azul corporativo principal (actualizado) */
    --azul-oscuro: #0b4d78;    /* Azul oscuro para fondos y énfasis */
    --azul-claro: #c3e0f7;     /* Azul claro para fondos suaves y bordes */
    --blanco: #ffffff;         /* Blanco para fondos y texto sobre oscuros */
    --gris-claro: #f5f5f5;     /* Gris claro para fondos alternos */
    --gris-texto: #333333;     /* Gris oscuro para texto principal */
    --verde-acento: #57a639;   /* Verde para elementos de acción/éxito */
}

body {
    background: var(--blanco);
    color: var(--gris-texto);
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}
/* Header fijo en la parte superior */
header {
    position: sticky;
    top: 0;
    z-index: 1030; /* por encima del contenido */
}

/* Forzar que el footer se quede al fondo en páginas cortas */
html, body {
    height: 100%;
}
body > .container, body > .container-fluid, body > main, body > .wrapper {
    /* asegurar que el main ocupe al menos toda la pantalla restante */
    min-height: calc(100vh - 120px); /* 120px aproximado para header+footer */
}
footer {
    position: relative;
    bottom: 0;
    width: 100%;
}
header, footer {
    background: var(--azul-principal); 
}
header h1, header p, footer {
    color: var(--blanco);
}
footer a {
    color: var(--blanco);
    text-decoration: none;
}
footer a:hover {
    color: var(--azul-claro);
}
.carousel-item img {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

.presentacion h2.h5 {
    font-weight: 300;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

.presentacion .card {
    border: none;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.presentacion .card:hover {
    transform: translateY(-5px);
}

.presentacion .card-body {
    border-top: 3px solid var(--azul-principal);
}

.presentacion .card-body p {
    margin-bottom: 0.5rem !important;
    font-size: 0.95rem;
}

.presentacion .text-success {
    color: var(--verde-acento) !important;
}
@media (max-width: 768px) {
    .row > [class^='col-'] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .carousel-item img {
        height: 200px;
    }
}

/* Estilos mejorados para el carrusel */
.carousel {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.carousel-item {
    height: 500px;
    background-color: var(--blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.carousel-item img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.carousel-caption {
    background-color: rgba(0,0,0,0.4);
    border-radius: 5px;
    padding: 15px;
    bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.carousel-indicators {
    margin-bottom: 10px;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--azul-principal);
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
}
.servicios .card-img-top {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
        object-position: top !important;
    aspect-ratio: 16/9 !important;
    background: #eaeaea !important;
    display: block !important;
    border-radius: 8px 8px 0 0 !important;
}

/* ===== PANEL DE ADMINISTRACIÓN ===== */

/* ===== CARRUSEL ADMIN - DRAG & DROP ===== */
.drag-handle {
    cursor: grab !important;
    font-size: 1.4rem;
    padding: 12px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.drag-handle:hover {
    background-color: #e9ecef !important;
    color: var(--azul-principal) !important;
    border-color: var(--azul-principal) !important;
    transform: scale(1.05);
}

.drag-handle:active {
    cursor: grabbing !important;
    background-color: var(--azul-principal) !important;
    color: white !important;
    transform: scale(0.95);
}

.sortable-placeholder {
    background: #e9ecef;
    border: 2px dashed var(--azul-principal);
    min-height: 80px;
    border-radius: 8px;
}

.sortable-ghost {
    opacity: 0.3;
    background: #f8f9fa;
}

.sortable-chosen {
    background: var(--azul-claro);
}

.carrusel-admin .list-group-item {
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    cursor: default;
}

.carrusel-admin .list-group-item:hover {
    border-left-color: var(--azul-principal);
    background-color: #f8f9fa;
}

.carrusel-admin .list-group-item.sortable-chosen {
    background-color: var(--azul-claro) !important;
    border-left-color: var(--azul-oscuro) !important;
}

.badge-orden {
    background: linear-gradient(45deg, var(--azul-principal), var(--azul-oscuro)) !important;
    color: white !important;
    font-weight: 600;
}

/* Evitar interferencias con el arrastrar */
.carrusel-admin .list-group-item * {
    pointer-events: none;
}

.carrusel-admin .list-group-item .drag-handle {
    pointer-events: all;
}

.carrusel-admin .list-group-item .btn-group {
    pointer-events: all;
}

.carrusel-admin .list-group-item .btn-group button {
    pointer-events: all;
}

/* ===== ESTILOS GENERALES ADMIN ===== */
.btn i {
    margin-right: 0.25rem;
}

.btn-sm i {
    margin-right: 0.125rem;
}

/* Font Awesome iconos */
.fas, .far, .fab {
    font-size: inherit;
    vertical-align: baseline;
}

/* ===== SECCIÓN DESCRIPCIÓN EMPRESA ===== */
.descripcion-empresa {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 50%, #e6f3ff 100%);
    position: relative;
}

.descripcion-empresa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(26, 110, 168, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(87, 166, 57, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.descripcion-empresa .container {
    position: relative;
    z-index: 1;
}

.descripcion-contenido h2 {
    color: var(--azul-principal);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.descripcion-contenido h2 i {
    color: var(--verde-acento);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.descripcion-contenido .lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gris-texto);
}

.descripcion-contenido strong {
    color: var(--azul-principal);
    font-weight: 700;
}

.descripcion-contenido .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    animation: pulse-badge 3s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.descripcion-contenido mark {
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
}

.ventajas-lista .ventaja-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ventajas-lista .ventaja-item:last-child {
    border-bottom: none;
}

.ventajas-lista .ventaja-item:hover {
    background: linear-gradient(135deg, rgba(26, 110, 168, 0.08) 0%, rgba(87, 166, 57, 0.08) 100%);
    border-radius: 12px;
    padding-left: 0.75rem;
    transform: translateX(5px);
}

.ventajas-lista .check-icon {
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ventajas-lista .check-icon i {
    transition: all 0.3s ease;
}

.ventajas-lista .ventaja-item:hover .check-icon i {
    transform: scale(1.1);
    color: var(--azul-principal) !important;
}

.ventajas-lista .ventaja-texto strong {
    color: var(--gris-texto);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.25rem;
}

.ventajas-lista .ventaja-texto small {
    font-size: 0.8rem;
    line-height: 1.2;
}

/* Card de ventajas */
.descripcion-empresa .card {
    border-radius: 20px;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff 0%, #f8fcff 100%);
    border: 1px solid rgba(26, 110, 168, 0.1);
}

.descripcion-empresa .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(26, 110, 168, 0.15) !important;
    border-color: rgba(26, 110, 168, 0.2);
}

.descripcion-empresa .card-body {
    padding: 2rem 1.5rem;
}

.descripcion-empresa .card img {
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.descripcion-empresa .card:hover img {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Ícono de limpieza profesional */
.icono-limpieza .icono-contenedor {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--azul-principal), var(--verde-acento));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(26, 110, 168, 0.3);
    transition: all 0.3s ease;
}

.icono-limpieza .icono-contenedor:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(26, 110, 168, 0.4);
}

.icono-limpieza .icono-contenedor i {
    color: white;
    font-size: 2.5rem;
    position: absolute;
    transition: all 0.3s ease;
}

.icono-limpieza .icono-contenedor .fa-sparkles {
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    animation: sparkle 2s infinite;
}

.icono-limpieza .icono-contenedor .fa-home {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.2) rotate(10deg); 
    }
}

.icono-limpieza h4 {
    font-weight: 600;
    color: var(--azul-principal);
}

.icono-limpieza small {
    font-style: italic;
}

/* Responsive para la sección descripción */
@media (max-width: 991.98px) {
    .descripcion-contenido {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .descripcion-contenido h2 {
        font-size: 1.75rem;
    }
    
    .descripcion-contenido .lead {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .descripcion-empresa {
        padding: 3rem 0 !important;
    }
    
    .ventajas-lista .ventaja-item {
        padding: 1rem 0;
    }
    
    .ventajas-lista .ventaja-texto strong {
        font-size: 0.9rem;
    }
}

/* ===== PÁGINA DE CONTACTO ===== */
.contacto {
    position: relative;
}

.contact-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--azul-principal), var(--verde-acento));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.contact-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    background: rgba(26, 110, 168, 0.05);
    border-radius: 8px;
    padding-left: 0.5rem;
    transform: translateX(3px);
}

.contact-item a {
    color: var(--azul-principal);
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--verde-acento);
}

.social-links .btn {
    border-radius: 25px;
    transition: all 0.3s ease;
}

.social-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Formulario de contacto */
.contacto .form-control,
.contacto .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.contacto .form-control:focus,
.contacto .form-select:focus {
    border-color: var(--azul-principal);
    box-shadow: 0 0 0 0.2rem rgba(26, 110, 168, 0.15);
    transform: translateY(-1px);
}

.contacto .form-label {
    color: var(--gris-texto);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contacto .form-label i {
    color: var(--azul-principal);
}

.contacto .btn-primary {
    background: linear-gradient(135deg, var(--azul-principal), var(--verde-acento));
    border: none;
    border-radius: 10px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 110, 168, 0.3);
}

.contacto .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 110, 168, 0.4);
}

/* Mapa */
.ubicacion .map-container {
    overflow: hidden;
}

.ubicacion iframe {
    transition: all 0.3s ease;
}

.ubicacion iframe:hover {
    transform: scale(1.02);
}

/* Alertas personalizadas */
.alert {
    border: none;
    border-radius: 10px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, var(--verde-acento), #20c997);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #212529;
}

/* Responsive para contacto */
@media (max-width: 991.98px) {
    .contacto .contact-item {
        text-align: left;
        padding: 1rem 0;
    }
    
    .contacto .contact-item .contact-icon {
        margin-right: 0.75rem;
        margin-bottom: 0;
    }
    
    .social-links {
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .contacto .card-body {
        padding: 2rem 1.5rem !important;
    }
    
    .ubicacion iframe {
        height: 350px !important;
    }
}

/* Iconos de navegación completamente blancos */
.navbar .nav-link i {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Texto de navegación completamente blanco */
.navbar .nav-link {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* ===== Estilos migrados desde php/includes/servicios_cards.php ===== */
.servicios .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
}

.servicios .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.servicios .card-img-top {
    transition: transform 0.3s ease;
    border-radius: 0;
}

.servicios .card:hover .card-img-top {
    transform: scale(1.05);
}

.servicios .card-body {
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.servicios .card .card-body {
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.servicios .card-title {
    color: var(--azul-principal, #1a6ea8);
    font-weight: 600;
    margin-bottom: 1rem;
}

.servicios .card-text {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .servicios .card { margin-bottom: 1.5rem; }
    .servicios .card-img-top { height: 180px !important; }
    .servicios .card-body { padding: 1.25rem; }
}

@media (max-width: 576px) {
    .servicios .card-img-top { height: 160px !important; }
    .servicios .card-body { padding: 1rem; }
    .servicios .card-title { font-size: 1.1rem; }
    .servicios .card-text { font-size: 0.9rem; }
}

.servicios .card { animation: fadeInUp 0.6s ease; animation-fill-mode: both; }
.servicios .card:nth-child(1) { animation-delay: 0.1s; }
.servicios .card:nth-child(2) { animation-delay: 0.2s; }
.servicios .card:nth-child(3) { animation-delay: 0.3s; }
.servicios .card:nth-child(4) { animation-delay: 0.4s; }
.servicios .card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 40px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Utilidad para imágenes de servicios (reemplaza inline styles) */
.img-servicio {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    object-position: top !important;
    border-radius: 8px 8px 0 0 !important;
    display: block !important;
    background: #eaeaea !important;
}

/* Estilos migrados desde php/includes/header.php */
.bxslider { margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: 100% !important; background-color: white; display: flex; justify-content: center; align-items: center; }
.bxslider li { list-style: none; margin: 0 !important; padding: 0 !important; background-color: white; display: flex; justify-content: center; align-items: center; }
.bxslider img { height: 500px !important; width: auto !important; max-width: 100% !important; display: block !important; object-fit: contain; margin: 0 auto; }
.bx-wrapper { width: 100% !important; max-width: 100% !important; margin: 0 !important; box-shadow: none !important; border: none !important; background: white !important; height: 500px; display: flex; align-items: center; justify-content: center; }
.bx-viewport { width: 100% !important; max-width: 100% !important; overflow: hidden !important; background-color: white !important; height: 500px; display: flex; align-items: center; justify-content: center; }
body { overflow-x: hidden !important; }
.container-fluid { padding: 0 !important; }

/* Botón editor flotante */
#editor-float-btn { position: fixed; bottom: 24px; right: 24px; z-index: 2000; background: #1a6ea8; color: #fff; border: 2px solid #ffffff; border-radius: 50%; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22), 0 0 0 4px rgba(255,255,255,0.04) inset; font-size: 2rem; cursor: pointer; transition: background 0.2s, transform 0.12s, box-shadow 0.12s; }
#editor-float-btn:hover { background: #0b4d78; transform: translateY(-2px); box-shadow: 0 8px 26px rgba(0,0,0,0.28), 0 0 0 6px rgba(255,255,255,0.06) inset; }
#editor-float-menu { position: fixed; bottom: 90px; right: 24px; z-index: 2001; background: #fff; border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); padding: 1rem 1.2rem; min-width: 220px; display: none; transform-origin: bottom right; }
#editor-float-menu.active { display: block; animation: popUp 120ms ease-out; }
@keyframes popUp { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
#editor-float-menu h5 { font-size: 1.1rem; margin-bottom: 0.7rem; color: #1a6ea8; }
#editor-float-menu ul { list-style: none; padding: 0; margin: 0; }
#editor-float-menu li { margin-bottom: 0.5rem; }
#editor-float-menu a { color: #1a6ea8; text-decoration: none; font-weight: 500; transition: color 0.2s; }
#editor-float-menu a:hover { color: #0b4d78; text-decoration: underline; }