/* ============================================
   ISLAREFORMAS — Estilos globales
   ============================================ */

:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2540;
  --accent: #f97316;
  --accent-dark: #ea6c0a;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #f8f9fa;
  --white: #ffffff;
  --border: #e5e7eb;
  --success: #16a34a;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --radius: 10px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================
   CABECERA
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.logo span { color: var(--accent); }

.nav { display: flex; gap: 6px; align-items: center; }

.nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover, .nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-phone {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-phone svg { width: 18px; height: 18px; fill: var(--accent); }

.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: center;
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249,115,22,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: 12px; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1e4d7b 100%);
  padding: 80px 24px 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(249,115,22,0.2);
  color: var(--accent);
  border: 1px solid rgba(249,115,22,0.4);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-desc {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-trust-item svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* ============================================
   FORMULARIO DE CONTACTO (HERO)
   ============================================ */

.contact-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}

.contact-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.contact-card-sub {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.contact-card-sub strong { color: var(--accent); }

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group label .req { color: var(--accent); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.12);
}

.form-control::placeholder { color: #9ca3af; }

select.form-control { cursor: pointer; }

textarea.form-control { resize: vertical; min-height: 90px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-submit { margin-top: 8px; }

.form-submit .btn { width: 100%; }

.form-privacy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 10px;
}

/* ============================================
   SECCIÓN SERVICIOS
   ============================================ */

.section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(249,115,22,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg { width: 28px; height: 28px; fill: var(--accent); }

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

.service-card-link:hover { text-decoration: underline; }

/* ============================================
   POR QUÉ ELEGIRNOS
   ============================================ */

.why-section { background: var(--bg); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
}

.why-item {
  text-align: center;
  padding: 24px 16px;
}

.why-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.why-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.why-item p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   CTA STRIP
   ============================================ */

.cta-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 64px 24px;
  text-align: center;
}

.cta-strip h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.cta-strip p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   MAPA
   ============================================ */

.map-section { padding: 0; }
.map-section iframe {
  width: 100%;
  height: 380px;
  border: none;
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo { font-size: 1.4rem; margin-bottom: 16px; }

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-nap { font-size: 0.875rem; line-height: 1.8; }
.footer-nap strong { color: var(--white); }

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   PÁGINA INTERIOR (SERVICIO)
   ============================================ */

.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 60px 24px;
  text-align: center;
}

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  line-height: 1.7;
}

.content-section {
  padding: 64px 24px;
}

.content-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}

.content-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  margin-top: 32px;
}

.content-body h2:first-child { margin-top: 0; }

.content-body p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.975rem;
}

.content-body ul {
  margin: 0 0 16px 20px;
  color: var(--text-light);
  font-size: 0.975rem;
  line-height: 1.8;
}

.content-body ul li { margin-bottom: 6px; }

.sidebar-form {
  position: sticky;
  top: 90px;
}

.sidebar-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.sidebar-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.sidebar-card-sub {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.process-list {
  counter-reset: steps;
  list-style: none;
  margin: 0 0 16px 0;
}

.process-list li {
  counter-increment: steps;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.process-list li::before {
  content: counter(steps);
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.process-list li div h4 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.process-list li div p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

.faq-list { margin-top: 16px; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   REVIEWS
   ============================================ */

.reviews-section { background: var(--bg); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--white);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.review-stars { color: #fbbf24; font-size: 1rem; margin-bottom: 12px; }

.review-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.review-author {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.875rem;
}

.review-location {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .content-inner { grid-template-columns: 1fr; }
  .sidebar-form { position: static; }
}

@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--primary-dark); flex-direction: column; padding: 16px; gap: 4px; }
  .nav.open { display: flex; }
  .hamburger { display: flex; }
  .header-phone { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 56px 24px 72px; }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
