﻿/* ==== BASE ==== */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

h2 { 
  font-weight: 600; 
  color: var(--text); 
}

h2{
  position: relative;
  display: inline-block;
}
h2::after{
  content:"";
  display:block;
  width:64px;
  height:3px;
  background: var(--brand);
  margin-top:10px;
  border-radius:999px;
}

 

  /* ==== HERO ==== */
  .hero {
    height: 60vh;
    background: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    color: var(--text);
    margin-top: var(--header-height);
  }
  
  .hero-content {
    max-width: 800px;
  }
  
  .hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
  }
  
  .hero p {
    font-size: 1.1rem;
    color: #555;
  }

.hero.hero-photo {
  position: relative;
  overflow: hidden;
  background-position: center !important;
  background-size: cover !important;
}

.hero.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.hero.hero-photo .hero-content {
  position: relative;
  z-index: 1;
}

.hero.hero-photo h1 {
  color: #fff;
}

.hero.hero-photo p {
  color: rgba(255, 255, 255, 0.9);
}

/* ==== TÍTULOS ==== */
.section-title {
  text-align: center;
  background-color: #fff;
  padding: 80px 20px 60px;
}

.section-title h1,
.section-title h2 {
  text-transform: uppercase;
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.section-title h1 {
  font-size: 2.4rem;
}

.section-title h2 {
  font-size: 2rem;
  margin-top: 10px;
  color: #444;
}

.section-title p {
  max-width: 850px;
  margin: 20px auto 10px;
  line-height: 1.7;
  font-size: 1.1rem;
  color: #555;
  font-style: italic;
}

/* ==== SECCIONES ==== */
.section,
.section-alt {
  padding: 80px 10%;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.section-alt {
  background-color: #f8f8f8;
}

.section-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.section-content.reverse {
  flex-direction: row-reverse;
}

.text {
  flex: 1;
}

.text h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text);
}

.text p {
  color: #555;
  line-height: 1.7;
  font-size: 1.05rem;
}

.image {
  flex: 1;
}

.image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ==== GALERÍA ==== */
.galeria {
  text-align: center;
  padding: 80px 5%;
}

.galeria h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.grid-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.grid-galeria img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.grid-galeria img:hover {
  transform: scale(1.03);
}

/* ==== FOOTER ==== */
.footer {
  text-align: center;
  padding: 40px 20px;
  background: #333;
  font-size: 0.95rem;
  color: #f5f5f5;
}

/* ==== SCROLL REVEAL ==== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- HERO BLANCO Y CONTRASTE ENTRE SECCIONES --- */
.hero {
  background-color: #ffffff !important;   /* hero completamente blanco */
  color: #1e1e1e;
  padding: 140px 10% 100px;         /* espacio suficiente bajo header */
}

/* sección siguiente (contraste gris claro) */
.espacios {
  background: #f7f7f7;              /* gris claro para notar el cambio */
  padding: 80px 8%;
}

/* alterna fondos automáticamente si quieres mantener el contraste en todo */
section:nth-of-type(odd){
  background: #ffffff;
}
section:nth-of-type(even){
  background: #f7f7f7;
}

/* evita que el header tape el inicio al hacer anchor links */
:root { --header-height: 80px; }
section { scroll-margin-top: calc(var(--header-height) + 20px); }
