/* =========================================== */
/* ## ESTILOS GENERALES Y CONTENEDOR        ## */
/* =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #faf5ff; /* Un fondo suave para toda la página */
}

.info-container {
    max-width: 900px;
    margin: 0 auto;
    /* Damos espacio a la izquierda para el menú flotante */
    padding: 40px 40px 40px 10px;
    transition: padding 0.4s ease;

    /* LÍNEAS CLAVE: Fuerza la altura y crea el scroll interno */
    height: 100vh;
    overflow-y: auto;
}

.info-header {
    text-align: center;
    margin-bottom: 10px;
    padding: 20px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
.info-header h1 {
    color: #4a044e;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.info-header p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #581c87;
    max-width: 800px;
    margin: 0 auto;
}


/* =========================================== */
/* ##      MENÚ FLOTANTE LATERAL (NUEVO)    ## */
/* =========================================== */
#floating-nav {
    position: fixed;
    top: 50%;
    left: -150px; /* Lo movemos más a la izquierda */
    transform: translateY(-50%);
    z-index: 1000;
}

#floating-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px; /* Espacio entre las esferas */
}

#floating-nav .nav-dot {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #581c87;
    gap: 15px;
    padding: 8px 16px; /* Añadimos espaciado */
    border-radius: 99px; /* Hacemos los bordes redondos */
    transition: all 0.3s ease;
}

/* La esfera (círculo) */
#floating-nav .nav-dot::before {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    background-color: #fff;
    border: 2px solid #a855f7;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* El título ahora es texto simple y siempre visible */
#floating-nav .nav-dot span {
    font-size: 1rem;
    font-weight: 500;
    /* Ya no necesita estilos de caja o de hover */
}

#floating-nav .nav-dot.active {
    background-color: #e9d5ff; /* <-- ¡Este es el fondo morado! */
    color: #4a044e;
    font-weight: 700;
}

/* Efecto al pasar el mouse sobre el link */
#floating-nav .nav-dot:hover::before {
    background-color: #a855f7;
    transform: scale(1.2);
}

#floating-nav .nav-dot:hover span {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Estilo para la esfera de la sección activa */
#floating-nav .nav-dot.active::before {
    background-color: #a855f7;
    border-color: #6b21a8;
    transform: scale(1.3);
}

/* =========================================== */
/* ## SECCIONES DE CONTENIDO                ## */
/* =========================================== */
.info-section {
    margin-bottom: 3rem;
    padding-top: 20px; /* Pequeño anclaje para el scroll */
}

/* Estilos para el carrusel */
.carousel-container {
    position: relative;
    margin: 2rem 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
.carousel { display: flex; transition: transform 0.5s ease; }
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img { width: 100%; height: 400px; object-fit: cover; }
.carousel-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(74, 4, 78, 0.8); color: white; padding: 1rem; text-align: center; font-size: 1.2rem; }
.carousel-control { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.7); border: none; border-radius: 50%; width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; transition: background 0.3s; }
.carousel-control:hover { background: rgba(255, 255, 255, 0.9); }
.carousel-control.prev { left: 10px; }
.carousel-control.next { right: 10px; }

/* Tipos de violencia */
.types-section { margin-top: 4rem; padding: 2.5rem; background-color: white; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.07); }
.types-section h2 { text-align: center; color: #4a044e; font-size: 2.2rem; font-weight: 700; margin-bottom: 40px; }
.types-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.type-card { background-color: #faf5ff; padding: 1.5rem; border-radius: 16px; text-align: center; border: 1px solid #e9d5ff; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.type-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.card-icon { font-size: 2.5rem; color: #6b21a8; margin-bottom: 1rem; }
.type-card h3 { margin-bottom: 0.5rem; font-size: 1.25rem; color: #4a044e; }
.type-card p { color: #581c87; line-height: 1.6; }

/* =========================================== */
/* ## SECCIÓN CICLO, MITOS Y RESPETO        ## */
/* =========================================== */
.cycle-section, .myths-section, .respect-section { margin-top: 4rem; padding: 2.5rem; background-color: white; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.07); }
.cycle-section h2, .myths-section h2, .respect-section h2 { text-align: center; color: #4a044e; font-size: 2.2rem; font-weight: 700; margin-bottom: 40px; }
.cycle-phases { display: flex; justify-content: space-around; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.phase { background-color: #faf5ff; padding: 1.5rem; border-radius: 16px; flex: 1; min-width: 250px; text-align: center; border: 1px solid #e9d5ff; }
.phase-number { width: 50px; height: 50px; background-color: #6b21a8; color: white; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold; margin-bottom: 1rem; }
.phase h3 { margin-bottom: 0.5rem; font-size: 1.25rem; color: #4a044e; }
.phase p { color: #581c87; line-height: 1.6; }
.myths-grid { display: grid; gap: 1.5rem; }
.myth-card { background-color: #faf5ff; padding: 1.5rem; border-radius: 16px; border: 1px solid #e9d5ff; }
.myth-card h4 { margin-bottom: 0.5rem; color: #4a044e; }
.myth-card p { color: #581c87; line-height: 1.6; }

/* Color rojo para la palabra "Mito" */
.myth-card span.myth {
    font-weight: bold;
    color: #e53e3e; /* Un rojo claro y legible */
}

/* Color verde para la palabra "Realidad" */
.myth-card span.reality {
    font-weight: bold;
    color: #38a169; /* Un verde suave y positivo */
}
/* --- SECCIÓN DE RESPETO (REDiseñada para ser más visual) --- */

.respect-section {
    margin-top: 4rem;
    padding: 2.5rem;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

/* Título con un nuevo color para romper la monotonía */
.respect-section h2 {
    text-align: center;
    color: #4a044e; /* Un color turquesa oscuro, elegante y diferente */
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.respect-intro p, .respect-implementation p {
    margin-bottom: 1rem;
    color: #581c87;
    line-height: 1.6;
}

/* Caja de estrategias con fondo y borde del nuevo color */
.respect-strategies {
    margin: 2rem 0;
    padding: 2rem;
    background-color: #e0f2f1; /* Fondo turquesa muy claro */
    border-radius: 16px;
    border: 1px solid #b2dfdb; /* Borde turquesa claro */
}

.respect-strategies ul {
    list-style: none;
    padding: 0;
}

/* Cada punto de la lista ahora es un elemento flex con un ícono */
.respect-strategies li {
    display: flex; /* <-- CLAVE para alinear el ícono y el texto */
    align-items: flex-start;
    margin-bottom: 1.2rem;
    color: #374151; /* Texto más oscuro para mejor lectura */
    line-height: 1.6;
}

/* El ícono de check que aparece antes de cada punto */
.respect-strategies li::before {
    content: '\f00c'; /* Código del ícono de check de Font Awesome */
    font-family: 'Font Awesome 6 Free'; /* Asegura que se use la fuente de íconos */
    font-weight: 900; /* Necesario para que el ícono se muestre */
    color: #00796b;   /* Color del ícono */
    font-size: 1rem;
    margin-right: 15px; /* Espacio entre el ícono y el texto */
    margin-top: 5px; /* Ajuste vertical fino */
}

/* El texto en negrita dentro de la lista también usa el nuevo color */
.respect-strategies strong {
    color: #00796b;
}
/* =========================================== */
/* ## DISEÑO RESPONSIVO (MÓVIL Y TABLET)    ## */
/* =========================================== */
@media (max-width: 1024px) {

    /* 1. Ajustamos el padding del contenedor principal en móvil */
    .info-container {
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 100px; /* Espacio para que el menú no tape el contenido */
    }

    /* 2. Reposicionamos el menú de navegación a la parte inferior */
    #floating-nav {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        transform: none;
        background-color: rgba(43, 8, 59, 0.95);
        backdrop-filter: blur(5px);
        padding: 5px 0; /* Un poco menos de padding vertical */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    }

    #floating-nav ul {
        flex-direction: row;
        justify-content: space-around;
        gap: 0;
    }

    /* 👇 ========================================== 👇 */
    /* 👇        AQUÍ ESTÁN LOS CAMBIOS CLAVE        👇 */
    /* 👇 ========================================== 👇 */

    /* 3. AHORA MOSTRAMOS EL TEXTO Y LO APILAMOS */
    #floating-nav .nav-dot {
        flex-direction: column; /* Apila el ícono y el texto verticalmente */
        gap: 4px;             /* Menos espacio entre ícono y texto */
        padding: 8px 5px;       /* Ajusta el padding para el nuevo layout */
    }

    /* 4. YA NO OCULTAMOS EL TEXTO, SOLO LO HACEMOS MÁS PEQUEÑO */
    #floating-nav .nav-dot span {
        font-size: 0.7rem; /* Hacemos la letra más pequeña para que quepa */
        font-weight: 400;
        display: block; /* Aseguramos que sea visible */
    }

    /* 5. Hacemos el punto activo más notorio en móvil */
    #floating-nav .nav-dot.active::before {
        background-color: #c084fc;
        transform: scale(1.4);
        box-shadow: 0 0 8px #c084fc;
        border-color: white;
    }

    /* Le damos un color más brillante al texto activo */
    #floating-nav .nav-dot.active span {
        color: #f0abfc;
        font-weight: 600;
    }
}
