/* ==============================================
   VARIABLES Y CONFIGURACIÓN GENERAL
   ============================================== */
:root {
    --rosa-principal: #e58dd8;
    --morado-oscuro: #7b0c6e;
    --morado-logo: #5a2050;
    --rosa-claro: #fbeffd;
    --fondo-body: #fdf6ff;
    --texto-oscuro: #333;
    --texto-suave: #555;
    --blanco: #ffffff;
}

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

body {
    background-color: var(--fondo-body);
    font-family: 'Poppins', sans-serif;
    color: var(--texto-oscuro);
    line-height: 1.6;
}

p {
    text-align: justify;
    hyphens: auto;
    letter-spacing: normal;
    word-spacing: normal;
}

/* ==============================================
   HEADER Y NAVBAR COMPACTO
   ============================================== */
.main-header {
    background: var(--rosa-principal);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.navbar {
    max-width: 1300px;
    margin: auto;
    padding: 0.4rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--blanco);
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
}

.menu {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #3a2a34;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    transition: 0.3s;
}

.nav-link:hover { color: var(--morado-oscuro); }

.nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    background: var(--morado-oscuro);
    bottom: 0; left: 0;
    transition: 0.3s;
}

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

/* DROPDOWN */
.dropdown { position: relative; }
.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background: var(--blanco);
    min-width: 240px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-top: 12px;
    padding: 8px 0;
    transition: all 0.3s ease;
    transform: translateY(10px);
    z-index: 1001;
    border: 1px solid rgba(123, 12, 110, 0.1);
}

.dropdown::after {
    content: "";
    position: absolute;
    width: 100%; height: 15px;
    bottom: -15px; left: 0;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content li { list-style: none; }
.dropdown-content li a {
    display: block;
    padding: 10px 20px;
    color: var(--texto-oscuro);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    transition: 0.2s;
}

.dropdown-content li a:hover {
    background: var(--rosa-claro);
    color: var(--morado-oscuro);
    padding-left: 25px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--morado-logo);
    cursor: pointer;
}

/* ==============================================
   CONTENIDO Y TARGETAS DE PILARES
   ============================================== */
.subpage-container {
    max-width: 950px;
    margin: 3rem auto;
    background: var(--blanco);
    padding: 4rem;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(123, 12, 110, 0.05);
}

.category-tag {
    color: var(--rosa-principal);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.subpage-content h2 {
    color: var(--morado-oscuro);
    font-size: 2.3rem;
    margin: 1rem 0 1.5rem;
    line-height: 1.3;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--rosa-principal);
    margin-bottom: 2.5rem;
}

.content-image-left {
    width: 320px;
    float: left;
    margin: 0 2.5rem 1.5rem 0;
    border-radius: 20px;
    box-shadow: 15px 15px 0px var(--rosa-claro);
}

.subpage-content p {
    margin-bottom: 1.5rem;
    color: var(--texto-suave);
    font-size: 1.05rem;
}

.first-paragraph {
    font-size: 1.15rem;
    color: var(--texto-oscuro);
    font-weight: 600;
}

/* VALORES GRID */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.valor-card {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 25px;
    border-radius: 12px;
    border-bottom: 4px solid var(--rosa-principal);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.valor-card h3 {
    color: var(--morado-oscuro);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.valor-card p {
    font-size: 0.95rem;
    color: var(--texto-suave);
    margin-bottom: 0;
}

/* ==============================================
   SISTEMA INTERACTIVO "LEER MÁS"
   ============================================== */
.leer-mas-container {
    margin-top: 10px;
}

.leer-mas-btn {
    color: var(--morado-oscuro);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    list-style: none;
    display: inline-block;
    outline: none;
}

.leer-mas-btn::after {
    content: " ▾";
    font-size: 0.8rem;
    transition: transform 0.3s;
    display: inline-block;
}

.leer-mas-container[open] .leer-mas-btn::after {
    transform: rotate(180deg);
}

.leer-mas-btn::-webkit-details-marker { display: none; }

.leer-mas-contenido {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(229, 141, 216, 0.4);
    animation: fadeReveal 0.4s ease-out;
}

@keyframes fadeReveal {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==============================================
   BOTÓN MÁS INFORMACIÓN (CTA)
   ============================================== */
.cta-container {
    text-align: center;
    margin-top: 3rem;
    clear: both;
}

.btn-info-extra {
    display: inline-block;
    background-color: var(--morado-oscuro);
    color: var(--blanco);
    text-decoration: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(123, 12, 110, 0.2);
    transition: all 0.3s ease;
}

.btn-info-extra:hover {
    background-color: var(--morado-logo);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(123, 12, 110, 0.3);
}

/* ==============================================
   FOOTER Y RESPONSIVE
   ============================================== */


.social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.media-ico wa-icon {
    font-size: 32px; 
    color: #520257;
    transition: 0.2s;
}

.media-ico wa-icon:hover { color: var(--morado-oscuro); }

.copyright {
    background: #520257;
    color: white;
    text-align: center;
    padding: 1rem;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .navbar { padding: 0.8rem 1.5rem; }
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--rosa-principal);
        position: absolute;
        top: 100%; left: 0;
        padding: 1rem 0;
    }
    .menu.active { display: flex; }
    .menu li {
        width: 100%; text-align: center; padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .dropdown-content {
        position: static; display: none; visibility: visible;
        opacity: 1; transform: none; box-shadow: none;
        background: rgba(255,255,255,0.1); width: 100%;
    }
    .dropdown:hover .dropdown-content { display: block; }
    .dropdown-content li a { text-align: center; }
    .subpage-container { padding: 2rem 1.5rem; margin: 2rem 15px; border-radius: 20px; }
    .subpage-content h2 { font-size: 1.8rem; }
    .content-image-left { float: none; width: 100%; margin: 0 0 1.5rem 0; }
}