/*
  Theme Name: MD Válvulas
  Theme URI: https://mdvalvulas.com/
  Description: Tema para MD Válvulas
  Author: Tom Glz
  Author URI: https://github.com/TomGlz
  Version: 1.0
*/

/* VARIABLES */
:root {
  --blue: #1B6BAD;
  --blue-dark: #124e82;
  --white: #FFFFFF;
  --gray: #F2F4F6;
  --accent: #F59E0B;
  --text-dark: #1F2937;
}

/* RESET */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:"Montserrat", sans-serif;
}

body{
  font-size:16px;
  color:var(--text-dark);
  background:var(--white);
}

html{
  scroll-behavior:smooth;
}

a,a:hover{
  text-decoration:none;
  color:inherit;
}

button,button:active,button:focus{
  border:none;
  outline:none;
  background-color:inherit;
}
section{overflow: hidden;}
.bg-blue{background-color: var(--blue);}
.bg-darkblue{background-color: var(--blue-dark);}
.text-blue{color: var(--blue);}
.text-accent{color: var(--accent);}

/* =========================
HEADER
========================= */

.site-header .navbar{
  background:var(--white);
  padding:0.8rem 0;
  border-bottom:1px solid #e5e7eb;
}

.navbar-brand img{
  max-height:100px;
}


.navbar .nav-link{
  color:var(--blue);
  font-weight:500;
  padding:.5rem 1rem;
  transition:.25s;
  position:relative;
}

/* underline animation */
.navbar .nav-link::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-6px;
  width:0;
  height:2px;
  background:var(--accent);
  transform:translateX(-50%);
  transition:width .3s ease;
}

.navbar .nav-link:hover::after{
  width:60%;
}

/* keep underline on active page */
.navbar .nav-link.active::after{
  width:60%;
}

.navbar .nav-link:hover,
.navbar .nav-link.active{
  color:var(--blue);
}

/* BOTON PRINCIPAL */

.btn-accent{
  background-color:var(--accent);
  color:var(--white);
  font-weight:500;
  padding:.45rem 1.2rem;
  border-radius:.5rem;
  border:none;
  transition:.25s;
  box-shadow:0 4px 10px rgba(245,158,11,.35);
}

.btn-accent:hover{
  background-color:#e08e0a;
  color:var(--white);
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(245,158,11,.45);
}

/* =========================
HERO
========================= */

.hero{
  height:80vh;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
}

.hero-bg{
  width:100%;
  height:100%;
  object-fit:cover;
  position:absolute;
  inset:0;
  filter:brightness(.65);
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    90deg,
    rgba(27,107,173,.9) 0%,
    rgba(27,107,173,.7) 40%,
    rgba(27,107,173,.3) 70%,
    rgba(27,107,173,.1) 100%
  );
}

.hero .container{
  position:relative;
  z-index:2;
  color:white;
}

.hero h1{
  font-size:2.6rem;
  font-weight:700;
  margin-bottom:1rem;
  animation:fadeUp 1.2s ease forwards;
}

.hero p{
  font-size:1.15rem;
  max-width:650px;
  animation:fadeUp 1.6s ease forwards;
}

/* =========================
SECCIONES
========================= */

.section-title{
  font-weight:700;
  position:relative;
  display:inline-block;
}

.section-title::after{
  content:"";
  display:block;
  width:60px;
  height:3px;
  background:var(--accent);
  margin-top:10px;
  border-radius:2px;
}

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

.service-card{
  background:#fff;
  padding:28px;
  border-radius:12px;
  height:100%;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
  transition:all .3s ease;
}

.service-card i{
  font-size:2rem;
  color:var(--blue);
  margin-bottom:10px;
}

.service-card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 40px rgba(0,0,0,.12);
}

/* =========================
FEATURE BOX
========================= */

.feature-box{
  background:#fff;
  border-radius:12px;
  padding:24px;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
  transition:.3s;
  height: 100%;
}

.feature-box:hover{
  transform:translateY(-5px);
}


/* =========================
CLIENTES
========================= */

.client-logo{
  height:60px;
  width:auto;
  max-width:140px;
  object-fit:contain;
  opacity:.7;
  transition:all .3s ease;
}

.client-logo:hover{
  opacity:1;
  transform:scale(1.05);
}

/* FOOTER */
.whatsapp-float{
  position:fixed;
  right:20px;
  bottom:40px;
  width:60px;
  height:60px;
  background:#25D366;
  color:white;
  font-size:28px;
  border-radius:50%;
  z-index:999;
  box-shadow:0 8px 20px rgba(0,0,0,.2);
  transition:.3s;
}

.whatsapp-float:hover{
  transform:scale(1.1);
  color:white;
}

.site-footer a:hover{
  opacity:.8;
}
.whatsapp-float{
  animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse{
  0%{ box-shadow:0 0 0 0 rgba(37,211,102,.6); }
  70%{ box-shadow:0 0 0 15px rgba(37,211,102,0); }
  100%{ box-shadow:0 0 0 0 rgba(37,211,102,0); }
}

/* =========================
ANIMACIONES
========================= */

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(30px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* =========================
MOBILE
========================= */

@media (max-width:991px){

  .btn-accent{
    display:inline-block;
    margin-top:.75rem;
  }

  .hero{
    height:70vh;
  }

  .hero h1{
    font-size:2rem;
  }

  .hero p{
    font-size:1rem;
  }

  .navbar .nav-link:hover::after{
    width:12%;
  }

  .navbar .nav-link.active::after {
    width: 12%;
  }
  .navbar .nav-link::after {
    left: 10%;
    bottom: 2px;
  }
}