:root {
  --color-primario: #000000;
  --color-secundario: #5c4033;
  --color-fondo: #fff;
  --color-texto-principal: #222;
  --color-texto-secundario: #666;
  --color-fondo-topbar: #f5f5f5;
  --color-boton: var(--color-primario);
  --color-boton-hover: var(--color-secundario);
  --color-whatsapp: #25d366;
}

/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: var(--color-fondo);
  color: var(--color-texto-principal);
  line-height: 1.6;
}

/* CONTENEDOR GENERAL */
.container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 2em;
}

/* BARRA SUPERIOR */
#topbar {
  background-color: var(--color-fondo-topbar);
  font-size: 0.9rem;
  padding: 8px 0;
}
#topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left, .topbar-right {
  color: var(--color-texto-secundario);
}
.topbar-right a {
  color: var(--color-primario);
  font-weight: 700;
  margin-left: 12px;
  text-decoration: none;
}
.topbar-right a:hover {
  text-decoration: underline;
}

/* HEADER Y NAVEGACIÓN */
#header {
  padding: 1em 0;
  border-bottom: 1px solid #ddd;
}
#header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#logo img {
  height: 140px;
  width: auto;
}
#nav ul {
  list-style: none;
  display: flex;
  gap: 1.5em;
  align-items: center;
}
#nav ul li a {
  text-decoration: none;
  color: var(--color-texto-principal);
  font-weight: 700;
  padding: 0.4em 0.7em;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}
#nav ul li a:hover, #nav ul li a.active {
  background-color: var(--color-primario);
  color: #fff;
}

/* BANNER PRINCIPAL */
#banner {
  background: url('../images/banner-home.jpg') no-repeat center center/cover;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
#banner .container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.banner-content {
  width: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  text-align: center;
  gap: 1em;
}
.banner-content h1, .banner-content p {
  color: white;
}
.banner-btn {
  background-color: var(--color-boton);
  color: white;
  padding: 0.8em 1.5em;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
  font-size: 1.1em;
  margin-right: 1em;
}
.banner-btn.secondary {
  background-color: var(--color-boton-hover);
  margin-right: 0;
}
.banner-btn:hover {
  opacity: 0.9;
}

/* SECCIONES GENERALES */
.section {
  padding: 3em 0;
  background: #f9f9f9;
}
.section:nth-child(even) {
  background: #fff;
}
.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.8em;
}
.section p {
  max-width: 800px;
  margin: 0 auto 1.8em auto;
  color: var(--color-texto-secundario);
  font-size: 1.1rem;
  line-height: 1.5;
}

/* SERVICIOS */
.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
  gap: 1em;           /* Ajusta el valor para menor separación */
  width: 100%;
}
.service-item {
  min-width: 0;
  background: white;
  padding: 1.5em;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  text-align: center;
  transition: box-shadow .2s;
}
.service-item h3 {
  margin-top: 1.5em;
  color: var(--color-primario);
}
.service-item p {
  font-size: 1rem;
  color: var(--color-texto-secundario);
}
.service-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}

/* RESPONSIVE GRID PARA SERVICIOS */
@media (max-width: 1024px) {
  .services-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .services-list {
    grid-template-columns: 1fr;
  }
}

/* GALERÍA */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.gallery img {
  width: 260px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.gallery img:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* MAPA */
#mapa {
  max-width: 100%;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1.2em;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* FOOTER */
footer#footer {
  background-color: var(--color-fondo-topbar);
  padding: 1em 0;
  text-align: center;
  color: var(--color-texto-secundario);
}
#footer p {
  margin-bottom: 0.4em;
}
#footer a {
  color: var(--color-primario);
  text-decoration: none;
  font-weight: 700;
}
#footer a:hover {
  text-decoration: underline;
}

/* WHATSAPP BURBUJA */
.whatsapp-bubble {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--color-whatsapp);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  z-index: 999;
  background-image: url('../assets/WhatsApp.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 35px 35px;
  transition: transform 0.3s;
}
.whatsapp-bubble:hover {
  transform: scale(1.1);
  cursor: pointer;
}

/* SECCIÓN CONÓCENOS */
.conocenos-section {
  background: #fff;
}
.conocenos-flex {
  display: flex;
  gap: 2.5em;
  align-items: center;
  justify-content: center;
}
.conocenos-img {
  flex: 0 0 340px;
  max-width: 340px;
}
.conocenos-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 7px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
}
.conocenos-info {
  flex: 1 1 0px;
  padding: 0;
}
.conocenos-titulo {
  color: #777777;
  font-weight: bold;
  font-size: 1.15em;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 16px;
}
.conocenos-info h2 {
  font-size: 2.3em;
  margin-bottom: 18px;
  font-weight: bold;
}
.conocenos-info p {
  font-size: 1.1em;
  color: var(--color-texto-secundario);
  margin-bottom: 18px;
  line-height: 1.7;
}

/* CTA SECCIÓN */
.cta-section {
  background: var(--color-primario);
  color: white;
  text-align: center;
  padding: 4em 0;
}
.cta-section h2 { color: white; font-size: 2.5em; margin-bottom: 0.5em; }
.cta-section p { color: #f5f5f5; font-size: 1.25em; margin-bottom: 2em; }
.cta-btn {
  display: inline-block;
  padding: 0.9em 2em;
  border-radius: 8px;
  background: var(--color-secundario);
  color: white;
  font-size: 1.15em;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}
.cta-btn:hover { background: #3577d8; }

/* CONTACTO INFO */
.contact-info {
  display: flex;
  gap: 2em;
  justify-content: center;
  margin-bottom: 2em;
  flex-wrap: wrap;
}
.contact-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 2em 1.5em;
  min-width: 220px;
  text-align: center;
  flex: 1 1 220px;
}
.contact-card h3 {
  color: var(--color-primario);
  margin-bottom: 0.7em;
}
.contact-card a {
  color: var(--color-primario);
  text-decoration: none;
  font-weight: 700;
}
.contact-card a:hover { text-decoration: underline; }

/* RESPONSIVE - ADAPTA DISEÑO SEGÚN ANCHO */
@media (max-width: 1024px) {
  #banner { min-height: 300px; }
  #banner .container { max-width: 95vw; padding-bottom: 40px; }
  .services-list { grid-template-columns: repeat(2, 1fr);}
}

@media (max-width: 900px) {
  #header .container { position: relative; }
  .burger-menu { display: flex; }
  #nav ul {
    display: none !important;
    position: absolute;
    top: 70px;
    right: 14px;
    background: #fff;
    flex-direction: column;
    width: 180px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.09);
    border-radius: 8px;
    padding: 18px 0;
    gap: 0.5em;
    z-index: 1010;
  }
  #nav ul.active { display: flex !important; }
  #logo img { height: 80px; }
  .conocenos-flex { flex-direction: column; gap: 1.5em; text-align: center; }
  .conocenos-img, .conocenos-info { max-width: 95vw; padding: 0; }
  .conocenos-info h2 { font-size: 1.4em; }
}

@media (max-width: 700px) {
  .services-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  #logo img { height: 50px; }
  #nav ul { top: 60px; right: 8px; width: 150px; }
  .burger-menu { height: 36px; width: 38px; }
  .banner-btn { margin-bottom: 0.8em; display: inline-block; }
  #banner .container { padding-bottom: 20px; }
  .conocenos-img { max-width: 100vw; margin: 0 auto; }
  .conocenos-info h2 { font-size: 1.1em; }
  #topbar .container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
  }
  .topbar-left, .topbar-right {
    width: 100%;
    text-align: center;
    margin-bottom: 2px;
  }
  .topbar-right a {
    margin-left: 12px;
    margin-right: 0;
  }
}

/* BURGER MENÚ */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  height: 40px;
  width: 48px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  margin-left: 12px;
}
.burger-menu span {
  display: block;
  height: 5px;
  width: 32px;
  background: var(--color-primario);
  border-radius: 3px;
  margin: 5px 0;
  transition: all 0.3s;
}
@media (min-width: 901px) {
  #nav ul {
    display: flex !important;
    position: static;
    flex-direction: row;
    gap: 1.5em;
    box-shadow: none;
    width: auto;
    background: none;
    padding: 0;
  }
  .burger-menu {
    display: none !important;
  }
}

/* ENCABEZADO DE SERVICIOS */
.contenido-servicios {
  max-width: 100%;
  margin: 0 auto;
}
.servicios-header {
  display: flex;
  align-items: center;
  gap: 2em;
  margin-bottom: 2em;
}
.servicios-header img {
  width: 40%;
  max-width: 350px;
  border-radius: 16px;
  object-fit: cover;
}
.servicios-header .servicios-texto {
  flex: 1;
}
@media (max-width: 900px) {
  .contenido-servicios {
    max-width: 100%;
  }
  .servicios-header {
    flex-direction: column;
    text-align: center;
  }
  .servicios-header img {
    width: 100%;
    max-width: 340px;
    margin-bottom: 1em;
  }
}

@media (max-width: 900px) {
  .burger-menu {
    display: flex !important;
  }
}
@media (min-width: 901px) {
  .burger-menu {
    display: none !important;
  }
}

.section h2,
.section p {
  text-align: center !important;
}


.boton-cotizacion {
    display: inline-block;
    padding: 15px 30px;
    background-color: #e91e63 !important; /* Color de fondo magenta original */
    color: #ffffff !important;            /* Texto blanco forzado */
    text-decoration: none;
    border-radius: 8px;
    font-family: sans-serif;
    font-weight: bold;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.boton-cotizacion:hover {
    background-color: #E2004C !important; /* Fondo rojo al pasar el cursor */
    cursor: pointer;
    color: #ffffff !important;            /* Asegura que el texto permanezca blanco */
}


