/* ============================================
   ESTILOS GENERALES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   HEADER Y TOPBAR
   ============================================ */
.topbar {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 10px 0;
    font-size: 0.9rem;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social li {
    display: flex;
    align-items: center;
}

.social a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.social a:hover {
    color: #3498db;
}

.connect {
    margin-right: 10px;
    font-weight: 500;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-left: 5px;
}

.social-icon:hover {
    background: #3498db;
    transform: translateY(-2px);
}

/* ============================================
   HEADER INNER Y MENÚ
   ============================================ */
.header-inner {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c3e50;
    cursor: pointer;
    padding: 5px;
}

.main-nav .main-menu {
    display: flex;
    gap: 5px;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: #2c3e50;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 4px;
}

.main-nav a:hover {
    color: #3498db;
    background: #f8f9fa;
}

.dropdown {
    position: relative;
}

.dropdown > a {
    position: relative;
    padding-right: 25px;
}

.dropdown > a .fa-chevron-down {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.dropdown:hover > a .fa-chevron-down {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
    padding: 5px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #3498db;
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 100px 0;
    max-width: 600px;
}

.slide-label {
    display: inline-block;
    background: rgba(52, 152, 219, 0.8);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.slide-content h1 span {
    color: #3498db;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 500px;
}

.slide-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: #2ecc71;
    color: white;
}

.btn-secondary:hover {
    background: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-prev:hover,
.slider-next:hover {
    background: #3498db;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* ============================================
   SECCIÓN DE SERVICIOS - IDÉNTICA A BLOG
   ============================================ */
.services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-list {
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    display: flex;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

/* HOVER CON CAMBIO DE COLOR */
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    background: #f9f9f9;
}

/* IMAGEN IZQUIERDA - HASTA EL BORDE */
.service-image-left {
    flex: 0 0 300px;
    position: relative;
    overflow: hidden;
}

.service-image-left a {
    display: block;
    width: 100%;
    height: 100%;
}

.service-image-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-item:hover .service-image-left img {
    transform: scale(1.05);
}

/* CONTENIDO DERECHA */
.service-content-right {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content-right h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-item:hover .service-content-right h3 {
    color: #3498db;
}

.service-content-right h3 a {
    color: inherit;
    text-decoration: none;
}

.service-content-right p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
}

/* METADATOS */
.service-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    color: #7f8c8d;
    font-size: 0.85rem;
    font-weight: 500;
}

.service-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-meta i {
    color: #3498db;
    font-size: 0.9rem;
}

/* BOTÓN LEER MÁS - DISEÑO ORIGINAL */
.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    padding: 8px 16px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.btn-read-more:hover {
    color: white;
    background: #3498db;
    gap: 12px;
    border-color: #3498db;
    transform: translateX(5px);
}

.btn-read-more i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.btn-read-more:hover i {
    transform: translateX(5px);
}

.no-services {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.no-services p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

#services-loading {
    display: none;
    margin-top: 20px;
    color: #3498db;
    font-weight: 500;
}

/* ============================================
   SECCIÓN BLOG (CARRUSEL)
   ============================================ */
.blog-section {
    padding: 80px 0;
    background: white;
}

.blog-container {
    max-width: 1000px;
    margin: 0 auto;
}

.blog-slider-wrapper {
    position: relative;
}

.blog-slider {
    display: flex;
    overflow: hidden;
    border-radius: 8px;
}

.blog-slide {
    flex: 0 0 100%;
    transition: transform 0.5s ease;
}

.blog-card {
    background: white;
    border: 1px solid #e0e0e0;
    display: flex;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: #f9f9f9;
}

.blog-card:hover .blog-content-right h3 {
    color: #3498db;
}

.blog-image-left {
    flex: 0 0 300px;
    border-right: 1px solid #e0e0e0;
    overflow: hidden;
}

.blog-image-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image-left img {
    transform: scale(1.05);
}

.blog-content-right {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-content-right h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-content-right h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-content-right p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.blog-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    color: #7f8c8d;
    font-size: 0.85rem;
    font-weight: 500;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-meta i {
    color: #3498db;
    font-size: 0.9rem;
}

.blog-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.blog-prev,
.blog-next {
    background: #f8f9fa;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.blog-prev:hover,
.blog-next:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: scale(1.1);
}

.blog-dots {
    display: flex;
    gap: 10px;
}

.blog-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-dot.active {
    background: #3498db;
    transform: scale(1.2);
}

/* ============================================
   FOOTER
   ============================================ */
/* ============================================
   FOOTER - CORREGIDO (SIN LÍNEA BAJO ÍCONOS)
   ============================================ */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* CORRECCIÓN PARA ELIMINAR LÍNEA BAJO ÍCONOS */
.footer-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #bdc3c7;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

.footer-info i {
    color: #3498db;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    vertical-align: middle !important; /* Fuerza alineación vertical */
    display: inline-block;
    line-height: 1;
}

/* Alternativa más específica si persiste el problema */
.footer-info .fas,
.footer-info .fab {
    vertical-align: middle !important;
    display: inline-block !important;
    line-height: 1 !important;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
}

.footer-social a:hover {
    background: #3498db;
    transform: translateY(-3px);
}

.footer-social i {
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle !important;
    display: inline-block !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Si el problema persiste, usa esta solución nuclear */
.footer * {
    vertical-align: baseline;
}

.footer i {
    vertical-align: middle !important;
}

/* ============================================
   BOTÓN VOLVER ARRIBA
   ============================================ */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.back-to-top-btn:hover {
    background: #2980b9;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .service-image-left,
    .blog-image-left {
        flex: 0 0 250px;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 70px;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav .main-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-left: 3px solid #3498db;
        margin-left: 20px;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .hero-slider {
        height: 500px;
    }
    
    .slide-content {
        padding: 80px 0;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .service-item,
    .blog-card {
        flex-direction: column;
    }
    
    .service-image-left,
    .blog-image-left {
        flex: 0 0 200px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .service-content-right,
    .blog-content-right {
        padding: 20px;
    }
    
    .service-content-right h3,
    .blog-content-right h3 {
        font-size: 1.2rem;
    }
    
    .service-meta,
    .blog-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .slide-content h1 {
        font-size: 1.8rem;
    }
    
    .slide-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
/* ============================================
   MENÚ PRINCIPAL - ELIMINAR PUNTOS Y CAMBIAR COLOR HOVER
   ============================================ */

/* Eliminar puntos de lista en menú principal */
.nav.main-menu,
.nav.main-menu li,
.dropdown-menu,
.dropdown-menu li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

/* Color hover del menú cambiado a #566999 */
.main-nav a:hover {
    color: white;
    background: #566999 !important; /* COLOR SOLICITADO */
}

/* Color hover del submenú también #566999 */
.dropdown-menu a:hover {
    background: #566999 !important; /* COLOR SOLICITADO */
    color: white !important;
}

/* ============================================
   BOTÓN CARGAR MÁS
   ============================================ */
.load-more-container {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

#load-more-services {
    padding: 12px 30px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#load-more-services:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

#services-loading {
    display: none;
    margin-top: 20px;
    color: #3498db;
    font-weight: 500;
}

.error {
    color: #e74c3c;
    font-weight: 500;
}