/* ============================================================
   Canal Meteo TV — anunciate.css v2
   ------------------------------------------------------------
   Estilos para la página /anunciate.php.
   Todas las clases llevan prefijo cm-anunciate- para evitar
   colisiones con style.css del sitio principal.
   No toca <body>, <html>, <a> globales, ni resetea nada general.
   ============================================================ */

/* Variables locales (no son :root, son solo para selectores cm-anunciate-) */
.cm-anunciate-hero,
.cm-anunciate-why,
.cm-anunciate-formats,
.cm-anunciate-form-section,
.cm-anunciate-success-overlay {
    --cm-navy: #005fa3;
    --cm-navy-dark: #003e6b;
    --cm-navy-deep: #1a252f;
    --cm-orange: #F39C12;
    --cm-orange-dark: #d97f06;
    --cm-bg: #fbfaf7;
    --cm-bg-alt: #f1efea;
    --cm-surface: #ffffff;
    --cm-text: #1a252f;
    --cm-text-2: #4a5b6c;
    --cm-text-3: #8a96a4;
    --cm-border: #e6e2da;
    --cm-border-strong: #c9c4ba;
    --cm-radius: 14px;
    --cm-radius-sm: 8px;
    --cm-shadow-sm: 0 1px 3px rgba(26,37,47,.06);
    --cm-shadow-md: 0 8px 24px rgba(26,37,47,.08);
    --cm-shadow-lg: 0 20px 50px rgba(26,37,47,.12);
}

/* Containers */
.cm-anunciate-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}
.cm-anunciate-container-narrow {
    max-width: 720px;
}

/* ============================================================
   HERO
============================================================ */
.cm-anunciate-hero {
    position: relative;
    padding: 5rem 0 4.5rem;
    overflow: hidden;
    isolation: isolate;
    background: var(--cm-bg);
}
.cm-anunciate-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 80% -10%, rgba(243,156,18,.12), transparent 50%),
        radial-gradient(ellipse at 0% 100%, rgba(0,95,163,.10), transparent 55%),
        linear-gradient(180deg, #fbfaf7 0%, #f1efea 100%);
}
.cm-anunciate-hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent 0 39px, rgba(0,95,163,.04) 39px 40px),
        repeating-linear-gradient(90deg, transparent 0 39px, rgba(0,95,163,.04) 39px 40px);
    opacity: .6;
}

.cm-anunciate-eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--cm-navy);
    margin: 0 0 1.5rem;
    font-weight: 500;
}

.cm-anunciate-hero-title {
    font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.025em;
    color: var(--cm-navy-deep);
    max-width: 900px;
    margin: 0 0 1.5rem;
}
.cm-anunciate-hero-title span { display: block; }
.cm-anunciate-hero-title-em {
    background: linear-gradient(95deg, var(--cm-navy) 0%, var(--cm-orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cm-anunciate-hero-sub {
    font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--cm-text-2);
    max-width: 640px;
    margin: 0 0 2.5rem;
    line-height: 1.55;
}

/* ============================================================
   BOTONES
============================================================ */
.cm-anunciate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
    text-decoration: none !important;
    line-height: 1;
    box-sizing: border-box;
}
.cm-anunciate-btn-primary {
    background: var(--cm-navy);
    color: #fff !important;
    box-shadow: var(--cm-shadow-md);
}
.cm-anunciate-btn-primary:hover {
    background: var(--cm-navy-dark);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: var(--cm-shadow-lg);
}
.cm-anunciate-btn-lg {
    padding: 1.05rem 2rem;
    font-size: 1.05rem;
}
.cm-anunciate-btn-block {
    width: 100%;
}

/* ============================================================
   WHY / STATS
============================================================ */
.cm-anunciate-why {
    padding: 5rem 0 4rem;
    background: var(--cm-surface);
    border-top: 1px solid var(--cm-border);
}

.cm-anunciate-kicker {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--cm-orange);
    margin: 0 0 1rem;
    font-weight: 500;
}

.cm-anunciate-section-title {
    font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--cm-navy-deep);
    max-width: 780px;
    margin: 0 0 1.25rem;
}
.cm-anunciate-section-lead {
    font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
    font-size: 1.1rem;
    color: var(--cm-text-2);
    max-width: 680px;
    margin: 0 0 3rem;
    line-height: 1.55;
}

.cm-anunciate-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.cm-anunciate-stat-card {
    background: var(--cm-bg);
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius);
    padding: 1.75rem 1.5rem 1.5rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cm-anunciate-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--cm-shadow-md);
    border-color: var(--cm-orange);
}
.cm-anunciate-stat-n {
    font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--cm-navy);
    margin-bottom: .35rem;
}
.cm-anunciate-stat-l {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--cm-orange);
    margin-bottom: 1rem;
    font-weight: 500;
}
.cm-anunciate-stat-d {
    font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
    font-size: .92rem;
    color: var(--cm-text-2);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   FORMATOS
============================================================ */
.cm-anunciate-formats {
    padding: 5rem 0;
    background: var(--cm-bg-alt);
}
.cm-anunciate-formats .cm-anunciate-section-title {
    margin-bottom: 2.5rem;
}

.cm-anunciate-formats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.cm-anunciate-format-card {
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius);
    padding: 2rem;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}
.cm-anunciate-format-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--cm-shadow-md);
}
.cm-anunciate-format-num {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .8rem;
    color: var(--cm-orange);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: .08em;
}
.cm-anunciate-format-card h3 {
    font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--cm-navy-deep);
    margin: 0 0 .75rem;
    letter-spacing: -.01em;
}
.cm-anunciate-format-card p {
    font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
    color: var(--cm-text-2);
    font-size: .98rem;
    line-height: 1.55;
    margin: 0;
}

/* ============================================================
   FORMULARIO
============================================================ */
.cm-anunciate-form-section {
    padding: 5.5rem 0 6rem;
    background: var(--cm-surface);
}

.cm-anunciate-form {
    margin-top: 2.5rem;
    background: var(--cm-bg);
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius);
    padding: 2.25rem;
    box-shadow: var(--cm-shadow-sm);
}

.cm-anunciate-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cm-anunciate-field {
    margin-bottom: 1.1rem;
}
.cm-anunciate-field label {
    display: block;
    font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
    font-size: .85rem;
    font-weight: 600;
    color: var(--cm-text);
    margin-bottom: .45rem;
}
.cm-anunciate-req {
    color: var(--cm-orange);
    font-weight: 700;
}
.cm-anunciate-opt {
    color: var(--cm-text-3);
    font-weight: 400;
    font-size: .8rem;
}

.cm-anunciate-field input,
.cm-anunciate-field select,
.cm-anunciate-field textarea {
    width: 100%;
    font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
    font-size: 1rem;
    padding: .8rem 1rem;
    background: var(--cm-surface);
    border: 1px solid var(--cm-border-strong);
    border-radius: var(--cm-radius-sm);
    color: var(--cm-text);
    transition: border-color .15s ease, box-shadow .15s ease;
    box-sizing: border-box;
}
.cm-anunciate-field input:focus,
.cm-anunciate-field select:focus,
.cm-anunciate-field textarea:focus {
    outline: none;
    border-color: var(--cm-navy);
    box-shadow: 0 0 0 3px rgba(0,95,163,.12);
}
.cm-anunciate-field textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.5;
}

/* Honeypot oculto */
.cm-anunciate-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.cm-anunciate-privacy {
    font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
    font-size: .82rem;
    color: var(--cm-text-3);
    margin: .25rem 0 1.5rem;
    text-align: center;
}

/* ============================================================
   SUCCESS OVERLAY
============================================================ */
.cm-anunciate-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(26,37,47,.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: cmAnunciateFadeIn .25s ease;
}
.cm-anunciate-success-card {
    background: var(--cm-surface);
    border-radius: var(--cm-radius);
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 500px;
    box-shadow: var(--cm-shadow-lg);
    animation: cmAnunciateSlideUp .35s cubic-bezier(.2,.8,.2,1);
}
.cm-anunciate-success-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.cm-anunciate-success-icon svg {
    width: 36px;
    height: 36px;
}
.cm-anunciate-success-card h2 {
    font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cm-navy-deep);
    margin: 0 0 .75rem;
    letter-spacing: -.015em;
}
.cm-anunciate-success-card p {
    font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
    color: var(--cm-text-2);
    margin: 0 0 1.75rem;
}

@keyframes cmAnunciateFadeIn {
    from { opacity: 0 }
    to { opacity: 1 }
}
@keyframes cmAnunciateSlideUp {
    from { opacity: 0; transform: translateY(20px) }
    to { opacity: 1; transform: translateY(0) }
}

/* ============================================================
   ERROR BANNER
============================================================ */
.cm-anunciate-error-banner {
    background: #fff5f0;
    border: 1px solid #ffb088;
    border-left: 4px solid #d97706;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0 0;
    border-radius: var(--cm-radius-sm);
    color: #7c3a00;
    font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
    font-size: .95rem;
}
.cm-anunciate-error-banner strong {
    color: #5c2b00;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 920px) {
    .cm-anunciate-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cm-anunciate-formats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .cm-anunciate-hero { padding: 3.5rem 0; }
    .cm-anunciate-why,
    .cm-anunciate-formats,
    .cm-anunciate-form-section { padding: 3.5rem 0; }
    .cm-anunciate-form { padding: 1.5rem; }
    .cm-anunciate-grid-2 { grid-template-columns: 1fr; }
    .cm-anunciate-stats-grid { grid-template-columns: 1fr; }
    .cm-anunciate-stat-card { padding: 1.5rem 1.25rem; }
    .cm-anunciate-success-card { padding: 2.25rem 1.5rem; }
    .cm-anunciate-success-card h2 { font-size: 1.45rem; }
}

@media print {
    .cm-anunciate-success-overlay { display: none; }
}
