/* Estilos generales */

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Header Styles */

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #333;
  height: 60px;
  box-sizing: border-box;
}

.main-header .logo {
  display: flex;
  align-items: center;
}

.main-header img {
  display: block;
  height: 50px;
  width: auto;
}

.main-header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-header nav a {
  color: #2ddfff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  font-size: 1rem;
  line-height: 30px;
}

.main-header nav a:hover {
  color: #fff;
}

/* Hero Section */

.hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  background: url('../../assets/img/remodelaciones-heredia.webp') center/cover no-repeat;
  height: calc(100vh - 50px);
  color: white;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 50%;
  margin-right: 10px;
  margin-left: 2%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-buttons {
  margin-top: 20px;
}

.cta-buttons a {
  display: block;
  margin: 10px auto;
  width: 70%;
  text-align: center;
  padding: 12px 20px;
  background-color: #2ddfff;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s ease, color 0.3s ease;
}

.cta-buttons a:hover {
  background-color: #2ddfff;
  color: #000;
}

.cta-button-container {
  margin-top: 20px;
  text-align: center;
}

/* Campos de entrada */

.form-container input[type="text"], .form-container input[type="tel"], .form-container textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  box-sizing: border-box;
  font-size: 1rem;
  transition: border 0.3s ease-in-out;
}

/* Ajuste del formulario en PC */

.form-container {
  position: absolute;
  top: 10%;
  right: 5%;
  transform: translateY(0);
  width: 100%;
  max-width: 400px;
  padding: 20px 25px;
  border-radius: 10px;
  z-index: 10;
  box-sizing: border-box;
}

/* Ajustes Responsivos para Móviles */

@media (max-width: 768px) {
  .form-container {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    margin: 20px auto;
    width: 95%;
    max-width: 95%;
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .form-container input[type="text"], .form-container input[type="tel"], .form-container textarea {
    padding: 10px;
  }
}

/* Contenedor general */

.container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  padding: 1.25rem;
  margin: 0 auto;
  display: flex;
  gap: 20px;
}

.text-content, .image-content {
  flex: 1 1 50%;
}

.text-content h2 {
  color: #FFF;
}

.image-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.image-content {
  flex: 1 1 40%;
  text-align: center;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin-bottom: 10px;
}

/* Contenedor general */

.container {
  display: flex;
  margin: 0 auto;
  max-width: 1200px;
  padding: 1.25rem;
  align-items: center;
}

/* Secciones */

.section {
  padding: 60px 20px;
}

/* Contenido */

.text-content {
  flex: 1 1 50%;
  padding: 1.25rem;
}

.image-content {
  flex: 1 1 40%;
  text-align: center;
}

.image-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin-bottom: 10px;
}

.section.overlay {
  background: url('media/remodelacion-cocina.webp') center/cover no-repeat;
  background-color: rgba(0, 0, 0, 0.6);
  background-blend-mode: overlay;
  color: #fff;
}

/* Sección Servicios */

#servicios {
  background: url('../../assets/img/Abrillantados/reparacion%20de%20techos%20(2).webp') center/cover no-repeat;
  background-color: rgba(0, 0, 0, 0.7);
  background-blend-mode: overlay;
  color: #fff;
}

/* Sección Tipos de Cámaras */

#fondoblanco {
  background-color: #f4f4f4;
  color: #333 !important;
}

#fondoblanco h2 {
  color: #000;
}

/* Sección Marcas y Tecnologías */

#marcas-tecnologias {
  background-color: #ffffff;
  color: #333 !important;
}

#marcas-tecnologias h2 {
  color: #000;
}

/* Sección Contacto */

.contact {
  background-color: #00a859;
  color: #FFF;
  text-align: center;
}

.contact ul li {
  font-size: 1.2em;
  font-weight: bold;
}

.contact p {
  margin: 10px 0;
}

/* Footer */

.footer {
  background-color: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.footer a {
  color: #a2f1ff;
  text-decoration: none;
}

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

.map-container {
  position: relative;
  width: 100%;
  height: 450px;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #000;
  padding: 10px 5px;
  color: white;
  font-family: 'Roboto', Arial, sans-serif;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 999;
  flex-wrap: wrap;
}

.contact-bar a {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: black;
  font-weight: bold;
  transition: transform 0.3s ease;
  background-color: #2ddfff;
  padding: 8px 12px;
  border-radius: 5px;
  margin: 5px;
  flex: 1 1 auto;
  text-align: center;
  min-width: 100px;
}

.contact-bar a:hover {
  transform: scale(1.05);
  background-color: #000;
  color: #000000;
}

.contact-bar img {
  width: 20px;
  height: 20px;
  filter: invert(0);
}

.contact-bar span {
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Ajuste de botones en pantallas pequeñas */

@media (max-width: 768px) {
  .contact-bar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 5px 0;
  }
}

@media (max-width: 768px) {
  .contact-bar a {
    flex: 0 0 48%;
    max-width: 48%;
    margin: 5px 1%;
    padding: 11px;
    font-size: 1rem;
    justify-content: center;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .contact-bar a:nth-child(3) {
    flex: 0 0 98%;
    max-width: 98%;
  }
}

@media (max-width: 768px) {
  .contact-bar img {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 768px) {
  .contact-bar span {
    font-size: 14px;
  }
}

/* Responsivo */

@media (max-width: 768px) {
  .text-content, .image-content {
    flex: 1 1 100% !important;
    margin-bottom: 20px !important;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column !important;
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .hero-content {
    max-width: 98% !important;
  }
}

@media (max-width: 768px) {
  .main-header {
    flex-direction: row;
    justify-content: space-between;
    height: auto;
  }
}

@media (max-width: 768px) {
  .main-header nav {
    flex: 1;
    justify-content: space-between;
    margin-top: 0;
    margin-left: 10%;
  }
}

@media (max-width: 768px) {
  .main-header nav a {
    font-size: 0.9rem;
  }
}

/* linea de tiempo como comprar */

/* Estilos para la línea de tiempo moderna */

.timeline-modern {
  padding: 60px 20px;
  background-color: #f9f9f9;
  font-family: Arial, sans-serif;
}

.timeline-modern h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.2em;
  color: #333;
}

.timeline-modern p {
  text-align: center;
  margin-bottom: 40px;
  color: #666;
  font-size: 1.1em;
}

.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, #2DDFFF, #2DDFFF 50%, #ddd 50%);
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px;
  position: relative;
  text-align: center;
}

.timeline-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(to bottom, #ffdd2d, #c29700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  color: white;
  font-weight: bold;
  position: relative;
  z-index: 2;
}

.timeline-content {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 80%;
  position: relative;
  z-index: 1;
}

.timeline-content h3 {
  margin: 0 0 10px;
  font-size: 1.5em;
  color: #2DDFFF;
}

.timeline-content p {
  margin: 0;
  color: #555;
}

.timeline-item:nth-child(odd) .timeline-content {
  align-self: flex-start;
}

.timeline-item:nth-child(even) .timeline-content {
  align-self: flex-end;
}

