/* assets/css/styles.css - Estilos Generales y de Contenido */

/* ==================== CONFIGURACIÓN GLOBAL ==================== */
html {
  scroll-behavior: smooth;
  /* Esto evita que el menú tape el título al hacer clic en un enlace */
  scroll-padding-top: 120px; 
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-base, sans-serif);
  color: var(--color-texto, #333);
  background-color: var(--color-fondo, #fff);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== BOTONES GENERALES ==================== */
.btn-llamar {
  display: inline-block;
  background-color: var(--color-principal, #E4002B);
  color: #fff;
  padding: 12px 25px;
  font-weight: bold;
  border-radius: 4px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.btn-llamar:hover {
  background-color: #b00020;
}

/* ==================== HERO INTERNO (Para marca.php) ==================== */
/* Nota: El slider del Home usa slider.css. Esto es solo para las páginas internas */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax */
  height: 60vh; /* Altura para páginas internas */
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); /* Oscurecer imagen para leer texto */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 40px;
  padding-top: 100px; /* Espacio para que el menú no tape */
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero .subtitulo {
  font-size: 20px;
  margin-bottom: 25px;
  color: #f0f0f0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero .nota {
  margin-top: 20px;
  font-size: 12px;
  color: #ccc;
}

/* ==================== SECCIÓN: QUIENES SOMOS ==================== */
.quienes_somos {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.quienes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
}

.quienes-texto {
  flex: 1 1 50%;
}

.quienes-texto h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--color-principal, #E4002B);
}

.quienes-texto p {
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
}

.quienes-imagen {
  flex: 1 1 40%;
  text-align: center;
}

.quienes-imagen img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ==================== SECCIÓN: SERVICIOS (Tarjetas) ==================== */
.servicios-tarjetas {
  padding: 80px 0;
  background-color: #fff;
  text-align: center;
}

.titulo-seccion {
  color: var(--color-azul-oscuro, #1D365E);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
}

.subtitulo-seccion {
  color: #666;
  font-size: 18px;
  margin-bottom: 50px;
}

.tarjetas-servicio {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.tarjeta {
  flex: 1 1 300px;
  max-width: 350px;
  padding: 20px;
}

/* Círculos con Iconos */
.circulo-imagen {
  width: 120px;
  height: 120px;
  margin: 0 auto 25px;
  border-radius: 50%;
  background-color: var(--color-principal, #E4002B);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(228, 0, 43, 0.3);
  transition: transform 0.3s ease;
}

.circulo-imagen:hover {
  transform: scale(1.1);
}

.circulo-icono {
  color: white;
  font-size: 40px;
}

.tarjeta h3 {
  font-size: 22px;
  color: #333;
  font-weight: 700;
  margin-bottom: 15px;
}

.tarjeta p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* ==================== SECCIÓN: INFO TÉCNICA (Marca.php) ==================== */
.servicio-info {
  padding: 80px 0;
}

.servicio-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
}

.servicio-texto {
  flex: 1 1 500px;
}

.etiqueta {
  color: var(--color-principal, #E4002B);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.titulo-servicio {
  font-size: 38px;
  font-weight: 800;
  color: #222;
  margin-bottom: 20px;
  line-height: 1.2;
}

.descripcion {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}

.servicio-imagen {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
}

.imagen-fondo {
  position: relative;
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: center;
}

.imagen-fondo img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

/* ==================== DECORACIÓN ==================== */
.wave-top {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -1px; /* Evita línea blanca */
}

.wave-top svg {
  display: block;
  width: 100%;
  height: 60px;
}

#topButton {
  display: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--color-principal, #E4002B);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 900;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ==================== RESPONSIVE GENERAL ==================== */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll; /* Desactivar parallax en móvil */
    height: auto;
    padding: 60px 0;
    text-align: center;
  }
  
  .hero-content {
    padding: 20px;
    padding-top: 20px;
  }

  .hero h1 { font-size: 32px; }
  
  .quienes-grid, 
  .servicio-grid {
    flex-direction: column;
    text-align: center;
  }
  
  .imagen-fondo img {
    max-width: 80%;
  }
}