/* ===========================
   PLEAMAR ACTIV SL — Estilos
   =========================== */

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-blue:   #0b4f8a;
  --brand-teal:   #0d9488;
  --brand-light:  #e0f2fe;
  --brand-dark:   #0a2e50;
  --gray-100:     #f1f5f9;
  --gray-600:     #475569;
  --gray-800:     #1e293b;
  --white:        #ffffff;
  --radius:       8px;
  --shadow:       0 4px 24px rgba(11,79,138,.12);
  --transition:   .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
}

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

/* ── HEADER / NAV ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-blue);
}

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

.logo-icon {
  width: 38px;
  height: 38px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
}
nav a:hover { color: var(--brand-blue); }

.nav-cta {
  background: var(--brand-blue);
  color: var(--white) !important;
  padding: .5rem 1.2rem;
  border-radius: 25px;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--brand-dark) !important; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .3rem;
}
.hamburger span {
  display: block;
  width: 26px; height: 3px;
  background: var(--brand-blue);
  border-radius: 3px;
  transition: var(--transition);
}

/* ── HERO ── */
#inicio {
  padding: 140px 1.5rem 80px;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-blue) 60%, var(--brand-teal) 100%);
  color: var(--white);
  text-align: center;
}

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

#inicio h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

#inicio h1 em {
  font-style: normal;
  color: #7dd3fc;
}

#inicio p {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: 2rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--brand-teal);
  color: var(--white);
  padding: .85rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: #0f766e; transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: .85rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,.6);
  transition: border-color var(--transition), transform var(--transition);
}
.btn-secondary:hover { border-color: var(--white); transform: translateY(-2px); }

/* ── SECCIÓN genérica ── */
section { padding: 80px 1.5rem; }

.container { max-width: 1100px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3rem; }

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: .6rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: .8rem;
}

.section-header p {
  color: var(--gray-600);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.02rem;
}

/* ── SERVICIOS ── */
#servicios { background: var(--gray-100); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(11,79,138,.16); }

.card-icon {
  width: 56px; height: 56px;
  background: var(--brand-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.card-icon svg { width: 28px; height: 28px; color: var(--brand-blue); }

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: .6rem;
}

.service-card p { font-size: .93rem; color: var(--gray-600); }

/* ── POR QUÉ ELEGIRNOS ── */
#ventajas { background: var(--white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.feature-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1;
}

.feature-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: .4rem 0 .5rem;
  color: var(--brand-dark);
}

.feature-item p { font-size: .9rem; color: var(--gray-600); }

/* ── PROCESO ── */
#proceso { background: var(--gray-100); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  counter-reset: step;
  position: relative;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}

.step-num {
  width: 52px; height: 52px;
  background: var(--brand-blue);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: .4rem;
}

.step p { font-size: .88rem; color: var(--gray-600); }

/* ── CONTACTO ── */
#contacto { background: linear-gradient(135deg, var(--brand-dark), var(--brand-blue)); color: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.contact-info p { opacity: .85; margin-bottom: 2rem; }

.contact-details { display: flex; flex-direction: column; gap: 1rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
}

.contact-item svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #7dd3fc;
}

.contact-item p { font-size: .95rem; opacity: .9; margin: 0; }

/* Form */
.contact-form {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .4rem;
  opacity: .85;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  padding: .75rem 1rem;
  color: var(--white);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.45); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #7dd3fc;
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-group select option { background: var(--brand-dark); }

.btn-form {
  width: 100%;
  background: var(--brand-teal);
  color: var(--white);
  border: none;
  padding: .9rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), transform var(--transition);
}
.btn-form:hover { background: #0f766e; transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,.65);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: .88rem;
}

footer a { color: rgba(255,255,255,.75); transition: color var(--transition); }
footer a:hover { color: var(--white); }

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

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .4rem;
}
.footer-logo span { color: #7dd3fc; }

.footer-divider { margin: 1.2rem 0; border-color: rgba(255,255,255,.12); }

.footer-legal { margin-top: .6rem; font-size: .82rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav ul { display: none; }
  nav ul.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    gap: 1.2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
  }
  .hamburger { display: flex; }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  #inicio { padding-top: 110px; }
}
