@import url('https://googleapis.com');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Oleo+Script:wght@400;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: url('./background.jpg') top/cover no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #0f4a2b;
}

/* ─── HEADER ─────────────────────────────────────────── */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    z-index: 20;
}

.menu-icon i {
    font-size: 28px;
    color: #1ca142;
    cursor: pointer;
}

.logo-img {
    width: 80px;
    display: block;
}

/* ─── MAIN LAYOUT ────────────────────────────────────── */
.main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    z-index: 10;
    gap: 20px;
}

/* ─── TEXT CONTENT (left column) ─────────────────────── */
.text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 0;
    position: relative;
}

/* Slogan top-right (italic handwritten style) */
.slogan-top {
    font-family: 'Arial', cursive;
    font-weight: 800;
    font-size: 2rem;
    color: #0f4a2b;
    transform: rotate(-6deg);
    line-height: 1.15;
    margin-bottom: 20px;
    align-self: flex-end;
    text-align: left;
}

.slogan-top > span {
    font-family: "Oleo Script", system-ui;
  font-weight: 100;
  font-style: normal;
  font-size: 2.5rem;
  position: relative;
  text-align: left;
}

/* ─── TITLE BLOCKS (PONTE / VERDE / NUEVO LEON) ──────── */
.title-block {
    display: flex;
    flex-direction: column;
    line-height: 1;
    margin-bottom: -4px; /* tighten spacing between words */
    transform: rotate(-6deg) skew(-10deg, 0deg);
}

.title-word {
    font-family: 'Oswald', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 10vw;   /* fluid sizing */
    text-transform: uppercase;
    line-height: 0.92;
    letter-spacing: -2px;
}

.title-word.dark {
    color: #0f4a2b;
}

.title-word.green {
    color: #3bb54a;
}

/* Brush swoosh image base */
.brush-swoosh-img {
    display: block;
    height: auto;
    object-fit: contain;
}

/* Below "Un mejor Nuevo León es posible" */
.brush-swoosh-img.slogan-swoosh {
    width: 100%;
    height: 50px;
    margin-top: -10px;
    margin-left: -15px;
}

/* Below PONTE + VERDE block */
.brush-swoosh-img.verde-swoosh {
    width: 70%;
    object-fit: cover;
    margin-top: -4px;
    margin-left: 100px;
}

/* Below NUEVO LEÓN */
.brush-swoosh-img.subtitle-swoosh {
    width: 100%;
    height: 16px;
    object-fit: cover;
    margin-top: -2px;
}

/* NUEVO LEON subtitle block */
.subtitle-block {
    margin-top: 8px;
}

.subtitle {
    font-family: 'Oswald', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3.5vw;
    letter-spacing: 12px;
    color: #0f4a2b;
    text-transform: uppercase;
    line-height: 1.2;
}

/* ─── FORM CONTAINER (right column) ─────────────────── */
.form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    min-width: 320px;
    position: relative;
}

.form-card {
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    padding: 35px;
    width: 100%;
    max-width: 430px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.form-card h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #0f4a2b;
    margin-bottom: 4px;
}

.subtitle-form {
    font-size: 1rem;
    color: #555;
    margin-bottom: 22px;
}

.input-group {
    position: relative;
    margin-bottom: 13px;
}

.input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #444;
    font-size: 15px;
}

.input-group.align-top i {
    top: 14px;
    transform: none;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px 15px 12px 42px;
    border: none;
    background-color: #f0f0f0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: box-shadow 0.25s;
}

.input-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    box-shadow: 0 0 0 2px #3bb54a;
}

.btn-submit {
    width: 100%;
    background-color: #0f4a2b;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #1ca142;
}

/* ─── SUCCESS MESSAGE ────────────────────────────────── */
.success-message {
    margin-top: 20px;
    background-color: #e6f7eb;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #c3ebd0;
}

.success-message.hidden {
    display: none;
}

.success-icon {
    font-size: 30px;
    color: #3bb54a;
    flex-shrink: 0;
}

.success-text h3 {
    font-size: 14px;
    color: #0f4a2b;
    font-weight: 700;
    margin-bottom: 3px;
}

.success-text p {
    font-size: 12px;
    color: #555;
}

/* ─── YA REGISTRADO ──────────────────────────────────── */
.already-message {
    margin-top: 20px;
    background-color: #e8f4fd;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #b8d9f5;
}

.already-message.hidden {
    display: none;
}

.already-message .success-icon {
    font-size: 30px;
    color: #2196f3;
    flex-shrink: 0;
}

.already-message .success-text h3 {
    font-size: 14px;
    color: #1565c0;
    font-weight: 700;
    margin-bottom: 3px;
}

.already-message .success-text p {
    font-size: 12px;
    color: #555;
}

/* ─── SLOGAN BOTTOM ──────────────────────────────────── */
.slogan-bottom {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: 3rem;
    color: #fff;
    transform: rotate(-8deg);
    text-shadow: 1px 2px 6px rgba(0,0,0,0.35);
    margin-top: 15px;
    align-self: flex-start;
    line-height: 1.1;
}

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
    background-color: #0f4a2b;
    color: #fff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    letter-spacing: 2px;
    z-index: 20;
}

.footer-left { font-weight: 700; }

.footer-right a {
    color: #fff;
    font-size: 18px;
    margin-left: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-right a:hover { color: #3bb54a; }

/* ─────────────────────────────────────────────────────
   RESPONSIVE — TABLET  (≤ 1024px)
───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .title-word { font-size: 13vw; }
    .subtitle   { font-size: 4.5vw; }
}

/* ─────────────────────────────────────────────────────
   RESPONSIVE — MOBILE  (≤ 768px)
   Mantiene el mismo tema que escritorio:
   · Inclinación / skew en títulos
   · Slogan con Oleo Script inclinado arriba-derecha
   · Swoosh debajo de cada bloque de texto
   · Formulario apilado a ancho completo
───────────────────────────────────────────────────── */
@media (max-width: 768px) {

    body {
        background-position: 65% top;
        background-attachment: scroll;
    }

    .header { padding: 12px 18px; }

    /* ── Columnas apiladas ── */
    .main-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 14px;
        gap: 0;
    }

    /* ── Columna de texto: ancho completo ── */
    .text-content {
        width: 100%;
        padding-top: 0;
    }

    /* Slogan "Un mejor Nuevo León es posible"
       — mismo estilo inclinado, pero más pequeño */
    .slogan-top {
        font-size: 1.4rem;
        margin-bottom: 8px;
        align-self: flex-end;
        transform: rotate(-6deg);
    }

    .slogan-top > span {
        font-size: 1.8rem;
    }

    /* Swoosh bajo el slogan */
    .brush-swoosh-img.slogan-swoosh {
        height: 36px;
        margin-top: -8px;
        margin-left: -10px;
    }

    /* Títulos grandes — misma inclinación, adaptados a vw */
    .title-block {
        transform: rotate(-6deg) skew(-10deg, 0deg); /* mismo que desktop */
    }

    .title-word {
        font-size: 21vw;
        letter-spacing: -1px;
    }

    /* Swoosh bajo PONTE+VERDE — proporcional al ancho móvil */
    .brush-swoosh-img.verde-swoosh {
        width: 60%;
        height: 20px;
        margin-top: -4px;
        margin-left: 60px; /* mantiene offset visual hacia la derecha */
    }

    /* NUEVO LEÓN */
    .subtitle {
        font-size: 6vw;
        letter-spacing: 6px;
    }

    .subtitle-block { margin-top: 4px; }

    /* Swoosh bajo NUEVO LEÓN si se usa */
    .brush-swoosh-img.subtitle-swoosh {
        height: 12px;
        width: 80%;
    }

    /* ── Formulario: ancho completo ── */
    .form-container {
        width: 100%;
        min-width: unset;
        padding: 18px 0 30px;
        align-items: center;
    }

    .form-card {
        padding: 20px 16px;
        border-radius: 16px;
        max-width: 100%;
    }

    .form-card h2 { font-size: 1.6rem; }

    /* Slogan "La fuerza de la gente" */
    .slogan-bottom {
        font-size: 2rem;
        align-self: flex-start;
        margin-bottom: 8px;
    }

    /* Footer apilado */
    .footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 16px;
    }

}