/* ===== CSS ESPECÍFICO PARA PÁGINA NOSOTROS CON FIXES RESPONSIVE ===== */
/* Solo estilos nuevos - No duplica los del CSS principal */

/* ===== PREVENTS OVERFLOW GLOBAL ===== */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

/* ===== HERO SECTION NOSOTROS - MEJORADO ===== */
.nosotros-hero {
    position: relative;
    height: 70vh;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(255,107,53,0.8)), 
                url('../fotos/8.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
    overflow: hidden; /* Evitar overflow */
}

.hero-overlay {
    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 100 20"><circle cx="10" cy="10" r="1" fill="rgba(255,107,53,0.2)"/><circle cx="30" cy="5" r="1" fill="rgba(255,107,53,0.1)"/><circle cx="70" cy="15" r="1" fill="rgba(255,107,53,0.15)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.nosotros-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
    width: 100%; /* Asegurar ancho completo */
}

.nosotros-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
    word-wrap: break-word; /* Evitar overflow de texto */
}

.nosotros-hero p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
    word-wrap: break-word;
    line-height: 1.5;
}

/* ===== HERO STATS - COMPLETAMENTE CORREGIDO ===== */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
    margin-top: 2rem;
    padding: 0 1rem; /* Agregar padding para evitar cortes */
}

.hero-stats .stat-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    min-width: 160px;
    max-width: 200px;
    flex: 1;
    box-sizing: border-box;
}

.hero-stats .stat-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff6b35;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    word-break: keep-all; /* Evitar cortes */
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    line-height: 1.3;
    word-wrap: break-word;
}

/* ===== QUIÉN SOMOS SECTION - MEJORADO ===== */
.quien-somos {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.text-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    box-sizing: border-box;
}

.text-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff6b35, #ffa500);
    border-radius: 20px 20px 0 0;
}

.intro-text {
    margin-bottom: 2.5rem;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== HIGHLIGHTED TEXT - CORREGIDO ===== */
.highlighted-text {
    background: linear-gradient(135deg, #ff6b35, #ffa500);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline;
    word-break: keep-all;
    white-space: nowrap;
    font-size: 1em;
}

.features-grid {
    display: grid;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    word-wrap: break-word;
}

.feature-item:hover {
    background: #f1f5f9;
    border-color: rgba(255,107,53,0.2);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35, #ffa500);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(255,107,53,0.2);
}

.feature-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.feature-content p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
}

.image-content {
    position: relative;
}

.main-image {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    background: none !important; /* Asegúrate de que no tenga fondo */
}

.main-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 70px rgba(0,0,0,0.2);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* un toque de oscuridad pero deja ver */
    backdrop-filter: blur(2px); /* opcional efecto glass suave */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    z-index: 2;
}


.overlay-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ff6b35;
}

.overlay-content p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

/* Por Qué Elegir Section */
.por-que-elegir {
    padding: 6rem 0;
    background: white;
    overflow: hidden;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.reason-card {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
}

.reason-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff6b35, #ffa500);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.reason-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255,107,53,0.15);
    border-color: rgba(255,107,53,0.2);
    background: white;
}

.reason-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.reason-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35, #ffa500);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(255,107,53,0.2);
    flex-shrink: 0;
}

.reason-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    word-wrap: break-word;
}

.reason-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4a5568;
    margin: 0;
    word-wrap: break-word;
}

.reason-card .highlighted {
    background: linear-gradient(135deg, #ff6b35, #ffa500);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline;
}

/* Beneficios Section */
.beneficios {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    position: relative;
    overflow: hidden;
}

.beneficios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../fotos/8.jpg"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.beneficios-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.beneficios .section-title {
    color: white;
    text-align: left;
    margin-bottom: 1rem;
}

.beneficios h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ff6b35;
    font-weight: 600;
}

.beneficios-list {
    display: grid;
    gap: 2rem;
}

.beneficio-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    word-wrap: break-word;
}

.beneficio-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(10px);
}

.beneficio-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35, #ffa500);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(255,107,53,0.3);
}

.beneficio-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
    word-wrap: break-word;
}

.beneficio-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
    word-wrap: break-word;
}

/* SIEN Connect Card */
.sien-connect-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    text-align: center;
    transition: all 0.3s ease;
}

.sien-connect-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.card-header {
    margin-bottom: 3rem;
}

.sien-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b35, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.connect-text {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 2px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-btn {
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: white;
    box-shadow: 0 8px 20px rgba(255,107,53,0.3);
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #e55a2b, #cc4d24);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255,107,53,0.4);
}

.action-btn.secondary {
    background: #f8fafc;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.action-btn.secondary:hover {
    background: #e2e8f0;
    color: #475569;
    border-color: #cbd5e1;
}

/* Ubicación y Seguimiento Section */
.ubicacion-seguimiento {
    padding: 6rem 0;
    background: linear-gradient(135deg, #2d3748, #4a5568);
    color: white;
    position: relative;
    overflow: hidden;
}

.ubicacion-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.ubicacion-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #ff6b35;
    font-weight: 700;
}

.pasos-list {
    display: grid;
    gap: 2rem;
}

.paso-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    word-wrap: break-word;
}

.paso-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(10px);
}

.paso-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35, #ffa500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(255,107,53,0.3);
}

.paso-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    opacity: 0.95;
    word-wrap: break-word;
}

/* Tracking Dashboard */
.tracking-dashboard {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    color: #333;
    transition: all 0.3s ease;
}

.tracking-dashboard:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.dashboard-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    word-wrap: break-word;
}

.status-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #10b981;
    position: relative;
}

.status-indicator.active::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid #10b981;
    animation: pulse 2s infinite;
}

.tracking-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tracking-stat {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tracking-stat:hover {
    background: #f1f5f9;
    transform: translateY(-3px);
}

.tracking-stat .stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b35, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.tracking-stat .stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-wrap: break-word;
}

/* Ventajas de Servicios Section */
.ventajas-servicios {
    padding: 6rem 0;
    background: #f8fafc;
    overflow: hidden;
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.ventaja-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.ventaja-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255,107,53,0.15);
    border-color: rgba(255,107,53,0.2);
}

.ventaja-icon {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ventaja-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b35, #ffa500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 15px 35px rgba(255,107,53,0.4);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255,255,255,0.3);
}

.ventaja-card h4 {
    padding: 2rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    text-align: center;
    margin: 0;
    word-wrap: break-word;
    hyphens: auto;
}

/* CTA Final Section */
.cta-final {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-final::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 100 20"><circle cx="10" cy="10" r="1" fill="rgba(255,107,53,0.1)"/><circle cx="30" cy="5" r="1" fill="rgba(255,107,53,0.1)"/><circle cx="70" cy="15" r="1" fill="rgba(255,107,53,0.1)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.cta-final .cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-final h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff6b35, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
}

.cta-final p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
    word-wrap: break-word;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 1.2rem 2.5rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-cta.primary {
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: white;
    box-shadow: 0 8px 20px rgba(255,107,53,0.3);
}

.btn-cta.primary:hover {
    background: linear-gradient(135deg, #e55a2b, #cc4d24);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255,107,53,0.4);
}

.btn-cta.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-cta.secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-3px);
}

/* ===== 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 pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== RESPONSIVE DESIGN MEJORADO ===== */

/* Container responsive */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* Tablet */
@media (max-width: 1024px) {
    .content-grid,
    .beneficios-content,
    .ubicacion-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .image-content {
        order: -1;
    }
    
    .main-image {
        height: 400px;
        margin: 0 1rem;
    }
    
    .ventajas-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .hero-stats .stat-item {
        min-width: 140px;
        max-width: 180px;
        padding: 1.8rem 1.2rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Hero responsive */
    .nosotros-hero {
        height: 60vh;
        margin-top: 70px;
        padding: 2rem 0;
    }
    
    .nosotros-hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .nosotros-hero p {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
    
    /* Hero stats mobile - COMPLETAMENTE CORREGIDO */
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .hero-stats .stat-item {
        min-width: 250px;
        max-width: 300px;
        width: 100%;
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* Texto content responsive */
    .text-content {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .intro-text p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }
    
    /* Highlighted text responsive */
    .highlighted-text {
        padding: 0.15rem 0.4rem;
        font-size: 0.95em;
        word-break: break-word;
        white-space: normal;
        display: inline;
    }
    
    .main-image {
        height: 300px;
        margin: 0 1rem;
    }
    
    .overlay-content h3 {
        font-size: 2rem;
    }
    
    .overlay-content p {
        font-size: 1rem;
    }
    
    /* Grid responsive */
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .reason-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .reason-card,
    .feature-item,
    .beneficio-item,
    .paso-item {
        margin: 0 0.5rem;
        padding: 1.5rem;
    }
    
    .beneficios-list {
        gap: 1.5rem;
    }
    
    /* CTA responsive */
    .cta-final h2 {
        font-size: 2rem;
    }
    
    .cta-final p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-cta {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .ventajas-grid {
        grid-template-columns: 1fr;
    }
    
    .tracking-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .nosotros-hero {
        height: 55vh;
        margin-top: 70px;
        padding: 1.5rem 0;
    }
    
    .nosotros-hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .nosotros-hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1.5rem;
        line-height: 1.5;
    }
    
    .hero-stats {
        margin-top: 1.5rem;
        padding: 0 1.5rem;
        gap: 1rem;
    }
    
    .hero-stats .stat-item {
        min-width: unset;
        max-width: unset;
        width: 100%;
        padding: 1.2rem 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
        letter-spacing: 0.3px;
    }
    
    .text-content {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .intro-text p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .highlighted-text {
        padding: 0.1rem 0.3rem;
        font-size: 0.9em;
        border-radius: 3px;
    }
    
    .main-image {
        height: 250px;
        margin: 0 0.5rem;
    }
    
    .overlay-content h3 {
        font-size: 1.5rem;
    }
    
    .overlay-content p {
        font-size: 0.9rem;
    }
    
    .feature-item,
    .reason-card,
    .beneficio-item,
    .paso-item {
        margin: 0 0.25rem;
        padding: 1.2rem 1rem;
    }
}

/* Fixes para evitar scroll horizontal */
@media (max-width: 768px) {
    .feature-item,
    .reason-card,
    .ventaja-card {
        margin: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .feature-item,
    .reason-card,
    .ventaja-card {
        margin: 0 0.25rem;
        padding: 1.5rem 1rem;
    }
}

/* Mejoras para textos largos */
h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    hyphens: auto;
}

p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== FIX PARA HERO STATS - MOSTRAR TODAS LAS CARDS COMPLETAS ===== */

/* Ajustar altura del hero para dar más espacio */
.nosotros-hero {
    position: relative;
    height: 75vh; /* Aumentado de 70vh a 75vh */
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(255,107,53,0.8)), 
                url('../fotos/8.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
    overflow: hidden;
    padding: 2rem 0; /* Agregar padding vertical */
}

/* Ajustar el contenido del hero */
.nosotros-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px; /* Aumentado de 900px */
    padding: 0 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

/* Optimizar espaciado del texto */
.nosotros-hero h1 {
    font-size: 3.5rem; /* Reducido ligeramente de 4rem */
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
    word-wrap: break-word;
}

.nosotros-hero p {
    font-size: 1.3rem; /* Reducido de 1.4rem */
    margin-bottom: 2.5rem; /* Reducido de 3rem */
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
    word-wrap: break-word;
    line-height: 1.4;
}

/* ===== HERO STATS - OPTIMIZADO PARA MOSTRAR TODAS ===== */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem; /* Reducido de 3rem */
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
    margin-top: 1.5rem; /* Reducido de 2rem */
    padding: 0 1rem;
    max-width: 100%;
}

.hero-stats .stat-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 1.8rem 1.2rem; /* Reducido padding */
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    min-width: 140px; /* Reducido de 160px */
    max-width: 180px; /* Reducido de 200px */
    flex: 1;
    box-sizing: border-box;
}

.hero-stats .stat-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.2rem; /* Reducido de 2.5rem */
    font-weight: 800;
    color: #ff6b35;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    word-break: keep-all;
}

.stat-label {
    font-size: 0.85rem; /* Reducido de 0.9rem */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    line-height: 1.2; /* Mejorado line-height */
    word-wrap: break-word;
}

/* ===== RESPONSIVE MEJORADO ===== */

@media (max-width: 1024px) {
    .nosotros-hero {
        height: 70vh;
        padding: 1.5rem 0;
    }
    
    .hero-stats {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .hero-stats .stat-item {
        min-width: 130px;
        max-width: 160px;
        padding: 1.6rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .nosotros-hero {
        height: 65vh; /* Aumentado de 60vh */
        margin-top: 70px;
        padding: 2rem 0;
    }
    
    .nosotros-hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .nosotros-hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    /* Hero stats mobile - COMPLETAMENTE OPTIMIZADO */
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem; /* Reducido gap */
        margin-top: 1.5rem;
        padding: 0 1.5rem;
        max-width: 100%;
    }
    
    .hero-stats .stat-item {
        min-width: unset;
        max-width: unset;
        width: 100%;
        max-width: 280px; /* Limitado para mejor control */
        padding: 1.3rem 1rem; /* Padding más compacto */
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
        line-height: 1.2;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 480px) {
    .nosotros-hero {
        height: 60vh;
        margin-top: 70px;
        padding: 1.5rem 0;
    }
    
    .nosotros-hero h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .nosotros-hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 1.5rem;
        line-height: 1.4;
    }
    
    .hero-stats {
        margin-top: 1rem;
        padding: 0 1.5rem;
        gap: 1rem;
    }
    
    .hero-stats .stat-item {
        max-width: 250px;
        padding: 1.1rem 0.8rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 0.2px;
    }
}

/* ===== FIX PARA LANDSCAPE MOBILE ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .nosotros-hero {
        height: 90vh; /* Más altura en landscape */
        padding: 1rem 0;
    }
    
    .nosotros-hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .nosotros-hero p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .hero-stats .stat-item {
        flex: 1;
        max-width: 140px;
        padding: 1rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
        line-height: 1.1;
    }
}

/* ===== ASEGURAR VISIBILIDAD COMPLETA ===== */
@media (max-height: 600px) {
    .nosotros-hero {
        height: auto;
        min-height: 100vh;
        padding: 3rem 0;
    }
    
    .hero-stats .stat-item {
        padding: 1rem 0.8rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

/* ===== MEJORAS DE PERFORMANCE ===== */
.hero-stats .stat-item {
    will-change: transform;
}

.nosotros-hero {
    contain: layout style paint;
}

.main-image img {
    transition: transform 0.5s ease, filter 0.5s ease;
}

.main-image:hover img {
    transform: scale(1.03);
    filter: brightness(1.05);
}


/* ===== DEBUGGING (REMOVER EN PRODUCCIÓN) ===== */
/*
.hero-stats {
    border: 2px solid red !important;
}

.hero-stats .stat-item {
    border: 1px solid blue !important;
}
*/
/* === imagen-railnet.css === */
.imagen-railnet {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.imagen-railnet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.imagen-railnet .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* ligeramente oscuro */
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    z-index: 2;
}

.imagen-railnet .overlay-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ff6b35;
}

.imagen-railnet .overlay-content p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}
.imagen-railnet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ===== FIX PARA RAILTEK MAGAZINE - IMAGEN VISIBLE ===== */

/* Reset para la sección */
.railtek-magazine * {
    box-sizing: border-box;
}

/* Contenedor principal */
.railtek-magazine {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: visible; /* Cambiado de hidden */
}

/* Layout grid */
.railtek-magazine-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

/* Contenedor de imagen */
.railtek-image-side {
    position: relative; /* Cambiado de sticky */
}

/* Frame de imagen - SIMPLIFICADO */
.railtek-image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    background: #f0f0f0; /* Color de fondo por si la imagen no carga */
    min-height: 400px; /* Altura mínima */
}

/* Imagen - ASEGURAR VISIBILIDAD */
.railtek-image-frame img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1; /* Asegurar que esté por encima */
    min-height: 400px;
    object-fit: cover;
}

/* Caption - MEJORADO */
.railtek-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
    z-index: 2; /* Por encima de la imagen */
    pointer-events: none; /* No bloquear clicks */
}

.railtek-years {
    font-size: 3rem;
    font-weight: 800;
    color: #ff6b35;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.railtek-image-caption p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.95;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* Hover effects */
.railtek-image-frame:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 70px rgba(0,0,0,0.2);
}

.railtek-image-frame:hover img {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

/* Contenido lateral */
.railtek-content-side {
    padding-top: 2rem;
}

.railtek-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2rem;
}

.railtek-text-block {
    margin-bottom: 3rem;
}

.railtek-lead {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #334155;
}

.railtek-accent {
    background: linear-gradient(135deg, #ff6b35, #ffa500);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.railtek-text-block p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
}

/* Servicios grid */
.railtek-services-grid {
    display: grid;
    gap: 1.5rem;
}

.railtek-service {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.railtek-service:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.railtek-service-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.railtek-service-content h4 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.railtek-service-content p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .railtek-magazine-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .railtek-image-frame {
        min-height: 300px;
    }
    
    .railtek-image-frame img {
        min-height: 300px;
    }
    
    .railtek-section-title {
        font-size: 2rem;
    }
    
    .railtek-years {
        font-size: 2.5rem;
    }
}

/* ===== DEBUG TEMPORAL ===== */
.railtek-image-frame {
    border: 2px solid red; /* Para ver el contenedor */
}

.railtek-image-frame img {
    opacity: 1 !important; /* Forzar opacidad completa */
    visibility: visible !important; /* Forzar visibilidad */
}
