/* =============================================
   Fontanero Urgencia Madrid - Stylesheet
   ============================================= */

/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: #222222;
  background: #ffffff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Oswald', Arial, sans-serif;
  line-height: 1.15;
}

/* === LAYOUT HELPERS === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-label {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #0055cc;
  margin-bottom: 10px;
}

.section-title {
  text-align: center;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700;
  color: #001f4d;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-title span {
  color: #0055cc;
}

.section-sub {
  text-align: center;
  color: #666666;
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

/* === BUTTONS === */
.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #e63900;
  color: #ffffff;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 4px;
  letter-spacing: 1px;
  border: 2px solid transparent;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-phone:hover {
  background: #c43000;
  transform: translateY(-2px);
}

.btn-phone .icon {
  font-size: 20px;
}

.btn-phone--outline {
  background: transparent;
  border: 2px solid #66aaff;
  color: #66aaff;
}

.btn-phone--outline:hover {
  background: #66aaff;
  color: #003366;
}

.btn-more {
  display: inline-block;
  background: #0055cc;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 24px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
}

.btn-more:hover {
  background: #003a8c;
}

/* === NAVEGACIÓN === */
.navbar {
  background: #003366;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.navbar__logo {
  font-family: 'Oswald', Arial, sans-serif;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__links {
  display: flex;
  gap: 28px;
}

.navbar__links a {
  color: #aac8ff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.navbar__links a:hover,
.navbar__links a.active {
  color: #ffffff;
  border-bottom-color: #e63900;
}

/* === HERO === */
.hero {
  background: #001f4d;
  color: #ffffff;
  padding: 72px 20px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 50%, rgba(0, 85, 204, 0.25) 0%, transparent 60%),
                    radial-gradient(circle at 20% 80%, rgba(0, 50, 120, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  background: #e63900;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 2px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(30px, 6vw, 58px);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 18px;
  line-height: 1.05;
}

.hero h1 span {
  color: #66aaff;
}

.hero__sub {
  font-size: 17px;
  color: #aac8ff;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__phones {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 18px;
}

.hero__note {
  font-size: 13px;
  color: #7aa8d0;
  margin-top: 10px;
}

/* === SERVICIOS PRINCIPALES === */
.services-section {
  background: #f4f7fb;
  padding: 64px 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.service-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 36px 28px 32px;
  border: 1px solid #dde5f5;
  text-align: center;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.service-card:hover {
  box-shadow: 0 12px 40px rgba(0, 60, 150, 0.13);
  transform: translateY(-5px);
}

.service-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e6efff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 30px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #001f4d;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.service-card p {
  font-size: 14px;
  color: #666666;
  line-height: 1.65;
  margin-bottom: 22px;
}

/* === BLOQUE INFO (img + texto) === */
.info-block {
  max-width: 1100px;
  margin: 0 auto;
}

.info-block__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.info-block__img {
  background: #003a8c;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.info-block__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-block__img svg {
  width: 80%;
  max-width: 340px;
  opacity: 0.15;
}

.info-block__content {
  background: #001f4d;
  padding: 56px 44px;
  color: #ffffff;
}

.info-block__content .section-label {
  text-align: left;
  color: #66aaff;
}

.info-block__content h2 {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: left;
}

.info-block__content h2 span {
  color: #66aaff;
}

.info-block__content h3 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #aac8ff;
  text-transform: uppercase;
  margin: 24px 0 10px;
  letter-spacing: 0.5px;
}

.info-list li {
  font-size: 14px;
  color: #cce0ff;
  padding: 5px 0 5px 22px;
  position: relative;
  line-height: 1.6;
}

.info-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #66aaff;
}

.info-block__content p {
  font-size: 14px;
  color: #cce0ff;
  line-height: 1.7;
}

/* === SERVICIOS NUMERADOS === */
.numbered-section {
  background: #f4f7fb;
  padding: 64px 20px;
}

.numbered-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.num-card {
  background: #ffffff;
  border: 1px solid #dde5f5;
  border-radius: 8px;
  padding: 20px 20px 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow 0.2s ease;
}

.num-card:hover {
  box-shadow: 0 4px 20px rgba(0, 60, 150, 0.1);
}

.num-card__badge {
  min-width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0055cc;
  color: #ffffff;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.num-card a {
  font-size: 14px;
  font-weight: 600;
  color: #001f4d;
  transition: color 0.2s;
}

.num-card:hover a {
  color: #0055cc;
}

/* === ZONAS === */
.zones-section {
  background: #ffffff;
  padding: 64px 20px;
}

.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

.zone-link {
  display: block;
  background: #e6efff;
  border-radius: 4px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #003a8c;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}

.zone-link:hover {
  background: #0055cc;
  color: #ffffff;
}

/* === CTA STRIP === */
.cta-strip {
  background: #e63900;
  padding: 52px 20px;
  text-align: center;
}

.cta-strip h2 {
  font-size: clamp(20px, 4vw, 36px);
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.cta-strip .btn-phone {
  background: #ffffff;
  color: #e63900;
  border-color: #ffffff;
}

.cta-strip .btn-phone:hover {
  background: #ffe0d6;
  color: #c43000;
}

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

/* === FOOTER === */
.footer {
  background: #001128;
  padding: 40px 20px;
  text-align: center;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 60px;
  max-width: 900px;
  margin: 0 auto 28px;
}

.footer__col h4 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #66aaff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.footer__col p,
.footer__col a {
  font-size: 13px;
  color: #5577aa;
  line-height: 1.8;
  display: block;
}

.footer__col a:hover {
  color: #aac8ff;
}

.footer__bottom {
  border-top: 1px solid #0d2040;
  padding-top: 22px;
}

.footer__bottom p {
  color: #3d5580;
  font-size: 13px;
  line-height: 1.8;
}

.footer__bottom strong {
  color: #aac8ff;
}

/* =============================================
   === TABLA DE PRECIOS ===
   ============================================= */
.prices-section {
  background: #ffffff;
  padding: 64px 20px;
}

.prices-table-wrap {
  overflow-x: auto;
  max-width: 860px;
  margin: 0 auto 28px;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 31, 77, 0.09);
}

.prices-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #ffffff;
}

.prices-table thead tr {
  background: #001f4d;
}

.prices-table thead th {
  color: #ffffff;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 20px;
  text-align: left;
}

.prices-table thead th:last-child {
  text-align: right;
}

.prices-table tbody tr {
  border-bottom: 1px solid #e8eef8;
  transition: background 0.15s ease;
}

.prices-table tbody tr:last-child {
  border-bottom: none;
}

.prices-table tbody tr:nth-child(even) {
  background: #f4f7fb;
}

.prices-table tbody tr:hover {
  background: #e6efff;
}

.prices-table tbody td {
  padding: 13px 20px;
  color: #222222;
  line-height: 1.5;
}

.prices-table tbody td:first-child {
  color: #001f4d;
  font-weight: 600;
}

.prices-table tbody td:last-child {
  text-align: right;
  white-space: nowrap;
}

.prices-table tbody td strong {
  color: #0055cc;
  font-size: 15px;
}

.prices-table tbody tr:last-child td strong {
  color: #e63900;
}

.price-note {
  display: block;
  font-size: 11px;
  color: #888888;
  font-weight: 400;
  margin-top: 2px;
}

.prices-notes {
  max-width: 860px;
  margin: 0 auto;
  background: #fffbea;
  border-left: 4px solid #e6a800;
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
}

.prices-notes > p {
  font-size: 13px;
  font-weight: 700;
  color: #7a5800;
  margin-bottom: 8px;
}

.prices-notes .info-list li {
  color: #5a4400;
  font-size: 13px;
}

.prices-notes .info-list li::before {
  color: #e6a800;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .navbar__links {
    display: none;
  }

  .info-block__grid {
    grid-template-columns: 1fr;
  }

  .info-block__img {
    min-height: 220px;
  }

  .info-block__content {
    padding: 36px 24px;
  }

  .hero {
    padding: 52px 16px 44px;
  }

  .services-section,
  .numbered-section,
  .zones-section,
  .prices-section {
    padding: 44px 16px;
  }

  .prices-table thead th,
  .prices-table tbody td {
    padding: 11px 14px;
    font-size: 13px;
  }

  .prices-table tbody td strong {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .btn-phone {
    font-size: 17px;
    padding: 12px 22px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .footer__top {
    flex-direction: column;
    gap: 20px;
    text-align: left;
  }

  .prices-table tbody td:last-child {
    white-space: normal;
  }
}