/* ================= RESET BÁSICO ================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* ================= TIPOGRAFÍA ================= */

h1 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
}

h2 {
  font-size: 25px;
  margin: 15px 0 30px 0;
}

h3 {
  text-align: center;
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 30px;
}

h4 {
  font-size: 30px;
  margin: 0 0 15px 0;
}

p {
  font-size: 17px;
  margin: 0 0 15px 0;
}

.contenedor-parrafo-y-boton p{
  max-width: 600px;
}

/* ================= CONTENEDOR GENERAL ================= */

.contenedor {
  max-width: 1280px;
  width: 90%;
  margin: auto;
}

section {
  padding: 80px 0;
}

.barra-navegacion {
  position: sticky;
  top: 0;
  z-index: 1000; 
}


/* ================= HEADER / HERO ================= */
header {
  background: url("img/fondo.jpg") center center / cover no-repeat;
  height: 100vh;
  color: #fff;
}


header.hero {
  background: url("img/fondo.jpg") center center / cover no-repeat;
  height: 100vh;
  color: #fff;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 15px 30px;
  border-radius: 10px;
}

.logo {
  font-size: 22px;
  font-weight: 500;
}

.lista {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 0;
  margin: 0;
}

.icono-instagram {
  width: 26px;
  height: 26px;
}

.lista a {
  text-decoration: none;
  color: #fff;
  font-size: 17px;
}

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

.titular {
  text-align: center;
  margin-top: 150px;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.titular h2{
  margin: 5px 0;
}

.titular a {
  display: inline-block;
  font-size: 14px;
  background: #5cb8ff;
  padding: 18px 30px;
  color: white;
  text-decoration: none;

  margin-top: 25px;
}

/* Ocultar titular cuando no es la primera slide */
.hero.sin-titular .titular {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

/* ================= SOBRE NOSOTROS ================= */

.contenedor-sobrenosotros {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.imagen-sobrenos {
  width: 100%;
  max-width: 500px;
  border-radius: 6px;
}

.contenedor-parrafo-y-boton {
  width: 45%;
}

.contenedor-parrafo-y-boton a {
  display: inline-block;
  margin-top: 20px;
  background: #5cb8ff;
  color: #fff;
  padding: 15px 25px;
  text-decoration: none;
}

/* ================= SERVICIOS ================= */

.contenedor-servicios {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.servicio {
  width: 48%;
  padding: 40px;
  border-radius: 10px;
  color: #fff;

  display:flex;
  flex-direction: column;
}

.servicio img {
  margin-top: 20px;
  max-width: 70px;
}

.violeta {
  background: #5055df;
}

.celeste {
  background: #40a8fa;
}

.servicio h4 {
  min-height: 60px;
}

.servicio p{
  flex-grow: 1;
}


/* ================= MIS TRABAJOS ================= */

#trabajos p {
  text-align: center;
  font-size: 20px;
}

/* ================= CONTACTO ================= */

#contacto p {
  text-align: center;
  font-size: 20px;
}

.contacto-info {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin: 50px 0 30px 0;
}

.contacto-item h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.contacto-item p,
.contacto-item a {
  font-size: 18px;
  color: #333;
  text-decoration: none;
}

.contacto-item a:hover {
  text-decoration: underline;
}

.contacto-texto {
  text-align: center;
  font-size: 18px;
  margin-top: 30px;
}

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3 ease;
}

.whatsapp-float.activo {
  opacity: 1;
  pointer-events: auto;
}

.whatsapp-float img {
  width: 50px;
}

.formulario-contacto {
  max-width: 600px;
  margin: 60px auto 0 auto;
}

.campo {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.campo label {
  margin-bottom: 8px;
  font-weight: 500;
}

.campo input,
.campo textarea {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
}

.campo textarea {
  resize: vertical;
  min-height: 120px;
}

.formulario-contacto button {
  background: #5cb8ff;
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

.formulario-contacto button:hover {
  background: #468fe0;
}

.mensaje-formulario {
  margin-top: 20px;
  padding: 12px;
  font-size: 14px;
  display: none;
  border-radius: 4px;
}

.mensaje-error {
  background: #ffe5e5;
  color: #b30000;
  display: block;
}

.mensaje-exito {
  background: #e6f7e6;
  color: #1f7a1f;
  display: block;
}


/* ================= FOOTER ================= */

footer {
  background: #1f1f1f;
  color: #fff;
  text-align: center;
  padding: 40px 0;
}


/* botón servicios */
.btn-servicio {
  display: inline-block;
  margin-top: auto;
  padding: 10px 20px;
  background: #3da9fc;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  align-self: flex-start;
}

.btn-servicio:hover {
  background: #1f8ad6;
}

.servicio.celeste .btn-servicio {
  background: #ffffff;
  color: #40a8fa;
  font-weight: 500;
}

.servicio.celeste .btn-servicio:hover{
  background: #e6f4ff;
}

/* ================= HERO CON CARRUSEL ================= */

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Carrusel de fondo */
.hero-carrusel {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 1s ease;
}

.hero-track img,
.hero-track video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Capa oscura */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 2;
}

/* Contenido encima */
.hero-overlay {
  position: relative;
  z-index: 3;
  height: 100%;
}



/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 32px;
  }

  .menu {
    flex-direction: column;
    gap: 20px;
  }

  .contenedor-sobrenosotros {
    flex-direction: column;
    text-align: center;
  }

  .contenedor-parrafo-y-boton {
    width: 100%;
  }

  .contenedor-servicios {
    flex-direction: column;
  }

  .servicio {
    width: 100%;
  }

  .titular {
    margin-top: 120px;
  }
}

.contacto-info {
  flex-direction: column;
  text-align: center;
}

/* ================= MOBILE FINO – INDEX ================= */
@media (max-width: 768px) {

  /* HERO */
  header.hero {
    height: 100vh;
  }

  /* Menú */
  .menu {
    padding: 12px 15px;
    border-radius: 8px;
  }

  .lista {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .lista a {
    font-size: 15px;
  }

  /* Titular del hero */
  .titular {
    margin-top: 100px;
    padding: 0 15px;
  }

  .titular h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .titular h2 {
    font-size: 18px;
  }

  .titular a {
    padding: 14px 22px;
    font-size: 13px;
  }

  /* Secciones */
  section {
    padding: 55px 0;
  }

  p {
    font-size: 16px;
  }
}


/* ==== MOBILE FINO WHATSAPP===*/
@media (max-width: 480px) {

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float img {
    width: 48px;
  }
  
}

/* ================= MOBILE CARRUSEL ================= */
@media (max-width: 768px) {

  .carrusel {
    height: auto;
  }

  .carrusel-slide {
    min-height: 60vh;
  }

  .carrusel-track img {
    height: 60vh;
    object-fit: cover;
  }

  .carrusel-texto,
  .carrusel-contenido {
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 0 10px;
  }

  .carrusel-texto h1,
  .carrusel-texto h2 {
    font-size: 22px;
    line-height: 1.2;
  }

  .carrusel-texto p {
    font-size: 14px;
    line-height: 1.4;
  }
}

/* ===== FIX HERO MOBILE PEQUEÑO (iPhone SE) ===== */
@media (max-width: 480px) {

  header.hero,
  .hero {
    height: 100svh; /* viewport real mobile */
    min-height: 100svh;
  }

  .titular {
    margin-top: 70px;
  }

  .titular h1 {
    font-size: 24px;
  }

  .titular h2 {
    font-size: 16px;
  }

  .hero-track img {
    object-position: center 30%;
  }

  .contenedor {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    box-sizing: border-box;
  }
}

/* ===== FIX OVERFLOW MOBILE PEQUEÑO (ventas) ===== */
@media (max-width: 480px) {
  footer {
    padding: 25px 10px;
    font-size: 14px;
  }
}


