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

body {
  font-family: 'Inter', sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.6;
}

/* Contenedor */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================
   HEADER
   ========================== */
.header {
  background: #ffffffe4;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 140px;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #666;
}

/* ==========================
   HERO
   ========================== */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(70%);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
}

#sobre-nosotros, #servicios, #proyectos, #contacto {
  scroll-margin-top: 90px;
}

/* ==========================
   SOBRE NOSOTROS
   ========================== */
.sobre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 0;
  gap: 2rem;
}

.sobre-texto {
  flex: 1;
}

.sobre-texto h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.sobre-img {
  flex: 1;
}

.sobre-img img {
  width: 100%;
  border-radius: 8px;
}

/* ==========================
   SERVICIOS
   ========================== */
.servicios {
  padding: 5rem 0;
  background: #f9f9f9;
  text-align: center;
}

.servicios h2 {
  margin-bottom: 3rem;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.servicio-item {
  background: #fff;
  padding: 2rem;
  border: 1px solid #eee;
  transition: transform 0.3s ease;
}

.servicio-item:hover {
  transform: translateY(-5px);
}

/* ==========================
   PROYECTOS
   ========================== */
.proyectos {
  padding: 5rem 0;
}

.proyectos h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.proyecto {
  position: relative;
  overflow: hidden;
}

.proyecto img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.proyecto:hover img {
  transform: scale(1.05);
}

.proyecto-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.proyecto:hover .proyecto-info {
  transform: translateY(0);
}

/* ==========================
   CONTACTO
   ========================== */
.contacto {
  padding: 5rem 0;
  background: #f9f9f9;
  text-align: center;
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto 0;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  padding: 1rem;
  background: #111;
  color: #fff;
  border: none;
  cursor: pointer;
}

.contact-form button:hover {
  background: #333;
}

/* ==========================
   FOOTER
   ========================== */
.footer {
  background: #111;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}

/* ==== BOTONES FLOTANTES REDES ==== */
.social-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.social-floating a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  color: #fff;
  font-size: 26px;
  text-decoration: none;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Colores oficiales */
.btn-instagram { background: #E4405F; }
.btn-whatsapp  { background: #25D366; }
.btn-youtube   { background: #FF0000; }

.social-floating a:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* =====================================================
   📱 RESPONSIVE – OPTIMIZACIONES PARA MÓVILES
   ===================================================== */

/* ===== HEADER RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .nav ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .logo img {
    width: 110px;
  }
}

/* ===== SECCIÓN SOBRE MÍ RESPONSIVE ===== */
@media (max-width: 768px) {
  .sobre {
    flex-direction: column;
    text-align: center;
  }

  .sobre-img img {
    max-width: 80%;
    margin: 0 auto;
  }
}

/* ===== BOTONES FLOTANTES RESPONSIVE ===== */
@media (max-width: 480px) {
  .social-floating {
    bottom: 15px;
    right: 15px;
    gap: 10px;
  }

  .social-floating a {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

