/* ==========================================================
   GENERAL
   ========================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    font-family: Arial, sans-serif;
}


/* ==========================================================
   CONTENEDOR PRINCIPAL
   ========================================================== */

.mth-circulo-container {
    position: relative;
    width: 520px;
    height: 520px;
    margin: 40px auto;
}

.mth-circulo-exterior {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        from -90deg,
        #3f40c5 0deg 90deg,
        #5657c8 90deg 180deg,
        #8d79d0 180deg 270deg,
        #c5c6df 270deg 360deg
    );
    z-index: 1;
}

/* Círculo blanco que deja visible solo el aro (grosor ≈ 44px) */
.mth-circulo-exterior::after {
    content: "";
    position: absolute;
    width: 83%;
    height: 83%;
    top: 8.5%;
    left: 8.5%;
    background: #ffffff;
    border-radius: 50%;
}


/* ==========================================================
   CÍRCULO INTERIOR
   ========================================================== */

.mth-circulo-interior {
    position: absolute;
    width: 72%;
    height: 72%;
    top: 14%;
    left: 14%;
    z-index: 10;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px;
    background: #ffffff;

    border-radius: 50%;
    overflow: hidden;
}


/* ==========================================================
   CUADRANTES
   El padding grande va en los lados exteriores (donde el
   círculo se curva), así el contenido se desplaza hacia el
   centro del círculo.
   ========================================================== */

.mth-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    cursor: pointer;
    border: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    font: inherit;
    transition: filter 0.2s ease;
}

.mth-item:hover {
    filter: brightness(1.08);
}

/* ADL y ecosistemas al aire */
.mth-item-aire {
    background: #7124ed;
    padding: 20% 6% 6% 12%;
}

/* Elimina para iluminar */
.mth-item-energia {
    background: #ff4056;
    padding: 20% 12% 6% 6%;
}

/* Piedra, papel & residuos */
.mth-item-residuos {
    background: #4145ed;
    padding: 6% 6% 20% 19%;
}

/* Al agua patos */
.mth-item-agua {
    background: #9275d9;
    padding: 6% 12% 20% 6%;
}


/* ==========================================================
   ICONOS
   ========================================================== */

.mth-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    border-radius: 10px;
    color: #ffffff;
    font-size: 27px;
    margin-bottom: 12px;
    flex-shrink: 0;
}


/* ==========================================================
   TEXTO INTERIOR (normal + negrita combinados)
   ========================================================== */

.mth-item-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
    text-transform: uppercase;
    white-space: nowrap;
}

.mth-item-title strong {
    font-weight: 800;
}


/* ==========================================================
   SVG TEXTO EXTERIOR
   (el SVG escala con el viewBox, por eso el tamaño de fuente
   está en unidades del SVG y no cambia en móvil)
   ========================================================== */

.mth-texto-circular {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    overflow: visible;
    pointer-events: none;
}

.mth-texto-externo {
    fill: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}


/* ==========================================================
   MODALES
   ========================================================== */

.mth-modal-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 15px;
}

.mth-modal-title {
    font-weight: 700;
}

/* Iconos SVG (reemplazan a Bootstrap Icons) */
.mth-svg {
    width: 50%;
    height: 50%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Modal nativo (<dialog>) */
.mth-modal {
    width: calc(100% - 32px);
    max-width: 500px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    background: #ffffff;
    color: #212529;
    font-family: Arial, sans-serif;
}

.mth-modal::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.mth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #dee2e6;
}

.mth-modal-title {
    margin: 0;
    font-size: 20px;
}

.mth-modal-close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #6c757d;
}

.mth-modal-close:hover {
    color: #000000;
}

.mth-modal-body {
    padding: 16px;
}

.mth-modal-body p {
    margin: 0 0 12px;
    line-height: 1.5;
}

/* Colores del icono de cada modal */
.mth-modal-icon-aire     { background: #7124ed; }
.mth-modal-icon-energia  { background: #ff4056; }
.mth-modal-icon-residuos { background: #4145ed; }
.mth-modal-icon-agua     { background: #9275d9; }


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 600px) {

    .mth-circulo-container {
        width: 350px;
        height: 350px;
        margin: 30px auto;
    }
    .mth-icon img {
        width: 20px;
        height: 20px;
    }

    .mth-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
        border-radius: 8px;
        margin-bottom: 7px;
    }

    .mth-item-title {
        font-size: 9px;
    }
}