/* "Test de bienestar mental" (spec 002, tarea 28): <style> publicado de la página. */

:root {
    --dark-green: #00221D;
    --soft-green: #175550;
    --medium-green: #DEFA5C;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero_pillars {
    background-color: var(--dark-green);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero_pillars::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--medium-green), #b8ff57);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.hero_pillars-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero_pillars-text h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero_pillars-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
    text-align: left;
}

.hero_pillars-text p.highlight {
    color: var(--medium-green);
    opacity: 1;
    font-weight: 500;
}

.hero_pillars-illustration {
    position: relative;
}

.illustration {
    width: 380px;
    height: 300px;
    margin: 0 auto;
    position: relative;
    max-width: 100%;
}

.illustration img {
    max-width: 100%;
    height: 416px;
    object-fit: cover;
}

/* Pillars Section */
.pillars-section {
    background: white;
    padding: 80px 0;
    color: #333;
}

.pillars-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: bold;
    color: #333;
}

.pillars-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.category-label {
    background-color: var(--dark-green);
    color: var(--soft-green);
    width: 147px;
    height: 577px;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: sideways-lr;
    text-orientation: mixed;
    font-weight: bold;
    font-size: 105px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.category-label.laboral {
    border-radius: 30px;
    margin-right: 30px;
}

.category-label.personal {
    border-radius: 30px;
    margin: 0px 30px 0px 100px;
}

.pillars-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 388px;
}

.pillar-item {
    /* background-color: var(--soft-green); */
    color: white;
    border-radius: 25px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    /* gap: 15px; */
    transition: all 0.3s ease;
    cursor: pointer;
    height: 103px;
}

/* .pillar-item:hover {
    background-color: #1e6b60;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
} */

.pillar-icon {
    width: 100px;
    height: 100px;
    background: var(--medium-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    color: var(--dark-green);
    font-weight: bold;
    border: 15px solid var(--soft-green);
}

.pillar-text {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    background-color: var(--soft-green);
    padding: 9px 18px;
    margin-left: -8px;
    width: 465px;
    height: 52px;
    text-align: center;
    border-radius: 0px 30px 30px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pillar-tooltip {
    position: absolute;
    background: var(--soft-green);
    color: white;
    border-radius: 0px 30px 0px 0px;
    font-size: 0.9rem;
    line-height: 1.5;
    width: 258px;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    transform: translateY(10px);
    overflow: hidden;
}

.tooltip-header {
    background: var(--soft-green);
    padding: 15px 20px 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tooltip-icon {
    width: 50px;
    height: 50px;
    background: var(--medium-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--dark-green);
    flex-shrink: 0;
}

.tooltip-title {
    font-weight: bold;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.tooltip-content {
    padding: 20px;
    background: var(--soft-green);
}

.tooltip-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tooltip-bullets li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.tooltip-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--medium-green);
    border-radius: 50%;
}

.tooltip-bullets li:last-child {
    margin-bottom: 0;
}

.pillar-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pillar-tooltip::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--soft-green);
}

.pillar-tooltip.above::after {
    top: auto;
    bottom: -10px;
    border-bottom: none;
    border-top: 10px solid var(--soft-green);
}

/* CTA Section */
.cta-section {
    background-color: var(--medium-green);
    padding: 60px 0;
    text-align: center;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-green);
}

.cta-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cta-price {
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--dark-green);
}

.cta-button {
    background-color: var(--soft-green);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: #1e6b60;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero_pillars {
        padding: 48px 0 32px;
    }

    .hero_pillars-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 28px;
    }

    .hero_pillars-text h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    .hero_pillars-text p {
        text-align: center;
        font-size: 1rem;
    }

    .illustration {
        width: 100%;
        height: auto;
    }

    .illustration img {
        width: min(100%, 320px);
        height: auto;
    }

    .pillars-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        max-width: 100%;
    }

    .pillars-section {
        padding: 48px 0;
    }

    .pillars-title {
        font-size: 1.9rem;
        margin-bottom: 32px;
    }

    .category-label {
        width: 100%;
        max-width: 420px;
        height: 50px;
        writing-mode: horizontal-tb;
        text-orientation: initial;
        font-size: 42px;
        margin: 0;
    }

    .category-label.laboral {
        border-radius: 30px 30px 0 0;
        margin: 0;
    }

    .category-label.personal {
        border-radius: 30px 30px 0 0;
        margin: 22px 0 0;
    }

    .pillars-column {
        width: 100%;
        max-width: 420px;
        gap: 12px;
    }

    .pillar-item {
        width: 100%;
        min-height: 82px;
        height: auto;
        padding: 8px 0;
    }

    .pillar-icon {
        width: 78px;
        height: 78px;
        border-width: 10px;
    }

    .pillar-icon img {
        max-width: 42px;
        max-height: 42px;
    }

    .pillar-text {
        flex: 1;
        width: auto;
        min-height: 48px;
        height: auto;
        padding: 8px 14px;
        font-size: 0.78rem;
        letter-spacing: 0.2px;
        line-height: 1.25;
    }

    .pillar-tooltip {
        width: calc(100vw - 32px);
        max-width: 360px;
        border-radius: 22px 22px 0 0;
    }

    .cta-content {
        flex-direction: column;
        gap: 20px;
    }

    .cta-copy {
        align-items: center;
    }

    .cta-text {
        font-size: 1.6rem;
    }

    .cta-price {
        font-size: 1.25rem;
    }
}

@media (max-width: 420px) {
    .hero_pillars-text h1 {
        font-size: 1.85rem;
    }

    .category-label {
        font-size: 34px;
    }

    .pillar-icon {
        width: 68px;
        height: 68px;
        border-width: 8px;
    }

    .pillar-text {
        font-size: 0.72rem;
        padding: 8px 12px;
    }

    .cta-button {
        width: 100%;
        max-width: 220px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- Adaptaciones zeed_retail --- */

/* Los pilares pasan de <div> clicable a <button>: mismo aspecto. :where() (especificidad 0)
   para que las reglas .pillar-item del original sigan mandando sobre este reset. */
:where(button.pillar-item) {
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

button.pillar-item > span {
  display: block;
}

/* "Iniciar" pasa de <button onclick> a enlace. */
a.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* El tooltip se posiciona por JS (CSSOM); oculto con [hidden] cuando no hay pilar abierto. */
.pillar-tooltip[hidden] {
  display: none;
}

.tooltip-icon__img {
  height: 35px;
  width: auto;
}

