/* styles.css - Estilos completos para Maren Fox S.A. */

:root {
    --primary: #E65100;
    --secondary: #222222;
    --accent: #FF9800;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #616161;
    --white: #FFFFFF;
    --text: #333333;
    --service-bg: #F8F9FA;
    --sidebar-width: 80px;
    --sidebar-expanded: 220px;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    transition: padding-left 0.3s ease;
}

/* Para escritorio: agregar padding cuando sidebar está visible */
@media (min-width: 1024px) {
    body {
        padding-left: var(--sidebar-width);
    }
    
    body.sidebar-expanded {
        padding-left: var(--sidebar-expanded);
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Simplificado */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: rotate(-5deg);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary);
    margin-left: 10px;
}

.logo-text span {
    color: var(--primary);
}

/* Botón de Llamada */
.call-button {
    display: flex;
    align-items: center;
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.call-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.call-button:hover::before {
    left: 100%;
}

.call-button i {
    margin-right: 8px;
    font-size: 1rem;
}

.call-text {
    transition: opacity 0.3s ease;
}

.call-icon {
    display: none;
}

.call-button:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Barra Lateral Flotante */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: var(--sidebar-width);
    background-color: var(--white);
    box-shadow: var(--shadow-medium);
    border-radius: 0 10px 10px 0;
    z-index: 999;
    overflow: hidden;
    transition: all 0.3s ease;
    height: auto;
    max-height: 500px;
}

.sidebar-nav:hover {
    width: var(--sidebar-expanded);
    box-shadow: var(--shadow-heavy);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.nav-item {
    position: relative;
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.nav-link:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

.nav-link.active {
    background-color: var(--primary);
    color: var(--white);
}

.nav-link i {
    font-size: 1.3rem;
    min-width: 40px;
    text-align: center;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.2);
}

.nav-text {
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    font-weight: 500;
    margin-left: 10px;
    font-size: 0.95rem;
}

.sidebar-nav:hover .nav-text {
    opacity: 1;
    transform: translateX(0);
}

/* Indicador de sección activa */
.active-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 50px;
    background-color: var(--primary);
    border-radius: 0 4px 4px 0;
    transition: top 0.3s ease;
    z-index: 1000;
}

/* Tooltip para desktop (cuando sidebar no está expandida) */
.nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--secondary);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    margin-left: 15px;
    box-shadow: var(--shadow-light);
}

.sidebar-nav:not(:hover) .nav-link:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ========== MENÚ MÓVIL CORREGIDO ========== */
.mobile-nav-toggle {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 1001;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

.mobile-nav-toggle:hover {
    background-color: var(--secondary);
    transform: scale(1.1);
}

.mobile-nav-toggle.active {
    background-color: var(--secondary);
    transform: rotate(90deg);
    top: 100px;
}

/* Menú móvil desplegable - NUEVO DISEÑO */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    padding-top: 100px;
    overflow-y: auto;
}

.mobile-nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu .sidebar-menu.mobile {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav-menu .nav-item {
    margin: 10px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.mobile-nav-menu.active .nav-item {
    opacity: 1;
    transform: translateY(0);
}

/* Retraso para animación escalonada */
.mobile-nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.5s; }
.mobile-nav-menu.active .nav-item:nth-child(6) { transition-delay: 0.6s; }
.mobile-nav-menu.active .nav-item:nth-child(7) { transition-delay: 0.7s; }
.mobile-nav-menu.active .nav-item:nth-child(8) { transition-delay: 0.8s; }

.mobile-nav-menu .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 5px;
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.mobile-nav-menu .nav-link:hover {
    background-color: var(--light-gray);
    color: var(--primary);
}

.mobile-nav-menu .nav-link.active {
    background-color: var(--primary);
    color: var(--white);
}

.mobile-nav-menu .nav-link i {
    font-size: 1.3rem;
    margin-right: 15px;
    width: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.mobile-nav-menu .nav-link:hover i {
    transform: scale(1.2);
}

.mobile-nav-menu .nav-text {
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Botón de cerrar en menú móvil */
.mobile-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    transition: transform 0.3s ease;
}

.mobile-close-btn:hover {
    transform: rotate(90deg);
    color: var(--primary);
}

/* ========== HERO SECTION CON IMAGEN ========== */
.hero {
    min-height: 100vh;
    position: relative;
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* Imagen de respaldo */
.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Overlay mejorado */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

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

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

/* Secciones generales */
section {
    padding: 80px 0;
    scroll-margin-top: 100px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-title p {
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Quiénes Somos */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text);
}

.timeline {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--primary);
    box-shadow: var(--shadow-light);
}

.timeline h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.timeline-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--medium-gray);
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
}

.timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-year {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Valores con Slider */
.values {
    background-color: var(--light-gray);
}

.valuesSwiper {
    padding: 20px 0 50px;
}

.valuesSwiper .swiper-slide {
    display: flex;
    justify-content: center;
}

.value-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-light);
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.value-icon {
    background-color: var(--primary);
    color: var(--white);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    font-size: 2rem;
    margin: 0 auto 25px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1);
    background-color: var(--accent);
}

.value-card h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Servicios */
.services {
    background-color: var(--service-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--primary);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--accent);
}

.service-card h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.company-subtitle {
    display: block;
    font-size: 1rem;
    color: var(--primary);
    margin-top: 5px;
    font-weight: 600;
}

.service-features {
    list-style: none;
    margin-top: 15px;
}

.service-features li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.service-features li i {
    position: absolute;
    left: 0;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.service-features li:hover i {
    transform: scale(1.2);
}

/* Maquinaria */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.equipment-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipment-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.equipment-img {
    height: 220px;
    width: 100%;
    background-color: var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    position: relative;
    overflow: hidden;
}

.equipment-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));
}

.img-placeholder {
    text-align: center;
    color: var(--dark-gray);
    z-index: 1;
}

.img-placeholder i {
    font-size: 4rem;
    margin-bottom: 10px;
    display: block;
    transition: transform 0.3s ease;
}

.equipment-card:hover .img-placeholder i {
    transform: scale(1.1);
}

.img-placeholder span {
    font-size: 1.2rem;
    font-weight: 600;
}

.img-placeholder.small i {
    font-size: 2.5rem;
}

.equipment-info {
    padding: 25px;
}

.equipment-info h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.equipment-status {
    margin-top: 15px;
}

.status-tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 10px;
}

.status-tag.available {
    background-color: #4CAF50;
    color: white;
}

/* Estilos para imágenes de equipos */
.equipment-img {
    height: 400px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.equipment-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.equipment-label {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    background: rgba(230, 81, 0, 0.9);
    color: white;
    padding: 8px 15px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    z-index: 2;
}

/* Efecto de overlay para mejor legibilidad */
.equipment-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 1;
}

/* Alquiler y Venta */
.equipment-options {
    margin-top: 30px;
}

.options-info {
    background-color: #E3F2FD;
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    box-shadow: var(--shadow-light);
}

.options-info i {
    color: var(--primary);
    margin-right: 10px;
}

.equipment-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.equipment-item.combined {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
    position: relative;
    overflow: hidden;
}

.equipment-item.combined::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 81, 0, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.equipment-item.combined:hover::before {
    opacity: 1;
}

.equipment-item.combined:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary);
}

.item-img {
    height: 200px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.item-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.05));
}

.item-info {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.item-info h4 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.availability {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.availability-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.availability-tag:hover {
    transform: scale(1.05);
}

.availability-tag.rental {
    background-color: var(--primary);
    color: white;
}

.availability-tag.sale {
    background-color: #4CAF50;
    color: white;
}

.item-specs {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.item-specs p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
}

.item-specs i {
    color: var(--primary);
    margin-right: 10px;
    width: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.item-specs p:hover i {
    transform: scale(1.2);
}

.cta-section {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.cta-section p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* ========== ESTILOS PARA IMÁGENES DE ALQUILER Y VENTA ========== */

/* Contenedor de imagen */
.item-img {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--light-gray);
}

/* Imagen dentro del contenedor */
.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background-color: var(--medium-gray);
}

/* Efecto hover en imagen */
.equipment-item.combined:hover .item-img img {
    transform: scale(1.05);
}

/* Etiqueta sobre la imagen */
.item-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(230, 81, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Overlay para mejor legibilidad del texto */
.item-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.3));
    z-index: 1;
    transition: opacity 0.3s ease;
}

.equipment-item.combined:hover .item-img::after {
    opacity: 0.8;
}

/* Fallback si la imagen no carga */
.item-img img:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    font-size: 3rem;
}

/* Estilos responsivos para imágenes */
@media (max-width: 768px) {
    .item-img {
        height: 180px;
    }
    
    .item-label {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .item-img {
        height: 160px;
    }
}

/* Aliados */
.allies {
    background-color: var(--light-gray);
}

.alliesSwiper {
    padding: 20px 0 50px;
}

.ally-placeholder {
    background-color: var(--white);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    color: var(--dark-gray);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.2rem;
}

.swiper-slide:hover .ally-placeholder {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* Estilos para logos de aliados */
.ally-logo {
    background-color: var(--white);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ally-logo img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.swiper-slide:hover .ally-logo {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

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

/* Efecto sutil de hover */
.ally-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 81, 0, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.swiper-slide:hover .ally-logo::after {
    opacity: 1;
}

/* Ajustes responsivos para logos */
@media (max-width: 768px) {
    .ally-logo {
        height: 100px;
        padding: 10px;
    }
    
    .ally-logo img {
        max-height: 70px;
    }
}

@media (max-width: 480px) {
    .ally-logo {
        height: 80px;
        padding: 8px;
    }
    
    .ally-logo img {
        max-height: 60px;
    }
}

/* Estilos para logos de aliados */
.ally-logo {
    background-color: var(--white);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ally-logo img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.swiper-slide:hover .ally-logo {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

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

/* Efecto sutil de hover */
.ally-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 81, 0, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.swiper-slide:hover .ally-logo::after {
    opacity: 1;
}

/* Ajustes responsivos para logos */
@media (max-width: 768px) {
    .ally-logo {
        height: 100px;
        padding: 10px;
    }
    
    .ally-logo img {
        max-height: 70px;
    }
}

@media (max-width: 480px) {
    .ally-logo {
        height: 80px;
        padding: 8px;
    }
    
    .ally-logo img {
        max-height: 60px;
    }
}

/* Formularios */
.forms-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
}

.form-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
}

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

.form-title {
    color: var(--secondary);
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 1.5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.1);
}

/* Estilos específicos para select */
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23616161' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.1);
}

.file-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px dashed var(--medium-gray);
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    margin-top: 5px;
    position: relative;
    overflow: hidden;
}

.file-upload:hover {
    border-color: var(--primary);
    background-color: rgba(230, 81, 0, 0.05);
}

.file-upload i {
    margin-right: 10px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.file-upload:hover i {
    transform: translateY(-3px);
}

.privacy-check {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 5px;
    background-color: var(--light-gray);
}

.privacy-check input {
    margin-right: 10px;
    cursor: pointer;
}

.submit-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background-color: #D84315;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Contenedor del Mapa */
.map-container {
    width: 100%;
    margin-top: 60px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 70px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    font-weight: 600;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 1.5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #CCCCCC;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 8px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-links a:hover i {
    transform: rotate(90deg);
}

.contact-info {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-icon {
    color: var(--primary);
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-info:hover .contact-icon {
    transform: scale(1.2);
}

.contact-info div {
    color: var(--white);
}

.contact-info strong {
    color: var(--white);
    display: block;
    margin-bottom: 3px;
}

/* Enlaces de contacto en el footer */
.footer-contact-link {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.footer-contact-link:hover {
    color: var(--primary);
}

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

.footer-certifications {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-certifications h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--white);
}

.footer-certifications p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    color: #CCCCCC;
}

.footer-certifications i {
    margin-right: 10px;
    color: var(--primary);
}

.footer-subtitle {
    font-size: 1.2rem;
    margin: 20px 0 10px;
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #AAAAAA;
    font-size: 0.9rem;
}

.copyright a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.copyright a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-legal {
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* WhatsApp flotante - AJUSTADO para no superponerse */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.whatsapp-btn:hover::before {
    left: 100%;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-info {
    background-color: #25D366;
}

.whatsapp-services {
    background-color: var(--primary);
}

.whatsapp-icon {
    color: var(--white);
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background-color: var(--secondary);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: var(--shadow-light);
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-5px);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1023px) {
    /* Ocultar sidebar en móviles/tablets */
    .sidebar-nav {
        display: none !important;
    }
    
    /* Mostrar botón de navegación móvil en posición superior */
    .mobile-nav-toggle {
        display: flex;
        top: 100px;
        right: 20px;
        bottom: auto;
    }
    
    /* Remover padding del body */
    body {
        padding-left: 0 !important;
    }
    
    /* Ajustar header para móviles */
    .logo-img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .call-text {
        display: none;
    }
    
    .call-icon {
        display: block;
        font-size: 1.2rem;
    }
    
    .call-button i:first-child {
        display: none;
    }
    
    .call-button {
        padding: 10px 15px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        justify-content: center;
    }
    
    /* Ajustar posición del toggle en pantallas más pequeñas */
    @media (max-width: 768px) {
        .mobile-nav-toggle {
            top: 90px;
            right: 15px;
            width: 55px;
            height: 55px;
        }
        
        .whatsapp-float {
            bottom: 20px;
            right: 20px;
        }
        
        .whatsapp-btn {
            width: 55px;
            height: 55px;
        }
    }
    
    @media (max-width: 480px) {
        .mobile-nav-toggle {
            top: 85px;
            right: 10px;
            width: 50px;
            height: 50px;
        }
        
        .whatsapp-float {
            bottom: 15px;
            right: 15px;
        }
        
        .whatsapp-btn {
            width: 50px;
            height: 50px;
        }
    }
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .forms-container {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        margin-top: 40px;
    }
    
    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero {
        margin-top: 80px;
        height: 80vh;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .equipment-items-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        margin-top: 30px;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .form-card {
        padding: 30px 20px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .map-container iframe {
        height: 250px;
    }
}

/* ========== BOTÓN DE LLAMADA MEJORADO PARA MÓVILES ========== */

/* Para móviles: mostrar solo el icono */
@media (max-width: 1023px) {
    .call-button {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background-color: var(--primary);
        color: var(--white);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        padding: 0;
        border: 2px solid var(--primary);
        position: relative;
        overflow: hidden;
        box-shadow: var(--shadow-medium);
        transition: all 0.3s ease;
    }
    
    .call-button:hover {
        background-color: transparent;
        color: var(--primary);
        transform: scale(1.1);
    }
    
    /* Ocultar texto en móviles */
    .call-text {
        display: none !important;
    }
    
    /* Ocultar primer icono (para desktop) */
    .desktop-icon {
        display: none !important;
    }
    
    /* Mostrar icono móvil */
    .mobile-icon {
        display: block !important;
        font-size: 1.3rem;
        color: var(--white);
        transition: all 0.3s ease;
    }
    
    /* Efecto hover para el icono móvil */
    .call-button:hover .mobile-icon {
        color: var(--primary);
        transform: rotate(15deg);
    }
    
    /* Tooltip para móviles (opcional) */
    .call-button::after {
        content: 'Llamar: 323 2328471';
        position: absolute;
        top: -40px;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--secondary);
        color: var(--white);
        padding: 6px 12px;
        border-radius: 4px;
        font-size: 0.8rem;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1001;
        box-shadow: var(--shadow-light);
    }
    
    .call-button:hover::after {
        opacity: 1;
        visibility: visible;
        top: -45px;
    }
}

/* Para desktop: mantener diseño original */
@media (min-width: 1024px) {
    .mobile-icon {
        display: none !important;
    }
    
    .desktop-icon {
        display: inline-block !important;
    }
    
    .call-text {
        display: inline-block !important;
    }
}

/* Estilos comunes para el botón */
.call-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.call-button:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Animación de brillo al pasar el cursor */
.call-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.call-button:hover::before {
    left: 100%;
}

/* Ajustes para tablets */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mejoras de accesibilidad - focus states */
.nav-link:focus,
.call-button:focus,
.cta-button:focus,
.submit-btn:focus,
.form-control:focus,
.footer-contact-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Animación para elementos que aparecen al hacer scroll */
.fade-in {
    animation: fadeIn 0.8s ease;
}

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

/* Estilos para el pagination de Swiper */
.swiper-pagination-bullet {
    background-color: var(--medium-gray);
    opacity: 1;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Estilos para cuando sidebar está expandida en desktop */
@media (min-width: 1024px) {
    .sidebar-nav.expanded {
        width: var(--sidebar-expanded);
    }
    
    .sidebar-nav.expanded .nav-text {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Ajustar padding del body cuando sidebar está expandida */
    body.sidebar-expanded {
        padding-left: var(--sidebar-expanded);
    }
}

/* Placeholder para imágenes mientras se cargan */
.img-placeholder, .ally-placeholder {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

/* Estilos para las transiciones de Swiper */
.swiper-slide {
    transition: transform 0.3s ease;
}