/* ==============================================================
   ESTILOS PARA EL INSTITUTO MUNICIPAL DE LA MUJER (IMM)
   Paleta: Morados, Lilas, Rosas y Blancos
   ============================================================== */

:root {
    --imm-purple-dark: #6a1b9a;
    --imm-purple-main: #8e24aa;
    --imm-purple-light: #e1bee7;
    --imm-pink-main: #d81b60;
    --imm-pink-light: #f8bbd0;
    --imm-bg-light: #fdf5f8;
}

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

@keyframes floatLogo {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-25px) scale(1.05); }
    100% { transform: translateY(0px) scale(1); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ================= HERO SECTION ================= */
.imm-hero {
    background: linear-gradient(135deg, var(--imm-purple-light) 0%, var(--imm-bg-light) 50%, var(--imm-pink-light) 100%);
    background-size: 300% 300%;
    animation: gradientShift 6s ease-in-out infinite;
    position: relative;
    padding: 60px 0 100px 0; /* Reducido para que ocupe menos espacio vertical */
    color: var(--imm-purple-dark);
    text-align: center;
    overflow: hidden;
}

.imm-hero-content {
    position: relative;
    z-index: 2;
}

.imm-hero h1 {
    font-weight: 900;
    font-size: 2.8rem; /* Reducido ligeramente */
    color: var(--imm-purple-dark);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.imm-hero p.lead {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.imm-hero .imm-logo {
    max-width: 180px; /* Reducido para no ser tan invasivo */
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards, floatLogo 4s ease-in-out infinite 0.8s;
}

/* Shape Divider (Wave) at the bottom of Hero */
.custom-shape-divider-bottom-imm {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 1;
}
.custom-shape-divider-bottom-imm svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}
.custom-shape-divider-bottom-imm .shape-fill {
    fill: var(--imm-purple-main); /* Conecta con la seccion de servicios */
}


/* ================= SECCIÓN DE SERVICIOS (Morado Sólido) ================= */
.imm-services-section {
    background-color: var(--imm-purple-main);
    color: #ffffff;
    padding: 60px 0 100px 0;
    position: relative;
}

.imm-service-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}
.imm-service-item:hover {
    transform: translateY(-10px);
}

/* Círculos concéntricos para iconos */
.imm-icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,0.8);
    position: relative;
}
.imm-icon-wrapper::after {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
}
.imm-icon-wrapper i {
    font-size: 3rem;
    color: #ffffff;
}

.imm-service-title {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.25rem;
}
.imm-service-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

/* Shape Divider (Wave) at the bottom of Services */
.custom-shape-divider-services {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}
.custom-shape-divider-services svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}
.custom-shape-divider-services .shape-fill {
    fill: var(--imm-bg-light); /* Conecta con actividades */
}

/* ================= SECCIÓN DE ACTIVIDADES ================= */
.imm-activities-section {
    background-color: var(--imm-bg-light);
    padding: 80px 0 100px 0;
    position: relative;
    background-image: radial-gradient(var(--imm-purple-light) 1px, transparent 1px);
    background-size: 30px 30px;
}

.imm-section-title {
    color: var(--imm-purple-dark);
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
}

.imm-activity-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(106, 27, 154, 0.08);
    height: 100%;
    transition: all 0.3s ease;
    border-bottom: 4px solid var(--imm-purple-light);
}
.imm-activity-card:hover {
    box-shadow: 0 12px 30px rgba(106, 27, 154, 0.15);
    border-bottom-color: var(--imm-purple-main);
    transform: translateY(-5px);
}
.imm-activity-icon {
    width: 80px;
    height: 80px;
    background: var(--imm-purple-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.imm-activity-icon i {
    font-size: 2rem;
    color: var(--imm-purple-dark);
}
.imm-activity-card h5 {
    color: var(--imm-purple-main);
    font-weight: 700;
    margin-bottom: 10px;
}
.imm-activity-time {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0;
}

/* ================= BANNER LÍNEA VIOLETA ================= */
.imm-linea-violeta {
    background: linear-gradient(135deg, var(--imm-pink-main) 0%, var(--imm-purple-main) 100%);
    padding: 40px 0;
    color: #fff;
    text-align: center;
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 10px 25px rgba(216, 27, 96, 0.3);
}
.imm-linea-violeta h3 {
    font-weight: 800;
    letter-spacing: 1px;
}
.imm-linea-violeta .btn-llamar {
    background: #fff;
    color: var(--imm-pink-main);
    font-weight: bold;
    border-radius: 30px;
    padding: 12px 30px;
    font-size: 1.2rem;
    transition: all 0.3s;
}
.imm-linea-violeta .btn-llamar:hover {
    background: #f1f1f1;
    transform: scale(1.05);
}

/* Shape Divider Map */
.custom-shape-divider-map {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}
.custom-shape-divider-map svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}
.custom-shape-divider-map .shape-fill {
    fill: #ffffff; 
}
