﻿/* ============================= */
/* RESET */
/* ============================= */

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body{
  font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;
  background:#fff;
  color:#000;
  line-height:1.5;
  padding-top:64px;
}

.container{
  width:1100px;
  margin:auto;
  padding:0 20px;
}

/* ============================= */
/* NAVBAR */
/* ============================= */

.navbar{
  position:fixed;
  top:0;
  width:100%;
  height:64px;
  background:#000;
  z-index:1000;
}

.nav-content{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:100%;
}

.nav-content nav{
  display:flex;
  gap:8px;
  justify-content:center;
  flex:1;
}

.logo img{
  height:34px;
  display:block;
  margin-right:32px;
}

nav a{
  margin-left:24px;
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  color:#fff;
  transition:opacity .2s ease;
}

nav a:hover{
  opacity:.7;
}

/* NAV DROPDOWN */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 24px;
}

.nav-dropdown-trigger {
  margin-left: 0 !important;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding-top: 20px;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1100;
  min-width: 190px;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  inset: 20px 0 0 0;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  z-index: -1;
}

.nav-dropdown-menu > * {
  position: relative;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: #bbb !important;
  margin-left: 0 !important;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  opacity: 1 !important;
}

.nav-dropdown-menu a:hover {
  background: #1e1e1e;
  color: #fff !important;
  opacity: 1 !important;
}

/* ─── MEGA MENU PRODUCTOS ─── */
.nav-mega-menu { min-width: 520px; }
.nav-mega-menu .mega-inner { display: flex; padding: 16px 8px; }
.mega-col { flex: 1; padding: 0 14px; border-right: 1px solid #222; }
.mega-col:last-child { border-right: none; }
.mega-col-title {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #ffffff;
  padding: 2px 0 10px; margin-bottom: 4px; border-bottom: 1px solid #1e1e1e;
}
.mega-col-title--ts { color: #c9a800; }
.mega-ts-btn,
.nav-dropdown-menu a.mega-ts-btn {
  display: inline-flex !important; align-items: center; gap: 6px;
  margin-top: 8px; background: #ffe600; color: #000 !important;
  border-radius: 8px; padding: 8px 14px !important;
  font-size: 12.5px !important; font-weight: 700 !important; text-decoration: none;
}
.mega-ts-btn:hover,
.nav-dropdown-menu a.mega-ts-btn:hover { background: #ffd700 !important; color: #000 !important; opacity: 1 !important; }

/* ─── CARRITO NAVBAR ─── */
.nav-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  transition: opacity .2s;
}
.nav-cart-link:hover { opacity: .7; }
.cart-count {
  display: none;
  position: absolute;
  top: -7px;
  right: -10px;
  background: #ffe600;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
}

.btn-compra-facil{
  background:#ffe600;
  color:#000;
  padding:6px 18px;
  border-radius:10px;
  font-weight:700;
  text-decoration:none;
  margin-left:12px;
  transition:all .25s ease;
  position:relative;
  overflow:hidden;
}

.btn-compra-facil:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(255,230,0,0.45);
}

.btn-compra-facil::after{
  content:"";
  position:absolute;
  top:0;
  left:-120%;
  width:120%;
  height:100%;
  background:linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.6),
    transparent
  );
  transition:all .6s;
}

.btn-compra-facil:hover::after{
  left:120%;
}

.user-box{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:1px;
}

.login-btn{
  background:#fff;
  border:none;
  padding:8px 14px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
}


nav {
  display: flex;
  align-items: center;
  gap: 15px;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}



/* ============================= */
/* MAIN */
/* ============================= */

.calidades-main{
  padding:30px 0 30px;
}

.cf-step-section{
  display:block;
}

.cf-step-header{
  margin-bottom:35px;
  max-width:650px;
}

.cf-step-kicker{
  font-size:12px;
  text-transform:uppercase;
  color:#999;
}

.cf-step-header h2{
  font-size:32px;
  margin:8px 0;
}

.cf-step-header p{
  color:#555;
  line-height:1.6;
}

/* ============================= */
/* CALIDADES */
/* ============================= */

.cf-calidades-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.cf-calidad-card{
  background:#fff;
  border-radius:22px;
  padding:26px;
  border:2px solid #e9e9e9;
  cursor:pointer;
  transition:.25s ease;
  position:relative;
  min-height:280px;
  display:flex;
  flex-direction:column;
}

.cf-calidad-card:hover{
  transform:translateY(-5px);
  box-shadow:0 14px 34px rgba(0,0,0,0.08);
}

.cf-calidad-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}

.cf-calidad-tag{
  font-size:11px;
  font-weight:700;
  letter-spacing:1px;
  color:#777;
}

.cf-calidad-check{
  display:none;
  font-size:18px;
  font-weight:700;
}

.cf-calidad-card h3{
  font-size:30px;
  margin-bottom:10px;
  line-height:1;
}

.cf-calidad-card p{
  font-size:14px;
  color:#555;
  line-height:1.6;
  margin-bottom:18px;
}

.cf-calidad-card ul{
  padding-left:18px;
  margin-top:auto;
}

.cf-calidad-card li{
  font-size:14px;
  color:#444;
  margin-bottom:8px;
  line-height:1.4;
}

.cf-calidad-card.selected .cf-calidad-check{
  display:block;
}

.cf-calidad-card.pro.selected{
  background:#ff6400;
  border-color:#ff6400;
  color:#000;
}

.cf-calidad-card.pro.selected p,
.cf-calidad-card.pro.selected li,
.cf-calidad-card.pro.selected .cf-calidad-tag,
.cf-calidad-card.pro.selected .cf-calidad-check{
  color:#000;
}

.cf-calidad-card.elite.selected{
  background:#ffe600;
  border-color:#ffe600;
  color:#000;
}

.cf-calidad-card.elite.selected p,
.cf-calidad-card.elite.selected li,
.cf-calidad-card.elite.selected .cf-calidad-tag,
.cf-calidad-card.elite.selected .cf-calidad-check{
  color:#000;
}

.cf-calidad-card.legend.selected{
  background:#7b3fcf;
  border-color:#7b3fcf;
  color:#fff;
}

.cf-calidad-card.legend.selected p,
.cf-calidad-card.legend.selected li,
.cf-calidad-card.legend.selected .cf-calidad-tag,
.cf-calidad-card.legend.selected .cf-calidad-check{
  color:#fff;
}

/* ============================= */
/* VISOR DE CALIDAD */
/* ============================= */

.visor-calidad{
  margin-top:28px;
  background:#fff;
  border:2px solid #eee;
  border-radius:24px;
  padding:28px;
  display:none;
  transition:.25s ease;
}

.visor-calidad.active{
  display:block;
}

.visor-calidad.pro{
  border-color:#ff6400;
}

.visor-calidad.elite{
  border-color:#ffe600;
}

.visor-calidad.legend{
  border-color:#7b3fcf;
}

.visor-calidad-header{
  margin-bottom:22px;
}

.visor-tag{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  letter-spacing:1px;
  color:#777;
  margin-bottom:8px;
}

.visor-calidad h3{
  font-size:30px;
  line-height:1;
  margin-bottom:10px;
}

.visor-calidad p{
  font-size:14px;
  color:#555;
  line-height:1.6;
  max-width:760px;
}

.visor-galeria{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.visor-galeria img{
  width:100%;
  height:340px;
  object-fit:cover;
  border-radius:18px;
  display:block;
  background:#f7f7f7;
  border:1px solid #eee;
  transition:.25s ease;
}

.visor-galeria img:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 28px rgba(0,0,0,0.10);
}

/* ============================= */
/* FOOTER */
/* ============================= */

.cf-footer{
  background:#111;
  color:#aaa;
  text-align:center;
  padding:30px 0;
  margin-top:60px;
  font-size:13px;
}       





.footer {
  background: #000;
  color: #fff;
  padding: 120px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 12px;
  font-size: 14px;
  color: #ccc;
}

.footer-col a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
  color: #777;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}



/* CTA PRESUPUESTADOR */

.visor-cta{
margin-top:32px;
display:flex;
justify-content:center;
}

/* BOTON MINIMAL */

.btn-presupuestar{

padding:12px 26px;

border:1.5px solid #111;
border-radius:999px;

font-size:14px;
font-weight:500;

color:#111;
background:transparent;

text-decoration:none;

transition:all .25s ease;

}

/* HOVER */

.btn-presupuestar:hover{

background:#111;
color:#fff;

transform:translateY(-1px);

}


.user-box{
display:flex;
align-items:center;
gap:10px;
margin-left:1px;
opacity:0;
transition:opacity .2s;
}


.login-btn{
background:#fff;
border:none;
padding:8px 14px;
border-radius:8px;
cursor:pointer;
font-weight:600;
}

.user-avatar{
width:32px;
height:32px;
border-radius:50%;
}


.user-area{
display:flex;
align-items:center;
gap:14px;
}

.user-avatar-icon{
width:22px;
height:32px;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
}
.user-avatar-icon svg{
width:22px;
height:22px;
stroke:#000;
stroke-width:2;
fill:none;
}

.user-cart{
font-size:20px;
text-decoration:none;
transition:.2s;
}

.user-cart:hover{
transform:scale(1.15);
}

.logout-btn{
background:none;
border:none;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
padding:0;
}

.logout-icon{
width:22px;
height:22px;
transition:.2s;
}

.logout-btn:hover .logout-icon{
transform:scale(1.15);
opacity:.8;
}
