@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

:root {
  --navy: #0F1C2E;
  --red: #D62828;
  --white: #FFFFFF;
  --light-gray: #F3F3F3;
  --text-dark: #333333;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif; margin: 0; padding: 0;
  color: var(--text-dark); background-color: var(--white);
}

/* Nav & Hero */
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 5%; background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000;
  border-bottom: 3px solid var(--navy);
}
.logo { font-weight: 800; font-size: 1.5rem; color: var(--navy); }
.nav-links a { text-decoration: none; color: var(--navy); margin-left: 20px; font-weight: 600; }
.btn-nav { background-color: var(--red); color: white !important; padding: 10px 20px; border-radius: 4px; }
.hero {
  background-image: linear-gradient(rgba(15, 28, 46, 0.85), rgba(15, 28, 46, 0.85)), url('https://images.unsplash.com/photo-1562259949-e8e7689d7828?q=80&w=2131&auto=format&fit=crop');
  background-size: cover; background-position: center; color: var(--white);
  padding: 120px 20px; text-align: center; display: flex;
  justify-content: center; align-items: center; min-height: 60vh;
}
.hero-content { max-width: 800px; }
.hero h1 { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; font-weight: 800; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; }
.badges span { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); padding: 8px 18px; margin: 0 5px; border-radius: 4px; font-weight: 600; }
/* AQUÍ EL CAMBIO DEL BOTÓN: margin-top extra para separarlo */
.btn-main { 
  display: inline-block; background-color: var(--red); color: white; 
  padding: 18px 40px; text-decoration: none; border-radius: 50px; 
  font-weight: bold; transition: transform 0.2s; margin-top: 50px; 
}
.btn-main:hover { transform: scale(1.05); }

/* --- ESTILOS DE SERVICIOS --- */
.services { padding: 80px 5%; text-align: center; background: var(--white); }
.services h2 { color: var(--navy); font-size: 2.2rem; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; margin-top: 40px; }

.card {
  background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1); border: 1px solid #eee; text-align: left;
}

/* A) Estilos para SLIDER (Antes/Después) */
.ba-slider {
  position: relative; width: 100%; height: 250px; overflow: hidden;
}
.ba-before, .ba-after {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.ba-before img, .ba-after img {
  width: 100%; height: 100%; object-fit: cover;
}
.ba-after {
  width: 50%; /* Comienza a mitad */
  border-right: 3px solid var(--white);
  z-index: 2; overflow: hidden;
}
.ba-label {
  position: absolute; top: 10px; background: rgba(0,0,0,0.6); color: white;
  padding: 3px 8px; font-size: 0.7rem; font-weight: bold; border-radius: 3px; z-index: 5;
}
.ba-before .ba-label { right: 10px; }
.ba-after .ba-label { left: 10px; }
.ba-range {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  cursor: ew-resize; opacity: 0; z-index: 10; margin: 0;
}
.ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; background: var(--red); border-radius: 50%;
  z-index: 4; border: 3px solid white; box-shadow: 0 0 10px rgba(0,0,0,0.5);
  pointer-events: none; display: flex; justify-content: center; align-items: center;
}
.ba-handle::after { content: '↔'; color: white; font-weight: bold; }

/* Estilos Comunes de Tarjeta */
.card-content { padding: 25px; border-top: 4px solid var(--navy); }
.card h3 { margin: 0 0 10px; color: var(--navy); }

/* --- POR QUÉ ELEGIRNOS --- */
.why-us { background-color: var(--navy); color: var(--white); padding: 80px 5%; text-align: center; }
.features-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 40px;}
.feature-item { 
  flex: 1; min-width: 250px; max-width: 350px; 
  background: rgba(255,255,255,0.05); padding: 30px; 
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); 
}
/* CAMBIO: Títulos en blanco en vez de rojo */
.feature-item h3 { color: var(--white); margin-bottom: 10px; margin-top: 0; }
.feature-item p { color: #ccc; }

/* Footer y Locations */
.locations { background: var(--white); color: var(--navy); text-align: center; padding: 50px 20px; border-top: 1px solid #eee; }
footer { background: var(--light-gray); padding: 80px 5% 30px; border-top: 5px solid var(--red); }
.contact-container { display: flex; flex-wrap: wrap; gap: 50px; max-width: 1100px; margin: 0 auto; }
.contact-info { flex: 1; min-width: 300px; }
.contact-info h2 { color: var(--navy); font-size: 2.5rem; margin-top: 0; }
.phone-display { font-size: 2rem; font-weight: 800; color: var(--red); margin-top: 20px; display: block; }
.contact-form-wrapper { flex: 1; min-width: 300px; background: var(--white); padding: 40px; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); border-top: 5px solid var(--navy); }
.form-group label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
input, select { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ddd; background: var(--light-gray); box-sizing: border-box; }
.btn-submit { width: 100%; padding: 18px; background: var(--navy); color: white; border: none; font-weight: bold; cursor: pointer; }
.btn-submit:hover { background: var(--red); }
.copyright { text-align: center; margin-top: 60px; color: #888; font-size: 0.8rem; }