/* RESET Y BASES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #8BC5A6;
  --secondary: #F2B5C4;
  --text: #333;
  --bg-light: #fafafa;
  --white: #ffffff;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.italic { font-family: 'Playfair Display', serif; font-style: italic; }

/* LOGOS */
.logo-wrapper {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.logo-wrapper.small { width: 55px; height: 55px; }
.logo-wrapper img { width: 85%; }

/* PRELOADER */
#preloader {
  position: fixed; inset: 0;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease;
}

.preload { animation: pulse 1.5s infinite ease-in-out; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

/* HEADER */
.header {
  position: fixed; top: 0; width: 100%;
  padding: 20px 50px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  padding: 10px 50px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.header nav a {
  margin-left: 30px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.3s;
}

.nav-quote {
  background: var(--primary);
  color: white !important;
  padding: 8px 20px;
  border-radius: 25px;
}

/* HERO - CORREGIDO PARA PANTALLA COMPLETA */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* Ocupa el 100% de la altura de la pantalla */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
  text-align: center;
  margin: 0;
  padding: 0;
}

.hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%); /* Centra el video perfectamente */
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* Ahora sí cubre todo el ancho */
  height: 100%; /* Ahora sí cubre todo el alto */
  background: linear-gradient(135deg, rgba(139,197,166,0.75), rgba(242,181,196,0.75));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1;
}

/* Ajuste opcional para que el texto resalte más sobre los colores */
.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 15px;
  font-weight: 600;
  text-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Asegurar que el body no tenga márgenes que molesten */
body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

.btn-main {
  padding: 15px 35px;
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-main:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* SECCIONES GENERALES */
section { padding: 100px 10%; }
h2 { font-size: 2.5rem; margin-bottom: 20px; }
.section-subtitle { color: var(--primary); text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; font-weight: 600; }

/* SERVICIOS */
.services { text-align: center; background: var(--white); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px; margin-top: 50px;
}

.card {
  padding: 40px;
  border-radius: 30px;
  background: var(--white);
  transition: var(--transition);
  border: 1px solid #f0f0f0;
}

.card:hover { transform: translateY(-10px); border-color: var(--secondary); }

.bubble {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.bubble img { width: 100%; height: 100%; object-fit: cover; }

/* ABOUT */
.about { background: var(--bg-light); }
.about-container {
  display: flex; align-items: center; gap: 80px; flex-wrap: wrap;
}

.about-img { position: relative; flex: 1; min-width: 300px; }
.about-img img { width: 100%; border-radius: 30px; position: relative; z-index: 2; }
.img-deco {
  position: absolute; top: 20px; left: -20px;
  width: 100%; height: 100%;
  border: 2px solid var(--primary);
  border-radius: 30px; z-index: 1;
}

.about-text { flex: 1.2; min-width: 300px; }

/* PROYECTOS */
.projects { text-align: center; }
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; margin-top: 40px;
}

.project-card {
  position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 1;
}

.project-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.project-hover {
  position: absolute; inset: 0; background: rgba(139,197,166,0.9);
  display: flex; align-items: center; justify-content: center;
  color: white; opacity: 0; transition: 0.4s;
}

.project-card:hover img { transform: scale(1.1); }
.project-card:hover .project-hover { opacity: 1; }

/* CONTACTO */
.contact { text-align: center; }
.contact-box {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 80px 40px; border-radius: 40px; color: white;
}

.mail-btn {
  display: inline-block; margin-top: 30px;
  color: white; text-decoration: none; font-weight: 600;
  border-bottom: 2px solid white; padding-bottom: 5px;
}

/* WHATSAPP */
.whatsapp-btn {
  position: fixed; bottom: 30px; right: 30px;
  display: flex; align-items: center; z-index: 1000; text-decoration: none;
}

.wa-circle {
  width: 60px; height: 60px;
  background: white; color: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.wa-tooltip {
  background: var(--text); color: white; padding: 5px 15px;
  border-radius: 10px; margin-right: 15px; font-size: 0.8rem;
  opacity: 0; transform: translateX(20px); transition: var(--transition);
}

.whatsapp-btn:hover .wa-tooltip { opacity: 1; transform: translateX(0); }
.whatsapp-btn:hover .wa-circle { background: var(--primary); color: white; }

/* ANIMACIONES */
.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .header { padding: 15px 20px; }
  .header nav { display: none; } /* Podés agregar un menú mobile después */
  section { padding: 60px 5%; }
}