/*
Theme Name: FLAMEX Premium Gutenberg
Theme URI: https://example.com/flamex-premium-gutenberg
Author: SYMMA Servicios
Description: Tema WordPress premium editable con Gutenberg para FLAMEX, empresa de soluciones integrales en seguridad contra incendios. Incluye páginas, header sticky, formularios, CTAs, estilos, imágenes locales y estructura SEO.
Version: 1.0.0
Requires at least: 6.1
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: flamex-premium-gutenberg
Tags: block-theme, full-site-editing, custom-colors, custom-logo, editor-style
*/

:root{
  --flamex-red:#c9181d;
  --flamex-red-dark:#8f1115;
  --flamex-black:#111315;
  --flamex-dark:#202326;
  --flamex-gray:#f3f4f6;
  --flamex-border:#d9dde1;
  --flamex-orange:#f5aa00;
  --flamex-white:#ffffff;
  --flamex-radius:16px;
  --flamex-shadow:0 16px 40px rgba(0,0,0,.12);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:#202326;font-family:"Open Sans",Arial,sans-serif;line-height:1.62}
a{color:var(--flamex-red);text-decoration:none}a:hover{text-decoration:underline}
.wp-site-blocks{overflow-x:hidden}
h1,h2,h3,h4,h5,h6,.flamex-display{font-family:"Anton",Impact,sans-serif;letter-spacing:.02em;line-height:1.08;text-transform:none}
h1{font-size:clamp(2.3rem,5vw,5rem)}h2{font-size:clamp(1.8rem,3vw,3.2rem)}h3{font-size:clamp(1.2rem,2vw,1.7rem)}

/* Header */
.flamex-header{position:sticky;top:0;z-index:1000;background:rgba(12,14,16,.96);backdrop-filter:blur(14px);border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 12px 32px rgba(0,0,0,.24)}
.admin-bar .flamex-header{top:32px}.flamex-header .wp-block-navigation a{color:#fff;font-size:.92rem;font-weight:700}.flamex-header .wp-block-navigation a:hover{color:var(--flamex-orange);text-decoration:none}
.flamex-logo{display:flex;align-items:center;gap:.5rem;font-family:"Anton",Impact,sans-serif;font-size:1.35rem;color:#fff;letter-spacing:.04em}.flamex-logo-mark{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--flamex-red);color:#fff}
.flamex-top-phone{color:#fff;font-weight:800;font-size:.9rem;white-space:nowrap}.flamex-header-row{gap:1.2rem}.flamex-mobile-note{display:none}

/* Buttons */
.wp-block-button .wp-block-button__link,.flamex-btn,.flamex-form button{border-radius:8px;font-weight:800;text-transform:none;box-shadow:none;border:2px solid transparent;padding:.85rem 1.2rem;transition:.2s ease}
.wp-block-button:not(.is-style-outline) .wp-block-button__link,.flamex-btn-primary{background:var(--flamex-orange)!important;color:#111!important}.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,.flamex-btn-primary:hover{background:#ffc233!important;transform:translateY(-1px);text-decoration:none}
.wp-block-button.is-style-outline .wp-block-button__link,.flamex-btn-whatsapp{background:var(--flamex-red)!important;color:#fff!important;border-color:var(--flamex-red)!important}.wp-block-button.is-style-outline .wp-block-button__link:hover,.flamex-btn-whatsapp:hover{background:var(--flamex-red-dark)!important;text-decoration:none}

/* Layout blocks */
.flamex-section{padding:clamp(3rem,6vw,6rem) 0}.flamex-section-tight{padding:clamp(2rem,4vw,4rem) 0}.flamex-dark-section{background:linear-gradient(135deg,#121416,#25292e);color:#fff}.flamex-red-section{background:linear-gradient(135deg,var(--flamex-red),#810b10);color:#fff}.flamex-light-section{background:var(--flamex-gray)}
.flamex-hero{min-height:760px;position:relative;background:#111;color:#fff;overflow:hidden}.flamex-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.86) 0%,rgba(0,0,0,.58) 40%,rgba(0,0,0,.18) 100%);z-index:1}.flamex-hero .wp-block-cover__inner-container{position:relative;z-index:2}.flamex-hero .wp-block-cover__image-background{filter:saturate(.92) contrast(1.06)}.flamex-hero h1 strong,.flamex-red-text{color:var(--flamex-red)}
.flamex-page-hero{min-height:420px}.flamex-page-hero:before{background:linear-gradient(90deg,rgba(0,0,0,.84),rgba(120,0,0,.40),rgba(0,0,0,.28))}
.flamex-container{max-width:1180px;margin-left:auto;margin-right:auto;padding-left:24px;padding-right:24px}.flamex-wide{max-width:1360px;margin-left:auto;margin-right:auto;padding-left:24px;padding-right:24px}
.flamex-card{background:#fff;border:1px solid var(--flamex-border);border-radius:var(--flamex-radius);box-shadow:0 8px 24px rgba(16,18,20,.06);overflow:hidden;transition:.22s ease}.flamex-card:hover{transform:translateY(-4px);box-shadow:var(--flamex-shadow)}.flamex-card img{width:100%;height:220px;object-fit:cover;display:block}.flamex-card .wp-block-group{padding:1.2rem}.flamex-card h3{margin-top:0}.flamex-card p{margin-bottom:0;color:#4b535c}
.flamex-icon-card{background:#fff;border:1px solid var(--flamex-border);border-radius:14px;padding:1.4rem;text-align:center;box-shadow:0 4px 14px rgba(0,0,0,.04);height:100%}.flamex-icon{width:46px;height:46px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;background:#fff4f4;color:var(--flamex-red);border:1px solid #ffd4d6;font-size:1.5rem;margin-bottom:.75rem}.flamex-trust{background:#fff;border-bottom:1px solid var(--flamex-border);box-shadow:0 8px 24px rgba(0,0,0,.05)}.flamex-trust .flamex-icon-card{border:0;box-shadow:none;background:transparent}
.flamex-list-check{list-style:none;padding-left:0}.flamex-list-check li{position:relative;margin:.55rem 0;padding-left:1.9rem}.flamex-list-check li:before{content:"✓";position:absolute;left:0;top:0;color:var(--flamex-red);font-weight:900}
.flamex-process{counter-reset:step;gap:0}.flamex-step{position:relative;background:#fff;border:1px solid var(--flamex-border);padding:1rem;text-align:center;min-height:118px}.flamex-step:before{counter-increment:step;content:counter(step);display:inline-flex;width:32px;height:32px;border-radius:50%;background:var(--flamex-red);color:#fff;align-items:center;justify-content:center;font-weight:800;margin-bottom:.5rem}.flamex-step:not(:last-child):after{content:"›";position:absolute;right:-10px;top:42%;font-size:2rem;color:#666;z-index:2}
.flamex-cta-band{background:linear-gradient(135deg,var(--flamex-red),#7b0a0f);color:#fff;border-radius:0;padding:clamp(2.5rem,5vw,4.5rem)}.flamex-yellow-band{background:linear-gradient(135deg,var(--flamex-orange),#f7c548);color:#111}
.flamex-footer{background:#0e1012;color:#fff}.flamex-footer a{color:#fff}.flamex-footer a:hover{color:var(--flamex-orange)}.flamex-footer .wp-block-separator{border-color:rgba(255,255,255,.14)}

/* Contact form */
.flamex-form{background:#fff;border:1px solid var(--flamex-border);border-radius:var(--flamex-radius);box-shadow:var(--flamex-shadow);padding:1.5rem}.flamex-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.flamex-form label{font-weight:800;color:#222;font-size:.92rem}.flamex-form input,.flamex-form select,.flamex-form textarea{width:100%;border:1px solid #cdd3d9;border-radius:8px;padding:.86rem;margin-top:.35rem;font-family:inherit}.flamex-form textarea{min-height:150px}.flamex-form-full{grid-column:1/-1}.flamex-form-message{border-radius:8px;padding:1rem;margin-bottom:1rem}.flamex-form-message.success{background:#e6f7ed;color:#0f6a35}.flamex-form-message.error{background:#fff0f0;color:#9c171b}.flamex-hp{display:none!important}

.flamex-floating-whatsapp{position:fixed;right:22px;bottom:22px;z-index:999;background:#25D366;color:#fff!important;border-radius:999px;padding:.92rem 1.1rem;font-weight:900;box-shadow:0 12px 28px rgba(0,0,0,.25);text-decoration:none!important}.flamex-floating-whatsapp:hover{background:#1eaf54;text-decoration:none!important}
.flamex-map iframe{width:100%;min-height:360px;border:0;border-radius:var(--flamex-radius);box-shadow:0 8px 22px rgba(0,0,0,.10)}

@media (max-width: 900px){
  .admin-bar .flamex-header{top:46px}.flamex-header-row{flex-wrap:wrap}.flamex-header .wp-block-navigation{font-size:.85rem}.flamex-top-phone{display:none}.flamex-mobile-note{display:block}.flamex-hero{min-height:650px}.flamex-form-grid{grid-template-columns:1fr}.flamex-step:not(:last-child):after{display:none}.flamex-floating-whatsapp{right:14px;bottom:14px;padding:.82rem .95rem}
}
