/* =========================
   CSS 
========================= */

:root{
--primary:#355777;
--primary-dark:#243b52;
--gold:#c0a44a;
--gold-dark:#a88c35;
--bg:#f4f6f9;
--white:#ffffff;
--text:#1f2937;
--gray:#6b7280;
--radius:18px;
--shadow:0 10px 30px rgba(0,0,0,.08);
--shadow-hover:0 18px 45px rgba(0,0,0,.12);
}

/* RESET */
*{
margin:0;
padding:0;
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body{
font-family:'Poppins',sans-serif;
background:var(--bg);
color:var(--text);
line-height:1.7;
overflow-x:hidden;
}

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

header{
background:linear-gradient(135deg,var(--primary),var(--primary-dark));
padding:16px 40px;
position:sticky;
top:0;
z-index:3000;
box-shadow:0 8px 25px rgba(0,0,0,.12);
}

.navbar{
display:flex;
justify-content:space-between;
align-items:center;
gap:20px;
}

.logo{
display:flex;
align-items:center;
gap:14px;
color:white;
font-weight:700;
font-size:18px;
max-width:75%;
}

.logo-img{
width:70px;
height:70px;
object-fit:cover;
border-radius:14px;
box-shadow:0 8px 20px rgba(0,0,0,.18);
}

/* =========================
MENU FUNCIONAL
========================= */

.menu-toggle{
font-size:28px;
color:white;
cursor:pointer;
transition:.3s;
position:relative;
z-index:900;
}

.menu-toggle:hover{
transform:scale(1.08);
}

.menu{
position: fixed;
top:0;
right:-260px;
width:260px;
height:100vh;
background:linear-gradient(180deg,var(--primary),var(--primary-dark));
list-style:none;
padding-top:90px;
transition:right .35s ease;
z-index: 2000;
box-shadow:-8px 0 25px rgba(0,0,0,.25);
overflow-y:auto;
pointer-events: auto;
}

.menu.active{
right:0;
}

.menu li{
border-bottom:1px solid rgba(255,255,255,.08);
}

.menu a{
display:block;
padding:16px 22px;
color:white;
text-decoration:none;
font-size:15px;
transition:.3s;
}

.menu a:hover{
background:rgba(255,255,255,.08);
padding-left:28px;
}

.menu a i{
margin-right:10px;
}

/* SUBMENU */

.submenu{
display:none;
background:rgba(0,0,0,.18);
}

.dropdown.active .submenu{
display:block;
}

.submenu a{
padding-left:42px;
font-size:14px;
}

.arrow{
float:right;
transition:.3s;
}

.dropdown.active .arrow{
transform:rotate(90deg);
}

/* OVERLAY */

.overlay{
position:fixed;
inset:0;
background:rgba(0,0,0,.45);
opacity:0;
visibility:hidden;
transition:.3s;
z-index: 999;
}

.overlay.active{
opacity:1;
visibility:visible;
}

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

.hero{
background: linear-gradient(rgba(26,39,56,.88),rgba(26,39,56,.88));
background-size:cover;
background-position:center;
min-height:82vh;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
padding:40px 20px;
color:white;
position:relative;
overflow:hidden;
}

.hero-content{
max-width:850px;
animation:fadeUp .8s ease;
}

.hero h1{
font-size:56px;
line-height:1.15;
margin-bottom:18px;
font-weight:800;
}

.hero p{
font-size:21px;
opacity:.95;
margin-bottom:34px;
}

/* BOTONES */

.btn{
display:inline-block;
background:linear-gradient(135deg,var(--gold),var(--gold-dark));
color:white;
padding:14px 32px;
border-radius:999px;
text-decoration:none;
font-weight:700;
transition:.3s;
box-shadow:0 10px 20px rgba(192,164,74,.25);
}

.btn:hover{
transform:translateY(-4px);
box-shadow:0 18px 28px rgba(192,164,74,.35);
}

/* SECCIONES */

.section{
max-width:1200px;
margin:auto;
padding:80px 24px;
}

.section.light{
background:#eef2f7;
max-width:100%;
}

.section h2{
font-size:38px;
text-align:center;
margin-bottom:24px;
color:var(--primary-dark);
font-weight:800;
}

.section p{
color:var(--gray);
}

/* CARDS */

.cards{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:28px;
margin-top:35px;
}

.card,
.testimonial,
.empresa-card{
background:white;
padding:30px;
border-radius:var(--radius);
box-shadow:var(--shadow);
transition:.35s;
}

.card:hover,
.testimonial:hover,
.empresa-card:hover{
transform:translateY(-8px);
box-shadow:var(--shadow-hover);
}

.card i{
font-size:34px;
margin-bottom:18px;
color:var(--gold);
}

/* CONTACTO */

.contact-container,
.empresa-container{
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
align-items:start;
margin-top:35px;
}

.contact-info,
form{
background:white;
padding:30px;
border-radius:var(--radius);
box-shadow:var(--shadow);
}

form{
display:flex;
flex-direction:column;
gap:16px;
}

form input,
form textarea{
padding:14px;
border:1px solid #d6dbe3;
border-radius:12px;
font-size:15px;
}

form textarea{
min-height:140px;
resize:vertical;
}

form button{
border:none;
cursor:pointer;
background:var(--primary);
color:white;
padding:14px;
border-radius:999px;
font-weight:700;
}

form button:hover{
background:var(--primary-dark);
}

/* IMÁGENES */

img{
max-width:100%;
height:auto;
}

.empresa-imagen img,
.mejoras-imagen,
.servicio-imagen,
.personal-imagen,
.asesoria-imagen{
border-radius:18px;
box-shadow:var(--shadow);
}

/* IFRAME */

iframe{
width:100%;
max-width:850px;
border:none;
border-radius:18px;
box-shadow:var(--shadow);
}

/* FOOTER */

footer{
background:linear-gradient(135deg,var(--primary),var(--primary-dark));
color:white;
text-align:center;
padding:32px 20px;
font-size:14px;
margin-top:50px;
}

/* ANIMACIÓN */

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

/* RESPONSIVE */

@media(max-width:992px){

.hero h1{
font-size:44px;
}

.contact-container,
.empresa-container{
grid-template-columns:1fr;
}

}

@media(max-width:768px){

header{
padding:14px 18px;
}

.logo{
font-size:14px;
max-width:78%;
}

.logo-img{
width:56px;
height:56px;
}

.menu{
width:280px;
right:-280px;
}

.menu.active{
right:0;
}

.hero{
min-height:auto;
padding:90px 20px;
}

.hero h1{
font-size:32px;
}

.hero p{
font-size:16px;
}

.section{
padding:60px 18px;
}

.section h2{
font-size:28px;
}

.cards{
grid-template-columns:1fr;
}

.menu li,
.menu ul,
.menu a{
pointer-events:auto;
}

.overlay{
pointer-events:none;
}

.overlay.active{
pointer-events:auto;
}

}
/* =========================
   LOGO MARCA DE AGUA EN HERO
========================= */

.hero {
  position: relative !important;
  overflow: hidden;
}

.hero-watermark {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 450px !important;
  height: 450px !important;
  pointer-events: none;
  z-index: 0;
  display: block !important;
}

.hero-watermark img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  opacity: 0.15;
  filter: none;
  mix-blend-mode: luminosity;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: unset !important;
}

.hero-content {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-watermark {
    width: 260px !important;
    height: 260px !important;
  }
}
