/* =========================
   VARIABLES DE COLOR
   ========================= */
:root {
  --green-main: #253884;  /* Verde principal */
  --green-dark: #253884;  /* Mismo tono para consistencia */
  --white: #ffffff;
  --black: #000000;
  --gray-bg: #f5f5f5;
  --text-color: #333;
  --cta-bg: #F9DE0F;      /* Fondo para botón CTA */
  --cta-text: #253884;    /* Texto para botón CTA */
}

/* Reseteo y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--white);
  color: var(--text-color);
  line-height: 1.5;
}

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

/* Contenedor genérico */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   CABECERA
   ========================= */
.top-bar {
  background-color: var(--white);
  border-bottom: 1px solid #ccc;
  padding: 0.5rem 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 80px;
}

.emergency-call a {
  text-decoration: none;
  color: var(--green-main);
  font-size: 1.5rem;
  font-weight: bold;
}

/* =========================
   HERO
   ========================= */
.hero {
  position: relative;
  background: url("hero_background.jpg") no-repeat center center/cover;
  height: 450px;
  display: flex;
  align-items: center;
  color: var(--black);
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  max-width: 700px;
  padding: 20px;
  z-index: 1;
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.hero-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
}
.hero-content h1,
.hero-content p {
  color: #FAF3E0; /* Blanco crudo para buen contraste */
}

/* =========================
   SECCIÓN DE SERVICIOS
   ========================= */
.main-services {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 2rem auto;
  flex-wrap: wrap;
}

.service-box {
  flex: 0 0 31%;
  background-color: var(--gray-bg);
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  border-radius: 4px;
}

.service-icon {
  width: 100%;
  margin: 0 auto 10px auto;
}

.service-box h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--green-dark);
}

.service-box p {
  font-size: 0.95rem;
}

/* Responsive para servicios */
@media (max-width: 992px) {
  .service-box {
    flex: 0 0 48%;
    margin-bottom: 1rem;
  }
}
@media (max-width: 600px) {
  .service-box {
    flex: 0 0 100%;
    margin-bottom: 1rem;
  }
}

/* =========================
   SECCIÓN QUICK, RELIABLE
   ========================= */
.quick-reliable {
  background-color: var(--green-main);
  color: var(--white);
  padding: 2rem 0;
}

.quick-reliable-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.left-block, .right-block {
  flex: 1 1 300px;
}

.left-block {
  display: flex;
  align-items: center;
}

.quick-img {
  max-width: 250px;
  margin-right: 20px;
}

.left-block h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.left-block p {
  font-size: 1rem;
}

/* =========================
   TESTIMONIOS
   ========================= */
.testimonials {
  text-align: center;
  margin: 2rem auto;
}

.testimonials h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.testimonial-slider {
  background-color: var(--gray-bg);
  padding: 1.5rem;
  border-radius: 4px;
  max-width: 600px;
  margin: 1rem auto;
  position: relative;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.testimonial-author {
  font-weight: bold;
}

.slider-controls {
  margin-top: 1rem;
}

.slider-controls button {
  background-color: var(--green-dark);
  color: var(--white);
  border: none;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.slider-controls button:hover {
  background-color: #144016;
}

/* =========================
   CTA FINAL
   ========================= */
.final-cta {
  background-color: var(--green-main);
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
}

.final-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.final-cta-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.final-cta-content p {
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--cta-bg);
  color: var(--cta-text);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #e6d70d;
}

/* =========================
   FOOTER
   ========================= */
.footer {
  background-color: #333;
  color: var(--white);
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.footer-info p {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.footer-social p a {
  color: var(--white);
  text-decoration: none;
  margin: 0 0.3rem;
}

.footer-social p a:hover {
  text-decoration: underline;
}

.footer-copy a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
}

.footer-copy a:hover {
  text-decoration: underline;
}

.footer a { 
  color: white; 
}

/* =========================
   RESPONSIVIDAD GENERAL
   ========================= */
@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .hero-content p {
    font-size: 0.9rem;
  }
  .top-bar-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .emergency-call {
    margin-top: 10px;
  }
}

/* =========================
   ACCESIBILIDAD: FOCUS ESTILO
   ========================= */
button:focus, a:focus {
  outline: 2px dashed var(--green-main);
  outline-offset: 4px;
}
