/* =========================
   RESET
========================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins',sans-serif;
  scroll-behavior:smooth;
}

body{
  background:#fffdf7;
  color:#222;
  overflow-x:hidden;
}

/* =========================
   HEADER
========================= */
header{
  width:100%;
  position:fixed;
  top:0;
  left:0;
  z-index:1000;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(10px);
  padding:18px 8%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
}

/* =========================
   LOGO
========================= */
.logo{
  display:flex;
  align-items:center;
  gap:10px;
}

/* IMAGEN */
.logo img{
  width:75px;
  height:75px;
  object-fit:contain;
}

/* TEXTO */
.logo h1{
  position:relative;
  font-size:30px;
  font-weight:800;
  color:#f2a900;
  overflow:hidden;
  line-height:1;
}

/* MELA */
.logo span{
  color:#111;
}

/* BRILLO */
.logo h1::after{
  content:"";
  position:absolute;
  top:0;
  left:-150%;
  width:70px;
  height:100%;

  background:linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,.15),
    rgba(255,255,255,.95),
    rgba(255,255,255,.15),
    transparent
  );

  transform:skewX(-20deg);

  animation:brilloTexto 7s linear infinite;
}

@keyframes brilloTexto{

  0%{
    left:-150%;
  }

  100%{
    left:160%;
  }
}

/* =========================
   NAV
========================= */
nav a{
  text-decoration:none;
  margin-left:28px;
  color:#222;
  font-weight:500;
  transition:.3s;
}

nav a:hover{
  color:#f2a900;
}

/* =========================
   HERO
========================= */
.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:140px 8% 80px;
  background:linear-gradient(to right,#fff7d6,#fffdf7);
  gap:50px;
  flex-wrap:wrap;
}

.hero-text{
  flex:1;
  min-width:300px;
}

.hero-text h1{
  font-size:70px;
  line-height:1.1;
  margin-bottom:20px;
  font-weight:800;
}

.hero-text h1 span{
  color:#f2a900;
}

.hero-text p{
  font-size:18px;
  color:#555;
  margin-bottom:35px;
  max-width:600px;
  line-height:1.7;
}

/* BOTONES */
.buttons{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
}

.btn{
  padding:16px 35px;
  border-radius:50px;
  border:none;
  text-decoration:none;
  font-weight:600;
  transition:.3s;
  cursor:pointer;
}

.btn-primary{
  background:#f2a900;
  color:#fff;
  box-shadow:0 10px 20px rgba(242,169,0,.3);
}

.btn-primary:hover{
  transform:translateY(-3px);
  background:#d89400;
}

.btn-secondary{
  background:#fff;
  color:#222;
  border:2px solid #f2a900;
}

.btn-secondary:hover{
  background:#f2a900;
  color:#fff;
}

/* =========================
   HERO IMAGE
========================= */
.hero-image{
  flex:1;
  min-width:320px;
  display:flex;
  justify-content:center;
}

/* =========================
   CARRUSEL
========================= */
.slider{
  position:relative;
  width:100%;
  max-width:550px;
  height:550px;
  overflow:hidden;
  border-radius:30px;
  box-shadow:0 20px 40px rgba(0,0,0,.15);
}

.slide{
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity 1s ease-in-out;
}

.slide.active{
  opacity:1;
}

/* =========================
   SECCIONES
========================= */
section{
  padding:100px 8%;
}

.section-title{
  text-align:center;
  margin-bottom:60px;
}

.section-title h2{
  font-size:45px;
  color:#111;
  margin-bottom:10px;
}

.section-title p{
  color:#666;
  max-width:700px;
  margin:auto;
  line-height:1.7;
}

/* =========================
   CARDS
========================= */
.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:30px;
}

.card{
  background:#fff;
  border-radius:25px;
  overflow:hidden;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
  transition:.4s;
}

.card:hover{
  transform:translateY(-10px);
}

.card img{
  width:100%;
  height:250px;
  object-fit:cover;
}

.card-content{
  padding:25px;
}

.card-content h3{
  margin-bottom:12px;
  font-size:24px;
}

.card-content p{
  color:#666;
  line-height:1.7;
}

/* =========================
   ABOUT
========================= */
.about{
  display:flex;
  align-items:center;
  gap:60px;
  flex-wrap:wrap;
}

.about img{
  width:100%;
  max-width:500px;
  border-radius:30px;
  box-shadow:0 15px 30px rgba(0,0,0,.12);
}

.about-text{
  flex:1;
  min-width:300px;
}

.about-text h2{
  font-size:50px;
  margin-bottom:20px;
}

.about-text p{
  color:#666;
  line-height:1.9;
  margin-bottom:20px;
}

/* FEATURES */
.features{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:25px;
  margin-top:40px;
}

.feature{
  background:#fff7d6;
  padding:30px;
  border-radius:25px;
}

.feature h3{
  color:#f2a900;
  margin-bottom:10px;
  font-size:22px;
}

/* =========================
   CONTACTO
========================= */
.contact{
  background:#111;
  color:#fff;
  border-radius:40px;
  text-align:center;
  padding:80px 30px;
}

.contact h2{
  font-size:50px;
  margin-bottom:20px;
}

.contact p{
  max-width:700px;
  margin:auto;
  line-height:1.8;
  color:#ddd;
}

.phones{
  margin-top:40px;
  display:flex;
  justify-content:center;
  gap:25px;
  flex-wrap:wrap;
}

.phone{
  background:#f2a900;
  padding:18px 30px;
  border-radius:50px;
  font-size:20px;
  font-weight:600;
  text-decoration:none;
  color:#fff;
  transition:.3s;
  display:flex;
  align-items:center;
  gap:12px;
}

.phone:hover{
  background:#d89400;
  transform:translateY(-4px);
}

.phone img{
  width:40px;
  height:40px;
  object-fit:contain;
}

.whatsapp{
  background:#25D366;
}

.whatsapp:hover{
  background:#1ebe5d;
}

.location{
  margin-top:45px;
}

.direccion{
  font-size:20px;
  margin-bottom:20px;
  color:#ddd;
}

.location-btn{
  background:#fff;
  color:#111;
  text-decoration:none;
  padding:18px 35px;
  border-radius:50px;
  font-size:20px;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:10px;
  transition:.3s;
}

.location-btn:hover{
  background:#f2a900;
  color:#fff;
  transform:translateY(-4px);
}

/* =========================
   FOOTER
========================= */
footer{
    background:#0f0f0f;
    color:#fff;

    padding:60px 20px;

    text-align:center;

    margin-top:80px;
}

.footer-content h2{
    font-size:35px;
    color:#f2a900;

    margin-bottom:15px;
}

.footer-content p{
    color:#ccc;

    margin:10px 0;

    line-height:1.7;
}

.footer-contact{
    margin-top:25px;
}

.footer-dev{
    margin-top:35px;

    border-top:1px solid rgba(255,255,255,.1);

    padding-top:20px;
}

.footer-dev span{
    color:#f2a900;
    font-weight:700;
}


.whatsapp-float{

    position:fixed;

    right:20px;
    bottom:20px;

    width:85px;
    height:85px;

    background:#25D366;

    border-radius:60px;

    display:flex;
    align-items:center;

    overflow:hidden;

    text-decoration:none;

    box-shadow:0 8px 20px rgba(0,0,0,.20);

    z-index:9999;

    transition:0.4s ease;
}

/* AL PASAR EL CURSOR */
.whatsapp-float:hover{

    width:390px;

    background:#1ebe5d;
}

/* ICONO */
.whatsapp-float img{

    width:50px;
    height:50px;

    object-fit:contain;

    margin-left:18px;

    flex-shrink:0;
}

/* TEXTO */
.whatsapp-float span{

    color:#fff;

    font-size:15px;
    font-weight:600;

    margin-left:18px;

    opacity:0;

    transition:0.3s ease;

    white-space:nowrap;
}

/* MOSTRAR TEXTO */
.whatsapp-float:hover span{

    opacity:1;
    visibility:visible;
}

/* ========================= 
   RESPONSIVE
========================= */
@media(max-width:900px){

  .hero-text h1{
    font-size:50px;
  }

  .about-text h2,
  .section-title h2,
  .contact h2{
    font-size:38px;
  }

  nav{
    display:none;
  }

  .slider{
    height:400px;
  }
}

/* =========================
   WHATSAPP MOVIL
========================= */

@media(max-width:768px){

    .whatsapp-float{

        width:75px !important;
        height:75px !important;

        border-radius:50%;

        justify-content:center;

        padding:0;
    }

    .whatsapp-float:hover{

        width:75px;
    }

    .whatsapp-float span{
        display:none;
    }

    .whatsapp-float img{

        width:45px;
        height:45px;

        margin-left:0;
    }
}
