/* 
   Fortinix - Ciberseguridad Stylesheet
   Versión: 1.0
*/
/* Estilos Hero mejorados */
.cyber-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 130px 0 80px;
    overflow: hidden;
    background-color: rgba(5, 10, 20, 0.9);
}

.cyber-content-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.cyber-hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.cyber-hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cyber-hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--color-gray-light);
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Nueva animación para la imagen de escudo */
.cyber-hero-image {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.security-shield {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 5;
    animation: pulseShield 3s infinite alternate;
    filter: drop-shadow(0 0 20px rgba(0, 157, 255, 0.4));
}

@keyframes pulseShield {
    0% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 20px rgba(0, 157, 255, 0.4));
    }
    50% {
        transform: scale(1.05) rotate(2deg);
        filter: drop-shadow(0 0 30px rgba(0, 157, 255, 0.6));
    }
    100% {
        transform: scale(1) rotate(-2deg);
        filter: drop-shadow(0 0 25px rgba(0, 157, 255, 0.5));
    }
}

/* Efecto de capa de protección animada */
.protection-layer {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    border: 2px solid rgba(0, 157, 255, 0.3);
    z-index: 2;
    animation: rotateLayer 15s linear infinite;
}

.protection-layer::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    border: 1px solid rgba(237, 38, 122, 0.3);
    animation: rotateLayer 10s linear infinite reverse;
}

@keyframes rotateLayer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Efecto de puntos de seguridad (como un escaneo) */
.security-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.security-dots::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        radial-gradient(circle, rgba(0, 157, 255, 0.2) 1px, transparent 1px),
        radial-gradient(circle, rgba(237, 38, 122, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    animation: scanGrid 5s linear infinite;
}

@keyframes scanGrid {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(30px) rotate(5deg);
    }
}

/* Cuadrícula tecno para el fondo */
.cyber-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 157, 255, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 157, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    opacity: 0.3;
    pointer-events: none;
    animation: fadeGridIn 2s ease-out forwards;
}

@keyframes fadeGridIn {
    0% {
        opacity: 0;
        background-size: 50px 50px;
    }
    100% {
        opacity: 0.3;
        background-size: 40px 40px;
    }
}

/* Animación de las líneas de texto */
.cyber-hero-title .text-line {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    padding-left: 0;
}

.cyber-hero-title .text-line:nth-child(1) {
    animation: slideInCyber 0.8s forwards 0.2s;
}

.cyber-hero-title .text-line:nth-child(2) {
    animation: slideInCyber 0.8s forwards 0.6s;
}

@keyframes slideInCyber {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    30% {
        opacity: 0.3;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de destello de código en texto */
.cyber-hero-title .accent {
    color: var(--color-magenta);
    text-decoration: none;
    position: relative;
}

.cyber-hero-title .accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(237, 38, 122, 0.3), transparent);
    transform: translateX(-100%);
    animation: codeFlash 5s infinite 1.5s;
}

@keyframes codeFlash {
    0% {
        transform: translateX(-100%);
    }
    20%, 100% {
        transform: translateX(100%);
    }
}

/* Estilos responsive */
@media (max-width: 992px) {
    .cyber-content-wrap {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .cyber-hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .cyber-hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .cyber-hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .cyber-hero-title {
        font-size: 2.5rem;
    }
    
    .cyber-hero {
        padding: 120px 0 60px;
    }
}

/* Sección Timeline de Servicios */
.cyber-timeline {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--color-darker), rgba(0, 157, 255, 0.05), var(--color-darker));
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--color-gray-light);
}

.services-timeline {
    position: relative;
    margin-top: 4rem;
}

.timeline-infographic {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 4rem;
    display: block;
}

.timeline-cards {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.timeline-card {
    background-color: rgba(12, 18, 32, 0.7);
    border: 1px solid rgba(0, 157, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    flex: 1;
    min-width: 280px;
    position: relative;
    transition: var(--transition);
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
    animation-delay: calc(var(--delay) * 0.2s);
}

.timeline-card:nth-child(1) {
    --delay: 1;
}

.timeline-card:nth-child(2) {
    --delay: 2;
}

.timeline-card:nth-child(3) {
    --delay: 3;
}

.timeline-card.featured {
    border-color: var(--color-magenta);
    box-shadow: 0 10px 30px rgba(237, 38, 122, 0.1);
}

.timeline-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 157, 255, 0.15);
    border-color: var(--color-blue);
}

.timeline-card.featured:hover {
    border-color: var(--color-magenta);
    box-shadow: 0 15px 35px rgba(237, 38, 122, 0.15);
}

.timeline-tag {
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--color-blue);
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 20px;
    text-transform: uppercase;
}

.timeline-card.featured .timeline-tag {
    background: var(--color-magenta);
}

.timeline-card h3 {
    margin-top: 1rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-card p {
    color: var(--color-gray-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.timeline-features {
    margin-bottom: 1.5rem;
}

.timeline-features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.timeline-features li img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.btn-sm {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

/* Sección de Servicios Detallados */
.cyber-services {
    padding: 6rem 0;
}

.services-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-gray);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    font-family: var(--font-title);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-magenta));
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--color-text);
}

.tab-btn.active {
    color: var(--color-text);
}

.tab-btn.active::after {
    width: 80%;
}

.tab-content {
    position: relative;
    min-height: 400px;
}

.tab-pane {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.3s ease;
    transform: translateY(20px);
}

.tab-pane.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.service-intro h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.service-tag {
    font-size: 0.9rem;
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
}

.service-tag.free {
    background-color: var(--color-blue);
}

.service-tag.recommended {
    background-color: var(--color-magenta);
}

.service-tag.advanced {
    background: linear-gradient(90deg, var(--color-blue), var(--color-magenta));
}

.service-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color-gray-light);
}

.service-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.feature-text h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-blue);
}

.service-detail {
    background-color: rgba(12, 18, 32, 0.5);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(0, 157, 255, 0.1);
}

.service-detail h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    border-left: 3px solid var(--color-blue);
    padding-left: 1rem;
}

.service-checklist {
    margin-bottom: 2.5rem;
}

.service-checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.service-checklist li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-blue);
}

.process-infographic {
    margin: 2rem 0;
    text-align: center;
}

.process-image {
    max-width: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
}

.service-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Sección Beneficios */
.cyber-benefits {
    padding: 6rem 0;
    background: linear-gradient(0deg, var(--color-darker), rgba(0, 157, 255, 0.03), var(--color-darker));
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.benefit-card {
    background-color: rgba(12, 18, 32, 0.5);
    border: 1px solid rgba(0, 157, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
    animation-delay: calc(var(--delay) * 0.2s);
}

.benefit-card:nth-child(1) { --delay: 1; }
.benefit-card:nth-child(2) { --delay: 2; }
.benefit-card:nth-child(3) { --delay: 3; }
.benefit-card:nth-child(4) { --delay: 4; }
.benefit-card:nth-child(5) { --delay: 5; }
.benefit-card:nth-child(6) { --delay: 6; }

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 157, 255, 0.1);
    border-color: var(--color-blue);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.benefit-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 157, 255, 0.3));
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon img {
    filter: drop-shadow(0 0 15px rgba(0, 157, 255, 0.6));
    transform: scale(1.1);
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.benefit-card p {
    color: var(--color-gray-light);
    font-size: 0.95rem;
}

/* Sección Certificaciones */
.cyber-certifications {
    padding: 6rem 0;
    text-align: center;
}

.certifications-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.certification-item {
    width: 200px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    transition: var(--transition);
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
    animation-delay: calc(var(--delay) * 0.2s);
}

.certification-item:nth-child(1) { --delay: 1; }
.certification-item:nth-child(2) { --delay: 2; }
.certification-item:nth-child(3) { --delay: 3; }

.certification-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-10px);
}

.certification-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%) brightness(1.1);
    transition: var(--transition);
}

.certification-item:hover img {
    filter: grayscale(0%) brightness(1.2);
}

/* Sección Contacto */
.cyber-contact {
    padding: 6rem 0;
    background: linear-gradient(0deg, rgba(237, 38, 122, 0.05), var(--color-darker), rgba(0, 157, 255, 0.05));
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    background-color: rgba(12, 18, 32, 0.7);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(0, 157, 255, 0.1);
}

.contact-text {
    padding: 3rem;
}

.contact-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.contact-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color-gray-light);
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contact-feature i {
    color: var(--color-blue);
}

.contact-form-wrap {
    padding: 3rem;
    background-color: rgba(12, 18, 32, 0.5);
}

.cyber-form .form-group {
    margin-bottom: 1.5rem;
}

.cyber-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cyber-form input,
.cyber-form select,
.cyber-form textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--color-text);
    font-family: var(--font-body);
    transition: var(--transition);
}

.cyber-form input:focus,
.cyber-form select:focus,
.cyber-form textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 2px rgba(0, 157, 255, 0.2);
}

.cyber-form button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Animaciones */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 1200px) {
    .cyber-hero-title {
        font-size: 3rem;
    }
    
    .cyber-hero-image {
        width: 45%;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .cyber-hero {
        flex-direction: column;
        padding-top: 150px;
        text-align: center;
    }
    
    .cyber-hero-content {
        max-width: 100%;
    }
    
    .cyber-hero-image {
        position: relative;
        width: 80%;
        margin-top: 2rem;
    }
    
    .timeline-cards {
        flex-direction: column;
    }
    
    .timeline-card {
        width: 100%;
    }
    
    .contact-wrap {
        grid-template-columns: 1fr;
    }
    
    .service-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cyber-hero-title {
        font-size: 2.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications-grid {
        gap: 1.5rem;
    }
    
    .certification-item {
        width: 160px;
        height: 100px;
    }
}

/* Ajustes para alineación de texto */
.cyber-hero-content {
    max-width: 550px;
    margin-right: auto;
    padding-right: 20px;
}

.cyber-hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
}

.cyber-hero-description {
    max-width: 90%;
}

/* Asegura que la imagen se ajuste correctamente */
.cyber-hero-image img {
    max-width: 100%;
    height: auto;
}

/* Ajustes responsive */
@media (max-width: 992px) {
    .cyber-hero-content {
        margin: 0 auto;
        text-align: center;
        padding: 0 20px;
    }
    
    .cyber-hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Ajustes específicos para la página de ciberseguridad */
.cyber-hero {
    padding: 120px 0 60px;
    overflow: hidden;
    position: relative;
}

/* Contenedor principal con margen adecuado */
.cyber-hero .container {
    max-width: 1200px;
    padding: 0 30px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Ajustes para el texto */
.cyber-hero-title {
    font-size: 3.2rem; /* Tamaño reducido */
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 500px; /* Limitar ancho */
}

.cyber-hero-title .accent {
    color: var(--color-magenta);
}

.cyber-hero-description {
    max-width: 450px; /* Ancho fijo */
    margin-bottom: 25px;
}

/* Reducir tamaño de imagen */
.cyber-hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%; /* Reducido del 50% */
    max-width: 500px;
}

.cyber-hero-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Añadir fondo semitransparente para mejorar legibilidad */
.cyber-hero-content {
    position: relative;
    z-index: 3;
    margin-left: 0; /* Asegurar que no hay margen a la izquierda */
    padding-left: 0;
    max-width: 50%;
}

/* Gradiente para mejorar contraste */
.cyber-hero:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, rgba(5, 10, 20, 0.9) 0%, rgba(5, 10, 20, 0.7) 60%, rgba(5, 10, 20, 0) 100%);
    z-index: 1;
}

/* Ajustes para responsive */
@media (max-width: 992px) {
    .cyber-hero-content {
        max-width: 100%;
        text-align: center;
        margin: 0 auto 50px;
    }
    
    .cyber-hero-title,
    .cyber-hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cyber-hero-image {
        position: static;
        transform: none;
        width: 80%;
        max-width: 350px;
        margin: 0 auto;
        display: block;
    }
    
    .cyber-hero:before {
        width: 100%;
        background: rgba(5, 10, 20, 0.8);
    }
}
/* Ajuste final para la página de ciberseguridad */

/* Ajustar tamaño de título principal */
.cyber-hero-title {
    font-size: 3rem; /* Tamaño reducido para ambas líneas */
}

/* Específicamente para el texto magenta */
.cyber-hero-title .accent {
    font-size: 2.8rem; /* Reducir aún más el texto magenta */
    line-height: 1.1;
    display: block;
    margin-top: 10px;
}

/* Asegurar que el texto descriptivo tenga ancho controlado */
.cyber-hero-description {
    max-width: 400px;
    font-size: 1rem;
    line-height: 1.5;
}

/* Limitar el ancho del contenedor de contenido */
.cyber-hero-content {
    max-width: 450px;
}

/* Ajustar la posición de la imagen */
.cyber-hero-image {
    right: 5%;
    width: 40%; /* Reducir un poco más el tamaño */
}
/* Ajuste final para reducir tamaño de imagen */
.cyber-hero-image {
    right: 8%; /* Posición ligeramente más alejada del borde */
    width: 35%; /* Reducir del 40% al 35% */
    max-width: 400px; /* Limitar tamaño máximo absoluto */
}

.cyber-hero-image img {
    width: 90%; /* Reducir también el tamaño de la imagen dentro del contenedor */
    display: block;
    margin: 0 auto; /* Centrar la imagen */
    filter: drop-shadow(0 0 15px rgba(0, 157, 255, 0.3)); /* Suavizar el efecto de sombra */
}

/* Crear más espacio para el contenido */
.cyber-hero-content {
    max-width: 480px; /* Dar un poco más de espacio al texto */
    padding-right: 30px; /* Asegurar que hay margen con la imagen */
}
/* Título animado con subrayado */
.animated-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
    color: var(--color-text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}


.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-magenta));
    margin: 0 auto 30px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.animated-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-magenta));
    border-radius: 2px;
    overflow: hidden;
}

.animated-title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 2px;
    z-index: 1;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Elimina los estilos de .title-underline ya que no la usamos */


@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Mejora del espaciado y apariencia para la descripción */
.section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--color-gray-light);
}
/* Mejora para el título de la sección */
.cyber-timeline .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

/* Centrar el contenedor del título */
.cyber-timeline .container {
    text-align: center;
}
/* Contenedor para la infografía interactiva */
.timeline-interactive {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 20px;
    background-color: rgba(10, 20, 40, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(0, 157, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.timeline-interactive:hover {
    box-shadow: 0 15px 40px rgba(0, 157, 255, 0.1);
    border-color: rgba(0, 157, 255, 0.3);
}

/* Contenedor de flujo de servicio */
.service-flow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 0;
}

/* Contenedor para cada icono de servicio */
.service-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-icon-container:hover {
    transform: translateY(-10px);
}

.service-icon-container h4 {
    margin-top: 15px;
    margin-bottom: 5px;
    color: var(--color-text);
    font-weight: 600;
    font-size: 1.1rem;
}

.service-icon-container p {
    margin: 0;
    color: var(--color-gray-light);
    font-size: 0.9rem;
}

/* SVG de icono de servicio */
.service-icon {
    width: 120px;
    height: 120px;
    transition: filter 0.3s ease;
}

.service-icon:hover {
    filter: drop-shadow(0 0 10px rgba(0, 157, 255, 0.5));
}

/* Estilos específicos para cada icono */
.diagnose-icon:hover {
    filter: drop-shadow(0 0 10px rgba(0, 157, 255, 0.6));
}

.shield-icon:hover {
    filter: drop-shadow(0 0 10px rgba(237, 38, 122, 0.4));
}

.compliance-icon:hover {
    filter: drop-shadow(0 0 10px rgba(237, 38, 122, 0.6));
}

/* Líneas conectoras */
.connector-line {
    width: 100px;
    height: 20px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.connector-line:hover {
    opacity: 1;
}

/* Adaptaciones para dispositivos móviles */
@media (max-width: 768px) {
    .service-flow-container {
        flex-direction: column;
    }
    
    .connector-line {
        transform: rotate(90deg);
        margin: 20px 0;
    }
}
/* Mejorar alineación de los iconos SVG */
.service-flow-container {
    align-items: flex-start;
    padding: 30px 0;
}

.service-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 220px; /* Altura fija para todos los contenedores */
    justify-content: flex-start;
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon-container h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.service-icon-container p {
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-gray-light);
}

/* Alineación de las líneas conectoras */
.connector-line {
    margin-top: 60px; /* Alinear con el centro de los iconos */
}
/* Mejora de alineación para iconos SVG */
.service-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 220px;
    justify-content: center;
    padding: 10px;
}

.service-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
}

.connector-line {
    align-self: center;
    margin-top: 60px;
}
/* Tarjetas de timeline mejoradas */
.timeline-card {
    background-color: rgba(12, 18, 32, 0.7);
    border: 1px solid rgba(0, 157, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    flex: 1;
    min-width: 280px;
    position: relative;
    transition: var(--transition);
    transform: translateY(0);
    overflow: hidden;
    z-index: 1;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-blue), transparent);
    opacity: 0.7;
    transition: var(--transition);
}

.timeline-card.featured::before {
    background: linear-gradient(90deg, var(--color-magenta), var(--color-blue));
    opacity: 1;
}

.timeline-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 157, 255, 0.3);
    z-index: 2;
}

.timeline-card.featured:hover {
    border-color: rgba(237, 38, 122, 0.3);
    box-shadow: 0 15px 35px rgba(237, 38, 122, 0.1);
}

/* Efecto de brillo en la tarjeta */
.timeline-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 157, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

.timeline-card.featured .timeline-glow {
    background: radial-gradient(circle at center, rgba(237, 38, 122, 0.1), transparent 70%);
}

.timeline-card:hover .timeline-glow {
    opacity: 0.8;
}

/* Etiqueta */
.timeline-tag {
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--color-blue);
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.timeline-card.featured .timeline-tag {
    background: var(--color-magenta);
    box-shadow: 0 4px 10px rgba(237, 38, 122, 0.3);
}

.timeline-card:hover .timeline-tag {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Título y descripción */
.timeline-card h3 {
    margin-top: 1rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.timeline-card:hover h3 {
    color: var(--color-blue);
}

.timeline-card.featured:hover h3 {
    color: var(--color-magenta);
}

.timeline-card p {
    color: var(--color-gray-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Detalles de timeline */
.timeline-details {
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

/* Barra de progreso */
.timeline-progress {
    margin-top: 1rem;
}

.progress-bar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--color-blue), var(--color-blue));
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

.progress-fill.phase-1 {
    width: 33%;
}

.progress-fill.phase-2 {
    width: 66%;
    background: linear-gradient(90deg, var(--color-blue), var(--color-magenta));
}

.progress-fill.phase-3 {
    width: 100%;
    background: linear-gradient(90deg, var(--color-blue), var(--color-magenta), var(--color-magenta));
}

.progress-text {
    font-size: 0.75rem;
    color: var(--color-gray);
    display: block;
    text-align: right;
}

/* Animación al aparecer */
.timeline-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s forwards;
}

.timeline-card:nth-child(1) {
    animation-delay: 0.2s;
}

.timeline-card:nth-child(2) {
    animation-delay: 0.4s;
}

.timeline-card:nth-child(3) {
    animation-delay: 0.6s;
}

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

/* Animación para la barra de progreso al entrar en el viewport */
.revealed .progress-fill {
    animation: fillProgress 1.5s ease-out forwards;
}

@keyframes fillProgress {
    from { width: 0; }
    to { width: 100%; }
}
/* Solución para etiquetas cortadas */
.timeline-tag {
    position: absolute;
    top: -0.15px;
    left: 20px;
    background: var(--color-blue);
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 20px;
    text-transform: uppercase;
    white-space: nowrap; /* Evita que el texto se corte */
    z-index: 10;
    overflow: visible; /* Asegura que el contenido no se corte */
}

.timeline-card.featured .timeline-tag {
    background: var(--color-magenta);
}
/* Estilos para el proceso de diagnóstico interactivo */
.diagnostic-process-container {
    background-color: rgba(10, 20, 40, 0.5);
    border-radius: 15px;
    padding: 30px;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 157, 255, 0.1);
    max-width: 950px;
}

.process-title {
    text-align: center;
    font-size: 1.8rem;
    color: #FFFFFF;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.process-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #009DFF, #ED267A);
    border-radius: 3px;
}

/* Línea de tiempo principal */
.diagnostic-timeline {
    position: relative;
}

/* Contenedor de iconos */
.timeline-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* Contenedor de cada icono */
.timeline-icon-wrapper {
    position: relative;
    width: 120px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}

.timeline-icon-wrapper:hover {
    transform: translateY(-5px);
    opacity: 1;
}

.timeline-icon-wrapper.active {
    transform: translateY(-8px);
    opacity: 1;
}

/* Estilos para los iconos SVG */
.timeline-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.timeline-icon-wrapper:hover .timeline-icon {
    filter: drop-shadow(0 0 10px rgba(0, 157, 255, 0.5));
}

.timeline-icon-wrapper.active .timeline-icon {
    filter: drop-shadow(0 0 15px rgba(0, 157, 255, 0.8));
}

/* Número de fase */
.phase-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #009DFF, #0087e8);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.timeline-icon-wrapper.active .phase-number {
    background: linear-gradient(135deg, #ED267A, #D01564);
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 4px 10px rgba(237, 38, 122, 0.4);
}

/* Etiqueta de fase */
.phase-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: #FFFFFF;
    transition: color 0.3s ease;
    margin-top: 5px;
}

.timeline-icon-wrapper:hover .phase-label {
    color: #009DFF;
}

.timeline-icon-wrapper.active .phase-label {
    color: #ED267A;
}

/* Conectores entre fases */
.timeline-connector {
    width: 60px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connector-dot {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { r: 2; opacity: 0.5; }
    50% { r: 4; opacity: 1; }
    100% { r: 2; opacity: 0.5; }
}

/* Barra de progreso */
.timeline-progress {
    margin: 20px 0 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #009DFF, #ED267A);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Descripciones de las fases */
.phase-description-area {
    background-color: rgba(10, 20, 40, 0.3);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 157, 255, 0.1);
    min-height: 150px;
    position: relative;
}

.phase-description {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 25px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.phase-description.active {
    opacity: 1;
    visibility: visible;
}

.phase-description h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #FFFFFF;
    position: relative;
    padding-left: 20px;
}

.phase-description h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #009DFF, #ED267A);
    border-radius: 50%;
}

.phase-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: #DDDDDD;
}

/* Duración del proceso */
.process-duration {
    text-align: center;
    margin-top: 15px;
}

.process-duration span {
    background-color: rgba(0, 157, 255, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFFFFF;
    display: inline-block;
    border: 1px solid rgba(0, 157, 255, 0.2);
}

/* Estilos responsive */
@media (max-width: 992px) {
    .timeline-icons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .timeline-connector {
        display: none;
    }
    
    .timeline-icon-wrapper {
        margin: 0 15px 20px;
    }
}

@media (max-width: 768px) {
    .diagnostic-process-container {
        padding: 20px;
    }
    
    .process-title {
        font-size: 1.5rem;
    }
    
    .phase-description h4 {
        font-size: 1.2rem;
    }
    
    .phase-description p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .timeline-icon-wrapper {
        width: 90px;
    }
    
    .timeline-icon {
        width: 70px;
        height: 70px;
    }
    
    .phase-label {
        font-size: 0.8rem;
    }
}
/* Solución para problemas de alineación y superposición */
.timeline-icon-wrapper {
    position: relative;
    margin-bottom: 40px; /* Espacio adecuado debajo de los iconos */
}

/* Mejor posicionamiento para los números de fase */
.phase-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

/* Ajuste para los textos de las etiquetas */
.phase-label {
    margin-top: 10px; /* Espacio entre icono y texto */
    text-align: center;
    width: 100%;
    font-size: 14px; /* Tamaño uniforme */
    line-height: 1.3;
}

/* Ajuste específico para centrar "Recomendaciones" */
[data-phase="5"] .phase-label {
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    left: 0;
}

/* Proporcionar suficiente espacio para las etiquetas de texto más largos */
.timeline-phases .timeline-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto; /* Ancho automático basado en contenido */
    min-width: 90px; /* Ancho mínimo para mantener la proporción */
    max-width: 120px; /* Ancho máximo para control */
}

/* Haciendo que los iconos sean del mismo tamaño */
.timeline-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}
/* Centrar la bombilla en el icono de fase 5 */
[data-phase="5"] .timeline-icon svg .lightbulb {
    transform: translateX(0); /* Asegura que no haya desplazamiento */
}

/* Ajuste adicional para el icono específico */
[data-phase="5"] .timeline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Centra el SVG dentro del contenedor */
[data-phase="5"] .timeline-icon svg {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
/* Garantizar que la bombilla esté perfectamente centrada */
[data-phase="5"] .timeline-icon svg {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

[data-phase="5"] .timeline-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
/* Garantizar que la bombilla esté perfectamente centrada */
[data-phase="5"] .timeline-icon {
    position: relative;
}

/* Asegurar que la barra de progreso funcione correctamente */
.progress-fill {
    transition: width 0.5s ease-in-out;
}

/* Estilo cuando una fase está activa */
[data-phase].active {
    opacity: 1;
}
/* Centrar la bombilla */
[data-phase="5"] .lightbulb {
    transform: translateY(5px);
  }
  /* Ajuste de posición para la sección del proceso interactivo */
.diagnostic-process-container {
    margin-top: -20px;    /* Sube todo el contenedor */
    margin-bottom: 30px;  /* Asegura espacio después */
}

/* Más espacio para ver las descripciones */
.phase-description-area {
    min-height: 160px;    /* Asegura suficiente espacio para texto */
    margin-top: 20px;     /* Separa del área de iconos */
}

/* Asegura que la fase activa se destaque mejor */
.timeline-icon-wrapper.active {
    transform: translateY(-8px);
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(237, 38, 122, 0.4));
}

/* Mejora la visibilidad del texto activo */
.phase-description.active {
    border-left: 3px solid #ED267A;
    padding-left: 22px;   /* Compensa el borde */
}
/* Barra de progreso más visible */
.progress-bar {
    height: 8px;         /* Ligeramente más alta */
    margin: 25px 0;      /* Más espacio alrededor */
}

.progress-fill {
    background: linear-gradient(90deg, #009DFF, #ED267A);
    box-shadow: 0 0 8px rgba(237, 38, 122, 0.5); /* Brillo sutil */
}
/* Corregir cuadro alrededor de las descripciones */
.phase-description-area,
.phase-description.active {
    height: auto !important;
    min-height: 0 !important;
    position: relative !important;
    padding: 20px !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Asegurar que el texto de la fase activa se muestre correctamente */
.phase-description.active {
    opacity: 1 !important;
    visibility: visible !important;
    border-left: 3px solid #ED267A;
    background-color: rgba(10, 20, 40, 0.6);
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Ajustar márgenes y espacio para el botón de duración */
.process-duration {
    margin-top: 20px !important;
    clear: both !important;
}
/* Ajustes para el proceso de Basic Shield */
.diagnostic-process-container {
    margin-top: -20px;    /* Sube todo el contenedor */
    padding-top: 10px;    /* Reduce el espacio interno superior */
    margin-bottom: 20px;  /* Asegura espacio adecuado después */
  }
  
  /* Reducir espaciado entre elementos */
  #basic-timeline .timeline-icons {
    margin-bottom: 20px;  /* Reduce el espacio después de los iconos */
  }
  
  #basic-timeline .timeline-progress {
    margin: 15px 0;       /* Reduce el espacio alrededor de la barra de progreso */
  }
  
  #basic-timeline .phase-description-area {
    padding: 15px;        /* Reduce el espacio interno del área de descripción */
  }
  
  /* Asegura que los SVGs mantienen su tamaño adecuado */
  #basic-timeline .timeline-icon {
    width: 80px;
    height: 80px;
  }
  /* Mejoras estéticas para las descripciones de fases */
.phase-description-area {
    position: relative;
    min-height: 160px;          /* Altura fija más compacta */
    margin-bottom: 15px;
    background-color: rgba(10, 20, 40, 0.6);
    border: 1px solid rgba(0, 157, 255, 0.15);
    border-radius: 10px;
    padding: 0;                 /* El padding se aplicará a cada descripción */
    overflow: hidden;           /* Oculta descripciones inactivas */
  }
  
  .phase-description {
    position: absolute;         /* Posición absoluta para superposición */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    opacity: 0;                 /* Comienza invisible */
    transform: translateY(10px);/* Comienza ligeramente desplazada */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Transición suave */
    pointer-events: none;       /* No intercepta eventos de clic cuando está oculta */
  }
  
  .phase-description.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;       /* Recibe eventos de clic cuando está activa */
    z-index: 2;                 /* Aparece encima */
  }
  
  .phase-description h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--color-blue);
    border-left: 3px solid var(--color-magenta);
    padding-left: 10px;
  }
  
  .phase-description p {
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 0;
    color: var(--color-text);
  }
  
  /* Destacando la fase activa */
  .timeline-icon-wrapper.active {
    transform: translateY(-8px);
  }
  
  .timeline-icon-wrapper.active .phase-number {
    background: linear-gradient(135deg, #ED267A, #D01564);
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(237, 38, 122, 0.4);
  }
  
  /* Ajustes para timeline más compacto */
  .timeline-progress {
    margin: 12px 0;
  }
  
  .progress-bar {
    height: 6px;
  }
  
  .process-duration {
    text-align: center;
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-gray-light);
  }
  
  /* Efecto de brillo sutil en la fase activa */
  .phase-description.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 157, 255, 0.08), transparent 70%);
    z-index: -1;
    opacity: 0.8;
  }
  /* Animaciones impactantes para el texto de las descripciones - PARA AMBOS PROCESOS */
#diagnostico .phase-description.active h4,
#basic-timeline .phase-description.active h4 {
  animation: slideInLeft 0.5s forwards;
  border-left: 3px solid var(--color-magenta);
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(237, 38, 122, 0.1), transparent);
  display: inline-block;
  border-radius: 0 4px 4px 0;
}

#diagnostico .phase-description.active p,
#basic-timeline .phase-description.active p {
  animation: fadeInUp 0.6s forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

/* Efectos de entrada para el texto */
@keyframes slideInLeft {
  0% {
    transform: translateX(-20px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    transform: translateY(15px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Efecto de resaltado que aparece gradualmente - PARA AMBOS PROCESOS */
#diagnostico .phase-description.active::after,
#basic-timeline .phase-description.active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--color-magenta), var(--color-blue));
  animation: growLine 0.8s forwards;
  animation-delay: 0.3s;
}

@keyframes growLine {
  0% {
    height: 0;
  }
  100% {
    height: 100%;
  }
}

/* Efecto de brillo que barre el texto - PARA AMBOS PROCESOS */
#diagnostico .phase-description.active p::after,
#basic-timeline .phase-description.active p::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: shimmer 2s infinite;
  animation-delay: 0.8s;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Efecto de pulso para la barra de progreso - PARA AMBOS PROCESOS */
#diagnostico .progress-fill.pulsing,
#basic-timeline .progress-fill.pulsing {
  animation: pulse 0.8s ease-out;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(237, 38, 122, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(237, 38, 122, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(237, 38, 122, 0);
  }
}

/* Ajustes para mejorar proporciones de las descripciones de fases para AMBOS PROCESOS */
#diagnostico .phase-description-area,
#basic-timeline .phase-description-area {
  min-height: 160px;         /* Altura fija más compacta */
  margin-bottom: 15px;
  background-color: rgba(10, 20, 40, 0.6);
  border: 1px solid rgba(0, 157, 255, 0.15);
  border-radius: 10px;
  position: relative;
  overflow: hidden;           /* Oculta descripciones inactivas */
}

/* Estilo común para las descripciones en ambos procesos */
#diagnostico .phase-description,
#basic-timeline .phase-description {
  position: absolute;         /* Posición absoluta para superposición */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  opacity: 0;                 /* Comienza invisible */
  transform: translateY(10px);/* Comienza ligeramente desplazada */
  transition: opacity 0.5s ease, transform 0.5s ease; /* Transición suave */
  pointer-events: none;       /* No intercepta eventos de clic cuando está oculta */
}

/* Estilos para descripción activa */
#diagnostico .phase-description.active,
#basic-timeline .phase-description.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;       /* Recibe eventos de clic cuando está activa */
  z-index: 2;                 /* Aparece encima */
}
/* Botón flotante con efecto visual para navegación entre fases */
.next-phase-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-blue), var(--color-magenta));
    border: none;
    color: white;
    cursor: pointer;
    margin: 25px auto 10px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.next-phase-btn.visible {
    transform: translateY(0);
    opacity: 1;
}

.next-phase-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 157, 255, 0.4);
}

.next-phase-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Efecto de resplandor pulsante */
.next-phase-btn::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 157, 255, 0.5), rgba(237, 38, 122, 0.5));
    z-index: -1;
    opacity: 0;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Icono de flecha */
.next-phase-btn i {
    font-size: 1.5rem;
    position: relative;
    left: 2px; /* Centrar ópticamente */
}

/* Tooltip para mostrar la siguiente fase */
.next-phase-btn .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: rgba(10, 20, 40, 0.95);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    border: 1px solid rgba(0, 157, 255, 0.2);
}

.next-phase-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-15px);
}

/* Estilo para el botón en la última fase */
.next-phase-btn.last-phase {
    background: linear-gradient(135deg, var(--color-magenta), var(--color-blue));
}

.next-phase-btn.last-phase i {
    transform: rotate(-135deg);
    left: 0;
}
/* Ajustes para Compliance Plus (6 iconos) */
#compliance-timeline .timeline-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

#compliance-timeline .timeline-icon-wrapper {
    width: calc(33% - 20px);
    margin-bottom: 25px;
}

#compliance-timeline .timeline-connector {
    display: none; /* Escondemos los conectores que podrían descuadrar la cuadrícula */
}

/* Asegurarnos que los números de fase sean legibles */
#compliance-timeline .phase-number {
    background-color: #ED267A;
    color: white;
}

/* Asegurarnos que la barra de progreso funciona correctamente */
#compliance-timeline .progress-fill {
    transition: width 0.5s ease;
}
/* Animaciones para el cuadro de texto de Compliance Plus */
#compliance-timeline .phase-description.active h4 {
    animation: slideInLeft 0.5s forwards;
    border-left: 3px solid var(--color-magenta);
    padding-left: 12px;
    background: linear-gradient(90deg, rgba(237, 38, 122, 0.1), transparent);
    display: inline-block;
    border-radius: 0 4px 4px 0;
  }
  
  #compliance-timeline .phase-description.active p {
    animation: fadeInUp 0.6s forwards;
    animation-delay: 0.2s;
    opacity: 0;
  }
  
  #compliance-timeline .phase-description.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--color-magenta), var(--color-blue));
    animation: growLine 0.8s forwards;
    animation-delay: 0.3s;
  }
  
  #compliance-timeline .phase-description.active p::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 2s infinite;
    animation-delay: 0.8s;
  }
  
  /* Mejorar apariencia del botón */
  #compliance-timeline .next-phase-btn {
    display: block;
    margin: 20px auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-blue), var(--color-magenta));
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
  }
  
  #compliance-timeline .next-phase-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 157, 255, 0.4);
  }
  
  #compliance-timeline .next-phase-btn:active {
    transform: scale(0.95);
  }
  
  /* Asegurar que el botón es visible */
  #compliance-timeline .next-phase-btn {
    opacity: 1; /* Forzar visibilidad */
    visibility: visible;
  }
  /* 
   Calculadora de Riesgo de Ciberseguridad
   Estilos para la herramienta interactiva
*/

.risk-calculator-container {
    max-width: 850px;
    margin: 40px auto;
    padding: 20px;
}

.calculator-header {
    text-align: center;
    margin-bottom: 30px;
}

.calculator-header h1 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.calculator-header p {
    font-size: 1.1rem;
    color: var(--color-gray-light);
    max-width: 600px;
    margin: 0 auto;
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 30px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--color-blue), var(--color-magenta));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.question-card {
    background-color: rgba(12, 18, 32, 0.7);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 157, 255, 0.1);
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.question-card.active {
    display: block;
    animation: fadeIn 0.6s ease-out;
}

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

.question-number {
    font-size: 0.9rem;
    color: var(--color-blue);
    margin-bottom: 15px;
    font-weight: 600;
    display: block;
}
/* Estilos para el menú destacado de la calculadora */
.highlight-nav {
    background-color: rgba(237, 38, 122, 0.1);
    border: 1px solid var(--color-magenta);
    padding: 8px 15px !important;
    border-radius: 20px;
    color: var(--color-magenta) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.highlight-nav:hover {
    background-color: var(--color-magenta);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(237, 38, 122, 0.3);
}

/* Ajustes para versión móvil */
.mobile-nav-list .highlight-nav {
    display: inline-block;
    margin-top: 5px;
}
/* ESPACIADO OPTIMIZADO PARA MÓVIL */
/* Añadir al final del archivo ciberseguridad-styles.css */

/* Reducir espaciado excesivo en móvil */
@media (max-width: 768px) {
    /* Hero Section más compacto */
    .cyber-hero {
        padding: 100px 0 40px !important;
        min-height: 70vh !important;
    }
    
    .cyber-hero-title {
        font-size: 2.2rem !important;
        margin-bottom: 15px !important;
    }
    
    .cyber-hero-description {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
    }
    
    /* Secciones más compactas */
    .cyber-timeline,
    .cyber-services,
    .cyber-benefits,
    .cyber-certifications {
        padding: 40px 0 !important;
    }
    
    /* Títulos de sección más pequeños */
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 20px !important;
    }
    
    .section-description {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }
    
    /* Timeline interactivo más compacto */
    .timeline-interactive {
        margin: 0 auto 30px !important;
        padding: 15px !important;
    }
    
    /* Tarjetas timeline más compactas */
    .timeline-card {
        padding: 20px !important;
        margin-bottom: 15px !important;
    }
    
    /* Proceso diagnóstico más compacto */
    .diagnostic-process-container {
        padding: 20px !important;
        margin: 20px auto !important;
    }
    
    .process-title {
        font-size: 1.4rem !important;
        margin-bottom: 25px !important;
    }
    
    /* Iconos timeline más pequeños en móvil */
    .timeline-icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    .timeline-icon-wrapper {
        width: 80px !important;
        margin-bottom: 20px !important;
    }
    
    /* Descripciones de fase más compactas */
    .phase-description-area {
        min-height: 120px !important;
        margin-bottom: 15px !important;
        padding: 15px !important;
    }
    
    .phase-description h4 {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }
    
    .phase-description p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    /* Beneficios grid más compacto */
    .benefits-grid {
        gap: 20px !important;
        margin-top: 30px !important;
    }
    
    .benefit-card {
        padding: 20px !important;
    }
    
    /* Certificaciones más compactas */
    .certifications-grid {
        gap: 20px !important;
        margin-top: 30px !important;
    }
    
    .certification-item {
        width: 140px !important;
        height: 90px !important;
        padding: 10px !important;
    }
}

/* MEJORAS DE LEGIBILIDAD */
@media (max-width: 480px) {
    /* Para pantallas muy pequeñas */
    .cyber-hero-title {
        font-size: 1.9rem !important;
        line-height: 1.2 !important;
    }
    
    .cyber-hero-description {
        font-size: 0.95rem !important;
    }
    
    .section-title {
        font-size: 1.6rem !important;
    }
    
    .timeline-card h3 {
        font-size: 1.2rem !important;
    }
    
    .timeline-card p {
        font-size: 0.85rem !important;
    }
}
/* MEJORAS FINALES DE UX Y ACCESIBILIDAD */
/* Añadir al final del archivo ciberseguridad-styles.css */

/* BOTÓN VOLVER ARRIBA MEJORADO */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-blue), var(--color-magenta));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 157, 255, 0.4);
}

#back-to-top:active {
    transform: translateY(-1px) scale(1.05);
}

@media (max-width: 768px) {
    #back-to-top {
        width: 55px;
        height: 55px;
        bottom: 90px; /* Para no interferir con el menú móvil */
        font-size: 1.3rem;
    }
}

/* INDICADOR DE PROGRESO DE LECTURA */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-magenta));
    z-index: 10001;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(0, 157, 255, 0.5);
}

/* FOCUS VISIBLE MEJORADO */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* SKIP TO CONTENT LINK */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 4px;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* MEJORA DE CONTRASTE */
.section-description,
.timeline-card p,
.benefit-card p {
    color: #E8E9EA !important; /* Mejor contraste */
}

/* HOVER STATES MEJORADOS */
.timeline-card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.timeline-card:hover {
    cursor: default;
}

.timeline-icon-wrapper {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* LOADING STATES */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* TOOLTIPS MEJORADOS */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 20, 40, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 157, 255, 0.2);
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* BREADCRUMBS */
.breadcrumbs {
    background: rgba(12, 18, 32, 0.5);
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumbs ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    color: var(--color-gray-light);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--color-magenta);
}

.breadcrumbs li:not(:last-child)::after {
    content: '>';
    margin-left: 10px;
    color: var(--color-gray);
}

/* ESTADOS DE ERROR MEJORADOS */
.form-field-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2) !important;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message::before {
    content: '⚠️';
    font-size: 0.8rem;
}

/* ANIMACIONES DE ENTRADA ESCALONADAS */
.staggered-animation > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.staggered-animation > *:nth-child(1) { animation-delay: 0.1s; }
.staggered-animation > *:nth-child(2) { animation-delay: 0.2s; }
.staggered-animation > *:nth-child(3) { animation-delay: 0.3s; }
.staggered-animation > *:nth-child(4) { animation-delay: 0.4s; }
.staggered-animation > *:nth-child(5) { animation-delay: 0.5s; }
.staggered-animation > *:nth-child(6) { animation-delay: 0.6s; }

/* MEJORAS DE PERFORMANCE */
.cyber-hero-image,
.timeline-interactive,
.diagnostic-process-container {
    contain: layout style paint;
}

/* PRINT STYLES */
@media print {
    .header,
    .footer,
    #back-to-top,
    .mobile-menu,
    .reading-progress {
        display: none !important;
    }
    
    .cyber-hero {
        background: none !important;
        color: black !important;
    }
    
    .timeline-card,
    .benefit-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* MODO ALTO CONTRASTE */
@media (prefers-contrast: high) {
    .section-title,
    .cyber-hero-title {
        color: #FFFFFF !important;
    }
    
    .section-description,
    .timeline-card p,
    .benefit-card p {
        color: #F0F0F0 !important;
    }
    
    .btn {
        border: 2px solid currentColor !important;
    }
}

/* REDUCIR TRANSPARENCIAS EN MÓVIL */
@media (max-width: 768px) {
    .timeline-card,
    .benefit-card,
    .contact-wrap {
        background-color: rgba(12, 18, 32, 0.9) !important;
    }
    
    .diagnostic-process-container {
        background-color: rgba(10, 20, 40, 0.8) !important;
    }
}

/* SMOOTH SCROLLING MEJORADO */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Para compensar header fijo */
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
/* SOLUCIÓN ESPECÍFICA PARA LAS 3 ETIQUETAS EN MÓVIL */
/* Añadir al final del archivo ciberseguridad-styles.css */

/* SOLO APLICAR EN MÓVIL */
@media (max-width: 768px) {
    
    /* Dar más espacio superior a las tarjetas timeline */
    .timeline-cards {
        margin-top: 30px !important;
        padding-top: 25px !important;
    }
    
    /* Cada tarjeta individual necesita más margen superior */
    .timeline-card {
        margin-top: 25px !important;
        margin-bottom: 20px !important;
        position: relative !important;
        overflow: visible !important;
    }
    
    /* Ajustar posición de TODAS las etiquetas */
    .timeline-tag {
        position: absolute !important;
        top: -8px !important; /* Menos negativo para que no se corte */
        left: 15px !important;
        padding: 5px 14px !important;
        font-size: 0.7rem !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        white-space: nowrap !important;
        z-index: 15 !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    /* Colores específicos para cada etiqueta */
    .timeline-card[data-phase="1"] .timeline-tag {
        background: linear-gradient(135deg, #009DFF, #0087e8) !important;
        color: white !important;
    }
    
    .timeline-card.featured .timeline-tag {
        background: linear-gradient(135deg, #ED267A, #C41E6A) !important;
        color: white !important;
    }
    
    .timeline-card[data-phase="3"] .timeline-tag {
        background: linear-gradient(135deg, #6f42c1, #5a2c91) !important;
        color: white !important;
    }
    
    /* Asegurar que el contenedor padre tenga suficiente espacio */
    .services-timeline {
        padding-top: 30px !important;
        margin-top: 20px !important;
        overflow: visible !important;
    }
    
    /* El contenedor de la sección completa */
    .cyber-timeline {
        padding-top: 50px !important;
        overflow: visible !important;
    }
    
    /* Contenedor principal que contiene las tarjetas */
    .cyber-timeline .container {
        overflow: visible !important;
        position: relative !important;
    }
    
    /* Timeline interactive necesita más espacio */
    .timeline-interactive {
        margin-bottom: 35px !important;
        overflow: visible !important;
    }
    
    /* Asegurar que no hay elementos que corten las etiquetas */
    .section-title {
        margin-bottom: 20px !important;
    }
    
    .section-description {
        margin-bottom: 25px !important;
    }
}

/* Para pantallas muy pequeñas (iPhone SE, etc.) */
@media (max-width: 480px) {
    
    .timeline-cards {
        margin-top: 35px !important;
        padding-top: 30px !important;
    }
    
    .timeline-card {
        margin-top: 30px !important;
    }
    
    .timeline-tag {
        top: -6px !important;
        left: 10px !important;
        padding: 4px 12px !important;
        font-size: 0.65rem !important;
    }
    
    /* Más espacio en la sección */
    .cyber-timeline {
        padding-top: 60px !important;
    }
    
    .services-timeline {
        padding-top: 35px !important;
    }
}

/* Para pantallas medianas (tablets en portrait) */
@media (min-width: 481px) and (max-width: 768px) {
    
    .timeline-tag {
        top: -10px !important;
        padding: 6px 16px !important;
        font-size: 0.75rem !important;
    }
    
    .timeline-cards {
        margin-top: 25px !important;
        padding-top: 20px !important;
    }
}

/* Debug temporal - remover después de verificar */
@media (max-width: 768px) {
    .timeline-card {
        border: 1px dashed rgba(255, 0, 0, 0.2) !important; /* Para ver los límites */
    }
    
    .timeline-tag {
        border: 1px solid rgba(0, 255, 0, 0.3) !important; /* Para ver las etiquetas */
    }
}

/* 
NOTA: Después de verificar que funciona, añadir este código 
para remover las líneas de debug:

@media (max-width: 768px) {
    .timeline-card {
        border: none !important;
    }
    
    .timeline-tag {
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
}
*/