/* ===== HERO SECTION FIBRA ÓPTICA ===== */
.fibra-hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -60px;
}

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

.fibra-hero .video-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 105, 140, 0.8) 0%, rgba(255, 128, 0, 0.6) 100%);
    z-index: 1;
}

.fibra-hero .video-background video {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.fibra-hero-content {
    max-width: 800px;
    color: var(--white);
    z-index: 2;
    text-align: center;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.fibra-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.fibra-badge {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.monomodo-badge {
    background: rgba(255, 128, 0, 0.9);
    color: var(--white);
}

.multimodo-badge {
    background: rgba(0, 105, 140, 0.9);
    color: var(--white);
}

.enterprise-badge {
    background: rgba(29, 53, 87, 0.9);
    color: var(--white);
}

.fibra-hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.fibra-hero .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.fibra-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.fibra-stats .stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 150px;
}

.fibra-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.fibra-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    color: var(--white);
}

/* ===== TECNOLOGÍAS FIBRA ===== */
.fibra-tech {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.tech-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-dark);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tech-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray);
}

.tech-header h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0;
    color: var(--secondary-color);
}

.tech-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--primary-color);
    color: var(--white);
}

.tech-badge.premium {
    background: var(--secondary-color);
}

.tech-features ul {
    margin-bottom: 2rem;
}

.tech-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.tech-features i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.tech-applications h4 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.tech-applications p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===== SERVICIOS FIBRA ===== */
.fibra-services {
    padding: 6rem 0;
    background-color: var(--white);
}

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

.service-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-dark);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotate(15deg) scale(1.1);
}

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

.service-card ul {
    text-align: left;
}

.service-card li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.service-card li::before {
    content: '▸';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

/* ===== COMPARATIVA MARCAS ===== */
.brands-comparison {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.brands-tabs {
    margin-top: 3rem;
}

.tab-headers {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-header {
    padding: 1rem 2rem;
    background: var(--white);
    border: 2px solid var(--gray-dark);
    border-radius: 25px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.tab-header:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-header.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.tab-content {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.tab-pane.active {
    display: block;
}

.brand-info {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.brand-logo {
    background: var(--gray);
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
}

.brand-logo img {
    max-height: 80px;
    max-width: 100%;
    filter: grayscale(0%);
}

.brand-details h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

.rating-stars {
    color: #FFD700;
}

.rating-text {
    color: var(--text-light);
    font-weight: 600;
}

.brand-details > p {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.brand-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feature strong {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature ul {
    margin-bottom: 0;
}

.feature li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

/* ===== MARCAS ADICIONALES ===== */
.additional-brands {
    padding: 4rem 0;
    background-color: var(--white);
}

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

.brand-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-dark);
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.brand-item img {
    max-height: 60px;
    margin: 0 auto 1.5rem;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0%);
}

.brand-item h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.brand-item p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===== CASOS DE ÉXITO ===== */
.success-cases {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.case-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

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

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-content {
    padding: 2rem;
}

.case-content h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.case-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.case-details span {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.case-brand {
    background: var(--primary-color);
    color: var(--white);
}

.case-fibers {
    background: var(--secondary-color);
    color: var(--white);
}

.case-distance {
    background: var(--accent-color);
    color: var(--white);
}

.case-content > p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.case-results {
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
}

.result {
    text-align: center;
    flex: 1;
}

.result strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.result span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== CTA FINAL ===== */
.fibra-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fibra-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/fibra-pattern.png') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.fibra-cta .container {
    position: relative;
    z-index: 1;
}

.fibra-cta h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.fibra-cta > p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.cta-features .feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--white);
    font-weight: 600;
}

.cta-features i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .fibra-hero h1 {
        font-size: 3rem;
    }
    
    .tech-comparison {
        grid-template-columns: 1fr;
    }
    
    .brand-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .fibra-hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .fibra-hero h1 {
        font-size: 2.5rem;
    }
    
    .fibra-stats {
        gap: 2rem;
    }
    
    .brand-info {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .brand-logo {
        height: 120px;
    }
}

@media (max-width: 768px) {
    .fibra-hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .fibra-hero h1 {
        font-size: 2rem;
    }
    
    .fibra-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .fibra-badges {
        gap: 0.5rem;
    }
    
    .fibra-badge {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .fibra-stats {
        gap: 1rem;
    }
    
    .fibra-stats .stat {
        padding: 1rem;
        min-width: 120px;
    }
    
    .fibra-stats .stat-number {
        font-size: 2rem;
    }
    
    .tech-comparison {
        grid-template-columns: 1fr;
    }
    
    .tech-card {
        padding: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .tab-headers {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-header {
        width: 100%;
        max-width: 300px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .fibra-hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .fibra-hero h1 {
        font-size: 1.8rem;
    }
    
    .fibra-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .fibra-stats .stat {
        width: 100%;
        max-width: 200px;
    }
    
    .tech-card {
        padding: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .case-results {
        flex-direction: column;
        gap: 1rem;
    }
}