/* =============================================
   ABC LIMPIEZAS - CSS GLOBAL v4
   Identidad: Azul Marino #1A2B5F + Verde Esmeralda #00A878
   Tipografia: Montserrat + Open Sans
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1A1A2E; background: #FFFFFF; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: #1A2B5F; text-decoration: none; transition: color .3s; }
a:hover { color: #00A878; }
h1,h2,h3,h4,h5,h6 { font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 800; line-height: 1.2; color: #1A2B5F; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
p { margin-bottom: 1rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* URGENCY BANNER */
.urgency-banner { background: #00A878; color: #fff; text-align: center; padding: 10px 16px; font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.3px; }
.urgency-banner a { color: #fff; text-decoration: underline; font-weight: 700; }

/* HEADER */
.site-header { background: #1A2B5F; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(26,43,95,0.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; max-width: 1200px; margin: 0 auto; }
.header-logo img { height: 48px; width: auto; }
.header-nav { display: flex; gap: 28px; align-items: center; }
.header-nav a { color: rgba(255,255,255,0.85); font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; transition: color .3s; }
.header-nav a:hover { color: #00A878; }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { color: #fff; font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 6px; }
.header-phone svg { width: 18px; height: 18px; fill: #00A878; }
.btn-header { background: #00A878; color: #fff; padding: 10px 22px; border-radius: 6px; font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; transition: all .3s; border: none; cursor: pointer; }
.btn-header:hover { background: #008f66; color: #fff; transform: translateY(-1px); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .3s; }

/* HERO TWO COLUMN */
.hero { padding: 60px 0 50px; background: #1A2B5F; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-content { padding-right: 20px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,168,120,0.1); color: #00A878; padding: 8px 18px; border-radius: 50px; font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 20px; }
.hero-badge svg { width: 16px; height: 16px; fill: #00A878; }
.hero h1 { margin-bottom: 20px; color: #FFFFFF; }
.hero h1 span { color: #00A878; }
.hero-desc { font-size: 1.15rem; color: rgba(255,255,255,0.92); margin-bottom: 30px; line-height: 1.8; }
.hero-ctas { display: flex; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: #00A878; color: #fff; padding: 14px 32px; border-radius: 8px; font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 700; font-size: 1rem; transition: all .3s; border: none; cursor: pointer; }
.btn-primary:hover { background: #008f66; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,168,120,0.3); }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: #FFFFFF; padding: 14px 32px; border-radius: 8px; font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 700; font-size: 1rem; border: 2px solid rgba(255,255,255,0.9); transition: all .3s; cursor: pointer; }
.btn-secondary:hover { background: #FFFFFF; color: #1A2B5F; transform: translateY(-2px); }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff; padding: 14px 32px; border-radius: 8px; font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 700; font-size: 1rem; transition: all .3s; border: none; cursor: pointer; }
.btn-whatsapp:hover { background: #1DA851; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,211,102,0.3); }
.hero-trust { display: flex; gap: 24px; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.82); }
.trust-item svg { width: 20px; height: 20px; fill: #00A878; }
.hero-image { position: relative; }
.hero-image img { border-radius: 16px; box-shadow: 0 20px 60px rgba(26,43,95,0.15); width: 100%; height: auto; object-fit: cover; }
.hero-image-badge { position: absolute; bottom: -20px; left: -20px; background: #1A2B5F; color: #fff; width: 120px; height: 120px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(26,43,95,0.3); border: 4px solid #fff; }
.hero-image-badge .badge-number { font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 800; font-size: 2rem; line-height: 1; }
.hero-image-badge .badge-text { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; text-align: center; line-height: 1.2; margin-top: 2px; }

/* STATS BAR */
.stats-bar { background: #1A2B5F; padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-number { font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 800; font-size: 2.4rem; color: #00A878; line-height: 1; margin-bottom: 6px; }
.stat-label { color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 500; }

/* SECTIONS */
.section { padding: 80px 0; }
.section-alt { background: #F5F7FA; }
.section-title { text-align: center; margin-bottom: 16px; }
.section-subtitle { text-align: center; color: #666; font-size: 1.1rem; max-width: 700px; margin: 0 auto 50px; }
.section-label { display: inline-block; color: #00A878; font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }

/* SERVICES GRID */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background: #fff; border-radius: 12px; padding: 36px 28px; border-top: 4px solid #00A878; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all .3s; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.service-icon { width: 56px; height: 56px; background: rgba(0,168,120,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.service-icon svg { width: 28px; height: 28px; fill: #00A878; }
.service-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.service-card p { color: #666; font-size: 0.95rem; margin-bottom: 0; }

/* TIMELINE */
.timeline-section { padding: 80px 0; background: #F5F7FA; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 40px; left: 12.5%; right: 12.5%; height: 3px; background: #00A878; z-index: 0; }
.timeline-step { text-align: center; position: relative; z-index: 1; }
.step-number { width: 80px; height: 80px; background: #1A2B5F; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 800; font-size: 1.8rem; margin: 0 auto 20px; border: 4px solid #fff; box-shadow: 0 4px 15px rgba(26,43,95,0.2); }
.timeline-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.timeline-step p { color: #666; font-size: 0.9rem; }

/* SPLIT SECTION */
.split-section { display: grid; grid-template-columns: 3fr 2fr; gap: 60px; align-items: center; }
.split-image img { border-radius: 16px; box-shadow: 0 15px 50px rgba(0,0,0,0.1); width: 100%; }
.split-content h2 { margin-bottom: 20px; }
.split-content p { color: #555; margin-bottom: 16px; }
.split-list { list-style: none; margin: 20px 0 30px; }
.split-list li { padding: 8px 0 8px 30px; position: relative; color: #444; font-size: 1rem; }
.split-list li::before { content: ''; position: absolute; left: 0; top: 14px; width: 18px; height: 18px; background: #00A878; border-radius: 50%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E"); background-size: 12px; background-repeat: no-repeat; background-position: center; }

/* INSURERS */
.insurers-section { padding: 50px 0; background: #F5F7FA; border-top: 1px solid #E8ECF1; border-bottom: 1px solid #E8ECF1; }
.insurers-title { text-align: center; font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 600; font-size: 0.9rem; color: #888; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 30px; }
.insurers-grid { display: flex; justify-content: center; align-items: center; gap: 50px; flex-wrap: wrap; }
.insurer-logo { font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 800; font-size: 1.5rem; color: #B0B8C8; letter-spacing: 1px; transition: color .3s; }
.insurer-logo:hover { color: #1A2B5F; }

/* TESTIMONIALS */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial-card { background: #EEF1F8; border-radius: 12px; padding: 32px 28px; transition: all .3s; }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(26,43,95,0.1); }
.testimonial-stars { color: #F5A623; font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-style: italic; color: #444; margin-bottom: 20px; font-size: 0.95rem; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; background: #1A2B5F; color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 700; font-size: 1.1rem; }
.testimonial-name { font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 700; color: #1A2B5F; font-size: 0.95rem; }
.testimonial-city { color: #888; font-size: 0.8rem; }

/* FORM SECTION */
.form-section { background: #00A878; padding: 80px 0; }
.form-section .section-title { color: #fff; }
.form-section .section-subtitle { color: rgba(255,255,255,0.85); }
.form-section .section-label { color: rgba(255,255,255,0.7); }
.contact-form { max-width: 550px; margin: 0 auto; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; color: rgba(255,255,255,0.9); font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; }
.form-group input { width: 100%; padding: 14px 18px; border: 2px solid rgba(255,255,255,0.3); border-radius: 8px; background: #fff; font-family: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 1rem; color: #1A1A2E; transition: border-color .3s; }
.form-group input:focus { outline: none; border-color: #1A2B5F; }
.form-group input::placeholder { color: #aaa; }
.btn-form { width: 100%; padding: 16px; background: #1A2B5F; color: #fff; border: none; border-radius: 8px; font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 700; font-size: 1.05rem; cursor: pointer; transition: all .3s; text-transform: uppercase; letter-spacing: 1px; }
.btn-form:hover { background: #142247; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(26,43,95,0.4); }
.form-success { display: none; text-align: center; color: #fff; padding: 30px; }
.form-success h3 { color: #fff; margin-bottom: 10px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #E8ECF1; }
.faq-question { width: 100%; background: none; border: none; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 700; font-size: 1.05rem; color: #1A2B5F; text-align: left; transition: color .3s; }
.faq-question:hover { color: #00A878; }
.faq-icon { width: 28px; height: 28px; border-radius: 50%; background: rgba(0,168,120,0.1); color: #00A878; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 400; flex-shrink: 0; transition: all .3s; }
.faq-item.active .faq-icon { background: #00A878; color: #fff; transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; }
.faq-item.active .faq-answer { max-height: 500px; padding-bottom: 22px; }
.faq-answer p { color: #555; font-size: 0.95rem; line-height: 1.8; }

/* ANTES/DESPUES */
.antes-despues-section { padding: 56px 0; }
.antes-despues-img { border-radius: 16px; box-shadow: 0 15px 50px rgba(0,0,0,0.1); max-width: 680px; max-height: 420px; object-fit: cover; margin: 0 auto; display: block; }

/* CTA FINAL */
.cta-final { background: #1A2B5F; padding: 70px 0; text-align: center; }
.cta-final h2 { color: #fff; margin-bottom: 16px; }
.cta-final p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 30px; }
.cta-final .btn-primary { font-size: 1.1rem; padding: 16px 40px; }

/* FOOTER */
.site-footer { background: #1A2B5F; padding: 60px 0 0; color: rgba(255,255,255,0.7); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col h4 { color: #fff; font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-about p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-about img { height: 40px; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color .3s; }
.footer-links a:hover { color: #00A878; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 0.9rem; }
.footer-contact-item svg { width: 18px; height: 18px; fill: #00A878; flex-shrink: 0; margin-top: 3px; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 0.85rem; }
.footer-bottom span { color: #00A878; }

/* FLOATING */
.float-call { position: fixed; bottom: 90px; right: 24px; width: 60px; height: 60px; background: #00A878; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 25px rgba(0,168,120,0.4); z-index: 999; transition: all .3s; animation: pulse-green 2s infinite; }
.float-call:hover { transform: scale(1.1); background: #008f66; }
.float-call svg { width: 28px; height: 28px; fill: #fff; }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(0,168,120,0.5); } 70% { box-shadow: 0 0 0 15px rgba(0,168,120,0); } 100% { box-shadow: 0 0 0 0 rgba(0,168,120,0); } }

/* MOBILE BAR */
.mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #1A2B5F; z-index: 1000; }
.mobile-bar-inner { display: grid; grid-template-columns: 1fr 1fr; }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; color: #fff; font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }
.mobile-bar a:first-child { background: #00A878; }
.mobile-bar a:last-child { background: #1A2B5F; }
.mobile-bar svg { width: 20px; height: 20px; fill: #fff; }

/* BREADCRUMBS */
.breadcrumbs { padding: 16px 0; background: #F5F7FA; border-bottom: 1px solid #E8ECF1; }
.breadcrumbs-list { display: flex; align-items: center; gap: 8px; list-style: none; font-size: 0.85rem; }
.breadcrumbs-list a { color: #00A878; }
.breadcrumbs-list span { color: #999; }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all .3s; }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.blog-card-img { height: 200px; background: #1A2B5F; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-card-date { color: #00A878; font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.blog-card p { color: #666; font-size: 0.9rem; }

/* CONTENT PAGES */
.content-page { padding: 60px 0; }
.content-page h1 { margin-bottom: 30px; }
.content-page h2 { margin: 40px 0 16px; font-size: 1.6rem; }
.content-page h3 { margin: 30px 0 12px; }
.content-page p { margin-bottom: 16px; color: #444; }
.content-page ul, .content-page ol { margin: 16px 0; padding-left: 24px; }
.content-page li { margin-bottom: 8px; color: #444; }

/* RESPONSIVE */
@media (max-width: 992px) {
  .header-nav { display: none; }
  .mobile-toggle { display: block; }
  .header-nav.active, .header-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #1A2B5F; padding: 20px; gap: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); z-index: 1001; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-content { padding-right: 0; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-image-badge { bottom: -15px; left: auto; right: -10px; width: 100px; height: 100px; }
  .hero-image-badge .badge-number { font-size: 1.6rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .split-section { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .urgency-banner { font-size: 0.8rem; padding: 8px 12px; }
  .header-phone { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-number { font-size: 1.8rem; }
  .services-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-bar { display: block; }
  .float-call { bottom: 80px; }
  body { padding-bottom: 56px; }
  .blog-grid { grid-template-columns: 1fr; }
  .hero-image-badge { width: 90px; height: 90px; }
  .hero-image-badge .badge-number { font-size: 1.4rem; }
  .hero-image-badge .badge-text { font-size: 0.55rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 50px 0; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 40px 0 30px; }
  .hero-ctas { flex-direction: column; }
  .hero-trust { flex-direction: column; gap: 12px; }
}

.hero .section-label, .hero .section-subtitle { color: rgba(255,255,255,0.82); }
.hero .hero-badge { background: rgba(255,255,255,0.12); color: #FFFFFF; }
.hero .hero-badge svg { fill: #00A878; }
.hero .hero-content a { color: inherit; }
.hero .hero-image-badge { border-color: rgba(255,255,255,0.85); }


.real-cases-section {
    background: #ffffff;
}

.real-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.real-case-card {
    background: #ffffff;
    border: 1px solid rgba(26, 43, 95, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(26, 43, 95, 0.08);
}

.real-case-img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #f8fbff;
}

.real-case-body {
    padding: 24px;
}

.real-case-body h3 {
    color: #1A2B5F;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.real-case-body p {
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
}


.local-guidance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.local-guidance-card {
    background: #ffffff;
    border: 1px solid rgba(26, 43, 95, 0.08);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(26, 43, 95, 0.06);
}

.local-guidance-card h3,
.local-process-card h3,
.local-links-card h3 {
    color: #1A2B5F;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.local-guidance-card p,
.local-process-card p,
.local-links-card p,
.local-nearby-list li,
.local-example-table td {
    color: #4a5568;
    line-height: 1.7;
}

.local-process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.local-process-card {
    background: #f8fbff;
    border: 1px solid rgba(46, 204, 113, 0.20);
    border-radius: 18px;
    padding: 22px;
}

.local-process-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1A2B5F;
    color: #fff;
    font-weight: 700;
    margin-bottom: 14px;
}

.local-nearby-list {
    margin: 24px 0 0;
    padding-left: 20px;
}

.local-nearby-list li {
    margin-bottom: 10px;
}

.local-example-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 22px;
}

.local-example-table th,
.local-example-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(26, 43, 95, 0.10);
    text-align: left;
}

.local-example-table th {
    color: #1A2B5F;
    background: #f8fbff;
}

.local-links-card {
    background: linear-gradient(135deg, #f8fbff 0%, #eef8f2 100%);
    border: 1px solid rgba(26, 43, 95, 0.08);
    border-radius: 18px;
    padding: 24px;
    margin-top: 28px;
}

.local-links-card a {
    color: #1A2B5F;
    font-weight: 600;
}


.mobile-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* CASE GALLERY */
.case-gallery-section { padding: 80px 0; }
.case-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-gallery-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 30px rgba(26,43,95,0.10); border: 1px solid #E8ECF1; }
.case-gallery-card img { width: 100%; height: auto; max-height: 360px; object-fit: contain; object-position: center center; display: block; background: #f8fbff; }
.case-gallery-card figcaption { padding: 16px 18px; color: #3b4250; font-size: .95rem; line-height: 1.55; }
.antes-después-img { width: 100%; max-width: 680px; max-height: 420px; margin: 0 auto; border-radius: 16px; box-shadow: 0 12px 45px rgba(26,43,95,.14); object-fit: cover; }
@media (max-width: 900px) { .case-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .case-gallery-grid { grid-template-columns: 1fr; } }

/* QA skills: enlazado local, FAQ y preparación previa a reforma */
.skill-local-links .local-link-card{background:#fff;border-radius:18px;padding:28px;box-shadow:0 10px 30px rgba(0,0,0,.08);display:grid;gap:20px}
.skill-local-links .local-nearby-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:0;padding:0;list-style:none}
.skill-local-links .local-nearby-list a{display:block;padding:12px 14px;border:1px solid rgba(0,0,0,.08);border-radius:12px;color:#1f2937;text-decoration:none;background:#f8fafc}
.skill-local-links .local-nearby-list a:hover{border-color:#d97706;color:#b45309;background:#fff7ed}
.skill-faq-section .faq-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.skill-faq-section .faq-item{background:#fff;border-radius:16px;padding:22px;box-shadow:0 8px 24px rgba(0,0,0,.07)}
.skill-faq-section .faq-item h3{margin-top:0;color:#1f2937}
.skill-reforma-section .content-page{max-width:980px}


.before-after-compact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 30px;
}
.before-after-card {
    background: #fff;
    border: 1px solid rgba(26,43,95,0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(26,43,95,0.10);
}
.before-after-thumb {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #f8fbff;
}
.before-after-card figcaption {
    padding: 14px 16px 16px;
    color: #4a5568;
    line-height: 1.55;
    font-size: .95rem;
}
.real-cases-section .real-case-img {
    max-height: 420px;
    object-fit: contain;
}
@media (max-width: 900px) {
    .before-after-compact { grid-template-columns: 1fr; }
    .before-after-thumb { max-height: none; }
}

/* PageSpeed y orientación: evita recortes, reduce coste de renderizado bajo el pliegue y mejora tablas locales */
.hero-image img.real-photo-vertical {
  width: auto;
  max-width: 100%;
  max-height: min(74vh, 720px);
  margin: 0 auto;
  object-fit: contain;
  background: rgba(255,255,255,0.04);
}
.local-example-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(26,43,95,0.08);
}
.local-example-table th,
.local-example-table td {
  padding: 14px 16px;
  border: 1px solid #E8ECF1;
  vertical-align: top;
}
.local-example-table th {
  background: #1A2B5F;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
}
.local-example-table tr:nth-child(even) td { background: #F5F7FA; }
.section:not(.hero),
.timeline-section,
.insurers-section,
.form-section,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}
@media (max-width: 768px) {
  .hero-image img.real-photo-vertical { max-height: 58vh; }
  .local-example-table { display: block; overflow-x: auto; white-space: normal; }
}

/* Enlazado interno de servicios y galerías antes/después en landings */
.service-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}
.service-card-link .service-card-inner,
.service-card-link.service-card {
    height: 100%;
}
.service-card-link:hover .service-card-inner,
.service-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(26,43,95,0.14);
}
.antes-después-section .before-after-compact {
    margin-top: 34px;
}
.antes-después-section {
    overflow: hidden;
}
.skill-local-links {
    clear: both;
}

/* Correcciones Lighthouse/PageSpeed: contraste y nombres accesibles */
.urgency-banner {
  background: #071A3A !important;
  color: #FFFFFF !important;
}
.urgency-banner a {
  color: #FFFFFF !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 800;
}
.btn-header,
.header-cta .btn-header {
  background: #075E54 !important;
  color: #FFFFFF !important;
  border-color: #075E54 !important;
}
.section-label,
.testimonial-city,
.breadcrumbs,
.breadcrumbs a,
.breadcrumbs span {
  color: #15346E !important;
}
.hero .section-label,
.hero-section .section-label,
.form-section .section-label,
.form-section label,
.form-section .form-group label {
  color: #FFFFFF !important;
}
.btn-primary {
  background: #B94612 !important;
  color: #FFFFFF !important;
  border-color: #B94612 !important;
}
.form-card .btn-primary,
.split-content .btn-primary {
  background: #A63A0A !important;
}
.btn-whatsapp {
  background: #075E54 !important;
  color: #FFFFFF !important;
  border-color: #075E54 !important;
}
a.service-card-link,
a.service-card-link:visited {
  color: inherit;
  text-decoration: none;
}
a.service-card-link:focus-visible,
a.service-card-link:hover {
  outline: 3px solid rgba(21,52,110,0.35);
  outline-offset: 4px;
}

/* LIGHTHOUSE / PAGESPEED FINAL FIXES */
.form-section { background: #007A5C !important; }
.form-section .section-subtitle,
.form-section .section-label,
.form-section label,
.form-section .form-group label { color: #FFFFFF !important; }
.site-footer { color: #FFFFFF !important; }
.footer-about p,
.footer-contact-item,
.footer-bottom,
.footer-bottom span { color: #FFFFFF !important; }

/* LIGHTHOUSE REMAINING CONTRAST FIXES */
.mobile-bar a:first-child { background: #006B4F !important; color: #FFFFFF !important; }
.mobile-bar a:last-child { background: #10204C !important; color: #FFFFFF !important; }
.form-card { background: #FFFFFF !important; }
.form-card h2,
.form-card p,
.form-card .section-title,
.form-card .section-subtitle { color: #1A1A2E !important; }
.article-featured-image { margin: 28px 0 32px; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.10); background: #f5f7fb; }
.article-featured-image img { display: block; width: 100%; height: auto; object-fit: cover; }

/* Corrección responsive: evita iconos/CTAs superpuestos en móvil */
.btn-primary svg,
.btn-secondary svg,
.btn-whatsapp svg,
.hero-ctas svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

@media (max-width: 768px) {
  .float-call {
    display: none !important;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary,
  .hero-ctas .btn-whatsapp {
    width: 100%;
    justify-content: center;
    min-height: 54px;
  }
}

/* Corrección responsive adicional: evita desbordamiento horizontal en cabecera y hero móvil */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.header-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 194px;
}

.header-inner,
.hero-content,
.hero-ctas,
.hero-trust,
.mobile-bar {
  min-width: 0;
}

.hero h1,
.hero-desc,
.trust-item,
.mobile-bar a {
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .header-inner {
    gap: 10px;
    padding: 10px 12px;
  }

  .header-inner > a:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-logo {
    height: 40px;
    max-width: 170px;
  }

  .header-cta {
    flex: 0 0 auto;
    gap: 8px;
  }

  .btn-header,
  .header-cta .btn-header {
    padding: 9px 12px;
    font-size: 0.78rem;
    letter-spacing: 0.2px;
  }

  .mobile-toggle {
    flex: 0 0 auto;
    padding: 6px;
  }

  .mobile-toggle span {
    width: 24px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.7rem, 7vw, 2rem);
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-trust {
    align-items: center;
  }

  .trust-item {
    justify-content: center;
    text-align: center;
    max-width: 100%;
  }

  .mobile-bar a {
    min-width: 0;
    padding: 12px 8px;
    font-size: 0.86rem;
    gap: 6px;
  }

  .mobile-bar svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }
}
