/* ==========================================================================
   M&M Box — Estilos propios para landings /nosotros y /contacto
   CSS plano (no depende del build de Tailwind) para evitar estilos rotos
   en producción. Todas las clases usan el prefijo .mml-
   ========================================================================== */

:root {
    --mml-blue: #02344f;
    --mml-blue-2: #034b73;
    --mml-gold: #fcb800;
    --mml-gray: #4b5563;
    --mml-gray-soft: #6b7280;
}

.mml * {
    box-sizing: border-box;
}

/* ---------- Contenedores y espaciado ---------- */
.mml-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .mml-container {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (min-width: 1280px) {
    .mml-container {
        padding-left: 12rem;
        padding-right: 12rem;
    }
}

.mml-py {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .mml-py {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.mml-pb {
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .mml-pb {
        padding-bottom: 6rem;
    }
}

/* ---------- Tipografía base ---------- */
.mml-eyebrow {
    display: inline-block;
    color: var(--mml-gold);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

@media (min-width: 768px) {
    .mml-eyebrow {
        font-size: 16px;
    }
}

.mml-h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--mml-blue);
    line-height: 1.3;
    margin: 0 0 1.25rem;
}

@media (min-width: 768px) {
    .mml-h2 {
        font-size: 36px;
    }
}

.mml-p {
    font-size: 16px;
    color: var(--mml-gray);
    line-height: 1.7;
    margin: 0 0 1rem;
}

@media (min-width: 768px) {
    .mml-p {
        font-size: 18px;
    }
}

.mml-head {
    text-align: center;
    margin-bottom: 3rem;
}

.mml-head .mml-eyebrow {
    margin-bottom: 0.6rem;
}

/* ---------- Botones ---------- */
.mml-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .mml-actions {
        flex-direction: row;
    }
}

.mml-actions--center {
    justify-content: center;
}

.mml-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mml-btn-solid,
.mml-btn-solid:hover,
.mml-btn-solid:focus {
    background-color: var(--mml-gold);
    color: var(--mml-blue) !important;
}

.mml-btn-outline,
.mml-btn-outline:hover,
.mml-btn-outline:focus {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff !important;
}

.mml-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------- Hero ---------- */
.mml-hero {
    position: relative;
    overflow: hidden;
}

.mml-hero__bg {
    position: absolute;
    inset: 0;
}

.mml-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mml-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 52, 79, 0.92) 0%, rgba(2, 52, 79, 0.78) 45%, rgba(2, 52, 79, 0.4) 100%);
}

.mml-hero__content {
    position: relative;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .mml-hero__content {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

.mml-hero__inner {
    max-width: 640px;
}

.mml-hero__title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
    .mml-hero__title {
        font-size: 52px;
    }
}

.mml-hero__text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 2rem;
}

@media (min-width: 768px) {
    .mml-hero__text {
        font-size: 20px;
    }
}

/* ---------- Indicadores (stats) ---------- */
.mml-stats {
    background: #f7f7f7;
    border-bottom: 1px solid #e5e7eb;
}

.mml-stats__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 640px) {
    .mml-stats__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mml-stats__num {
    font-size: 28px;
    font-weight: 700;
    color: var(--mml-blue);
    margin: 0;
}

@media (min-width: 768px) {
    .mml-stats__num {
        font-size: 34px;
    }
}

.mml-stats__label {
    font-size: 15px;
    color: var(--mml-gray);
    margin: 0.25rem 0 0;
}

/* ---------- Bloque a dos columnas (texto + imagen) ---------- */
.mml-two {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .mml-two {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.mml-img {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.mml-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Banda oscura (objetivo) ---------- */
.mml-band {
    background: var(--mml-blue);
}

.mml-band__inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mml-band__title {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
    .mml-band__title {
        font-size: 38px;
    }
}

.mml-band__text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 768px) {
    .mml-band__text {
        font-size: 20px;
    }
}

/* ---------- Tarjetas de producto ---------- */
.mml-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .mml-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

.mml-card {
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: box-shadow 0.2s ease;
}

.mml-card:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.mml-card__img {
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.mml-card__img img {
    object-fit: contain;
    width: 100%;
    height: 10rem;
}

.mml-card__body {
    padding: 1rem;
    text-align: center;
}

.mml-card__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--mml-blue);
    margin: 0;
}

.mml-card__sub {
    font-size: 14px;
    color: var(--mml-gray-soft);
    margin: 0.15rem 0 0;
}

/* ---------- Características (por qué elegirnos) ---------- */
.mml-feats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .mml-feats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mml-feat {
    text-align: center;
    padding: 0 1rem;
}

.mml-feat__icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(252, 184, 0, 0.13);
}

.mml-feat__icon i {
    font-size: 30px;
    color: var(--mml-blue);
}

.mml-feat__title {
    font-size: 19px;
    font-weight: 700;
    color: var(--mml-blue);
    margin: 0 0 0.5rem;
}

.mml-feat__text {
    font-size: 16px;
    color: var(--mml-gray);
    line-height: 1.6;
    margin: 0;
}

/* ---------- CTA final ---------- */
.mml-cta {
    border-radius: 1.5rem;
    padding: 3rem 1.5rem;
    text-align: center;
    background: linear-gradient(120deg, #02344f 0%, #034b73 100%);
}

@media (min-width: 768px) {
    .mml-cta {
        padding: 4rem;
    }
}

.mml-cta__title {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 1rem;
}

@media (min-width: 768px) {
    .mml-cta__title {
        font-size: 36px;
    }
}

.mml-cta__text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    max-width: 680px;
    margin: 0 auto 2rem;
}

@media (min-width: 768px) {
    .mml-cta__text {
        font-size: 19px;
    }
}

/* ==========================================================================
   Página de Contacto
   ========================================================================== */
.mml-pagehead {
    background: var(--mml-blue);
    text-align: center;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .mml-pagehead {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

.mml-pagehead__title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 1rem;
}

@media (min-width: 768px) {
    .mml-pagehead__title {
        font-size: 48px;
    }
}

.mml-pagehead__text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    max-width: 680px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .mml-pagehead__text {
        font-size: 20px;
    }
}

/* ---------- Tarjetas de contacto ---------- */
.mml-contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .mml-contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .mml-contact-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

.mml-contact-card {
    text-align: center;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    background: #ffffff;
}

.mml-contact-card__icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(252, 184, 0, 0.13);
}

.mml-contact-card__icon i {
    font-size: 24px;
    color: var(--mml-blue);
}

.mml-contact-card__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--mml-blue);
    margin: 0 0 0.25rem;
}

.mml-contact-card__text {
    font-size: 15px;
    color: var(--mml-gray);
    line-height: 1.6;
    margin: 0;
}

.mml-contact-card a {
    font-size: 15px;
    color: var(--mml-gray);
    text-decoration: none;
}

.mml-contact-card a:hover {
    color: var(--mml-blue) !important;
}

/* ---------- Formulario ---------- */
.mml-form-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.mml-form-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .mml-form-card {
        padding: 2.5rem;
    }
}

.mml-form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--mml-blue);
    margin: 0 0 0.5rem;
}

@media (min-width: 768px) {
    .mml-form-title {
        font-size: 30px;
    }
}

.mml-form-sub {
    font-size: 15px;
    color: var(--mml-gray-soft);
    margin: 0 0 2rem;
}

.mml-field {
    margin-bottom: 1.25rem;
}

.mml-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
    .mml-row {
        grid-template-columns: 1fr 1fr;
    }
}

.mml-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--mml-blue);
    margin-bottom: 0.5rem;
}

.mml-req {
    color: #ef4444;
}

.mml-input,
.mml-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 15px;
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.mml-input:focus,
.mml-textarea:focus {
    border-color: var(--mml-gold);
}

.mml-textarea {
    resize: vertical;
}

.mml-captcha {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
    .mml-captcha {
        justify-content: flex-start;
    }
}

.mml-submit {
    width: 100%;
}

@media (min-width: 640px) {
    .mml-submit {
        width: auto;
    }
}

.mml-msg {
    font-size: 15px;
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}

@media (min-width: 640px) {
    .mml-msg {
        text-align: left;
    }
}

.mml-msg--ok {
    color: #16a34a;
}

.mml-msg--err {
    color: #dc2626;
}

.mml-hidden {
    display: none;
}
