:root{
  --bg:#f5ead9;
  --bg-soft:#fbf4e9;
  --paper:#f8efe2;
  --line:#e7d4bc;
  --brown:#684437;
  --brown-dark:#4f3127;
  --gold:#cda15d;
  --gold-soft:#e3c793;
  --orange:#bf6234;
  --orange-dark:#a94f23;
  --green:#6c8e3f;
  --white:#fffdf8;
  --shadow:0 12px 30px rgb(255, 255, 255);
  --radius:18px;
  --max:1180px;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:"Inter", sans-serif;
  background: url("https://www.cafenilo.com/img/fondo2.png") center/cover fixed no-repeat;
  color:var(--brown);
}

img{
  max-width:100%;
  display:block;
}

.container{
  width:min(92%, var(--max));
  margin:auto;
}

/* ===================== TOPBAR ===================== */
.topbar{
  position:sticky;
  top:0;
  z-index:999;
  background:rgba(248,239,226,.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
  box-shadow:0 8px 20px rgba(79,49,39,.08);
}

.nav{
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.logo{
  font-family:"Cinzel", serif;
  text-decoration:none;
  color:var(--brown-dark);
  font-size:1.55rem;
  font-weight:700;
  letter-spacing:1px;
}

.logo span{
  color:var(--orange);
}

.nav-links{
  list-style:none;
  display:flex;
  gap:30px;
}

.nav-links a{
  text-decoration:none;
  color:var(--brown-dark);
  font-weight:600;
  font-size:1rem;
  transition:color .25s ease, transform .25s ease;
}

.nav-links a:hover{
  color:var(--orange);
  transform:translateY(-1px);
}

.mobile-toggle{
  display:none;
  font-size:1.7rem;
  background:none;
  border:none;
  color:var(--brown-dark);
  cursor:pointer;
}

/* ===================== BOTONES ===================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border:none;
  cursor:pointer;
  transition:.25s ease;
  font-weight:700;
}

.btn-primary{
  background:var(--orange);
  color:white;
  padding:14px 24px;
  border-radius:12px;
  box-shadow:0 10px 22px rgba(191,98,52,.20);
}

.btn-primary:hover{
  background:var(--orange-dark);
  transform:translateY(-2px);
}

.btn-outline{
  background:rgba(255,247,234,.88);
  color:var(--gold);
  border:2px solid #e9cfaa;
  padding:12px 24px;
  border-radius:12px;
}

.btn-outline:hover{
  background:#fff7ea;
  transform:translateY(-2px);
}

.btn-green{
  background:var(--green);
  color:#fff;
  padding:14px 28px;
  border-radius:12px;
  box-shadow:0 10px 20px rgba(108,142,63,.20);
}

.btn-green:hover{
  transform:translateY(-2px);
  filter:brightness(.96);
}

.small-btn{
  margin-top:14px;
  padding:12px 18px;
  border-radius:10px;
  font-size:.95rem;
}

/* ===================== HERO ===================== */
.hero{
  padding:24px 0 0;
}

.hero-box{
  background:linear-gradient(180deg, rgba(255,252,248,.82), rgba(245,230,210,.80));
  border:1px solid #eadbc6;
  border-radius:0 0 80px 80px;
  padding:70px 60px 110px;
  position:relative;
  overflow:hidden;
  min-height:560px;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  box-shadow:0 18px 40px rgba(79,49,39,.12);
}

.hero-box::before{
  content:"";
  position:absolute;
  inset:0;
  background:url("https://www.cafenilo.com/img/imagen-inicial.png") center/cover no-repeat;
  opacity:.0.5;
}

.hero-content,
.hero-visual{
  position:relative;
  z-index:2;
}

.hero h1{
  font-family:"Cinzel", serif;
  font-size:clamp(2.7rem, 5vw, 5rem);
  line-height:1.05;
  color:var(--brown-dark);
  max-width:560px;
  margin-bottom:18px;
  text-shadow:0 2px 8px rgba(255,255,255,.25);
}

.hero p{
  font-size:1.18rem;
  color:#6b4d3d;
  margin-bottom:28px;
  max-width:520px;
  line-height:1.7;
}

.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.hero-image{
  width:100%;
  min-height:420px;
  background:url("https://www.cafenilo.com/img/logo.png") center/contain no-repeat;
  border-radius:24px;
  box-shadow:0 16px 35px rgba(79,49,39,.18);
  background-color:rgba(255,248,238,.0);
  border:1px solid rgba(234,219,198,.8);
}

.hero-wave{
  height:70px;
  background:
    radial-gradient(120% 100% at 50% 0%, transparent 57%, var(--bg-soft) 58%);
  margin-top:-1px;
}

/* ===================== SECCIONES ===================== */
section{
  padding:64px 0;
}

.section-light{
  background:rgba(255,248,238,.78);
}

.section-pattern{
  background:
    linear-gradient(rgba(248,240,228,.88), rgba(248,240,228,.88)),
    url("https://www.cafenilo.com/img/fondo.png") center/cover fixed no-repeat;
}

.section-title{
  text-align:center;
  font-family:"Cinzel", serif;
  font-size:clamp(2rem, 3vw, 3rem);
  color:var(--brown-dark);
  margin-bottom:40px;
  position:relative;
  letter-spacing:.5px;
}

.section-title::before,
.section-title::after{
  content:"";
  width:90px;
  height:2px;
  background:linear-gradient(to right, transparent, var(--gold), transparent);
  display:inline-block;
  vertical-align:middle;
  margin:0 14px;
}

/* ===================== ABOUT ===================== */
.about-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:0;
  background:rgba(255,250,244,.95);
  border:1px solid #eadbc8;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 12px 24px rgba(79,49,39,.10);
}

.about-card{
  padding:34px 24px;
  text-align:center;
  border-right:1px solid #eadbc8;
}

.about-card:last-child{
  border-right:none;
}

.about-icon{
  font-size:2.2rem;
  margin-bottom:14px;
}

.about-card h3{
  font-family:"Cinzel", serif;
  font-size:1.2rem;
  color:var(--brown-dark);
}

/* ===================== FLEET ===================== */
.fleet-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
  gap:26px;
  margin-bottom:40px;
}

.fleet-card{
  background:rgba(255,250,244,.96);
  border:1px solid #eadbc8;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 12px 24px rgba(79,49,39,.12);
  transition:transform .28s ease, box-shadow .28s ease;
}

.fleet-card:hover{
  transform:translateY(-6px);
  box-shadow:0 16px 30px rgba(79,49,39,.18);
}

.fleet-card img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}

.fleet-body{
  padding:20px;
  text-align:center;
}

.fleet-body h3{
  font-family:"Cinzel", serif;
  font-size:1.35rem;
  margin-bottom:10px;
  color:var(--brown-dark);
}

.fleet-body p{
  line-height:1.6;
  margin-bottom:12px;
  color:#5a4a3a;
}

.fleet-body strong{
  display:block;
  margin-bottom:12px;
  color:var(--orange-dark);
}

/* ===================== TABLA ===================== */
.table-wrap{
  margin-top:25px;
  overflow-x:auto;
  background:rgba(255,250,244,.95);
  border:1px solid #eadbc8;
  border-radius:18px;
  box-shadow:0 10px 22px rgba(79,49,39,.10);
}

table{
  width:100%;
  border-collapse:collapse;
  min-width:900px;
}

thead{
  background:linear-gradient(90deg, var(--brown-dark), var(--brown));
  color:#fff;
}

th, td{
  padding:16px 18px;
  text-align:left;
  border-bottom:1px solid #eadbc8;
  line-height:1.6;
}

tbody tr:nth-child(even){
  background:rgba(248,239,226,.55);
}

tbody tr:hover{
  background:rgba(227,199,147,.18);
}

/* ===================== PAQUETES ===================== */
.package-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(340px, 1fr));
  gap:30px;
  margin-top:30px;
}

.package-card{
  background:rgba(255,252,247,.96);
  border:1px solid #eadbc8;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 12px 28px rgba(79,49,39,.14);
  transition:transform .30s ease, box-shadow .30s ease;
  display:flex;
  flex-direction:column;
}

.package-card:hover{
  transform:translateY(-8px);
  box-shadow:0 18px 35px rgba(79,49,39,.22);
}

.package-image{
  height:320px;
  background-size:cover;
  background-position:center top;
  background-repeat:no-repeat;
  border-bottom:4px solid var(--gold);
}

.package-one{
  background-image:url("https://www.cafenilo.com/img/faraon.png");
}

.package-two{
  background-image:url("https://www.cafenilo.com/img/personalizada.png");
}

.package-three{
  background-image:url("https://www.cafenilo.com/img/ejecutiva.png");
}

.package-body{
  padding:24px 24px 26px;
  display:flex;
  flex-direction:column;
  height:100%;
  text-align:left;
}

.package-body h3{
  font-family:"Cinzel", serif;
  font-size:1.28rem;
  line-height:1.4;
  margin-bottom:12px;
  color:var(--brown-dark);
}

.package-intro{
  font-size:1rem;
  line-height:1.7;
  margin-bottom:14px;
  color:#5f4a3d;
}

.package-body p{
  margin-bottom:10px;
  line-height:1.6;
  color:#4a3d31;
}

.package-body h4{
  margin:16px 0 10px;
  font-size:1.05rem;
  color:#8b6b1f;
  font-weight:700;
}

.package-list{
  margin:0 0 18px 0;
  padding-left:20px;
}

.package-list li{
  margin-bottom:10px;
  line-height:1.65;
  color:#4a3d31;
}

.package-body strong{
  color:#2b2118;
}

.package-price{
  margin-top:auto;
  font-size:1.12rem;
  color:#b8860b;
  margin-bottom:18px;
}

.package-card .btn{
  width:100%;
}

/* ===================== VIDEOS ===================== */
.videos-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}

.video-frame{
  background:rgba(255,250,244,.96);
  border:1px solid #eadbc8;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 22px rgba(79,49,39,.12);
}

.video-frame iframe{
  width:100%;
  aspect-ratio:16/9;
  border:0;
  display:block;
}

/* ===================== UBICACION ===================== */
.location-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:28px;
  align-items:stretch;
}

.map-card,
.location-info{
  background:rgba(255,250,244,.96);
  border:1px solid #eadbc8;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 12px 24px rgba(79,49,39,.12);
}

.map-card iframe{
  width:100%;
  min-height:100%;
  height:100%;
  border:0;
}

.location-info{
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.location-info p{
  margin-bottom:10px;
  line-height:1.7;
}

.location-actions{
  margin-top:18px;
}

.site-footer a,
.location-info a{
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover,
.location-info a:hover{
  color: #fff;
  text-decoration: underline;
}

/* ===================== FOOTER ===================== */
.site-footer{
  background:var(--brown-dark);
  color:var(--paper);
  text-align:center;
  padding:30px 20px;
  border-top:4px solid var(--gold);
}

.site-footer p{
  font-size:.95rem;
  opacity:.9;
}

/* ===================== WHATSAPP ===================== */
.whatsapp-float{
  position:fixed;
  right:24px;
  bottom:24px;
  width:72px;
  height:72px;
  border-radius:50%;
  background:#25D366;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-size:2rem;
  box-shadow:0 12px 30px rgba(37,211,102,.35);
  z-index:999;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px){
  .hero-box,
  .location-grid{
    grid-template-columns:1fr;
  }

  .fleet-grid{
    grid-template-columns:repeat(2, 1fr);
  }

  .videos-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 980px){
  .hero-box{
    grid-template-columns:1fr;
    padding:50px 24px 70px;
    border-radius:0 0 40px 40px;
    text-align:center;
  }

  .hero h1,
  .hero p{
    max-width:100%;
  }

  .hero-actions{
    justify-content:center;
  }

  .hero-image{
    min-height:300px;
    margin-top:20px;
  }

  .nav-links{
    gap:18px;
  }

  .package-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 860px){
  .mobile-toggle{
    display:block;
  }

  .nav-links{
    position:absolute;
    top:82px;
    left:0;
    right:0;
    background:rgba(248,239,226,.98);
    flex-direction:column;
    padding:20px;
    display:none;
    border-bottom:1px solid var(--line);
    box-shadow:0 10px 20px rgba(79,49,39,.10);
  }

  .nav-links.show{
    display:flex;
  }

  .nav-cta{
    display:none;
  }

  .about-grid{
    grid-template-columns:1fr;
  }

  .about-card{
    border-right:none;
    border-bottom:1px solid #eadbc8;
  }

  .about-card:last-child{
    border-bottom:none;
  }
}

@media (max-width: 768px){
  section{
    padding:50px 0;
  }

  .nav{
    flex-wrap:wrap;
    justify-content:center;
  }

  .nav-links{
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
  }

  .package-image{
    height:260px;
  }

  .fleet-card img{
    height:200px;
  }

  .section-title::before,
  .section-title::after{
    display:none;
  }
}

@media (max-width: 640px){
  .hero-box{
    padding:42px 22px 70px;
    border-radius:0 0 36px 36px;
  }

  .hero p{
    font-size:1.05rem;
  }

  .fleet-grid{
    grid-template-columns:1fr;
  }

  .whatsapp-float{
    width:62px;
    height:62px;
    font-size:1.7rem;
    right:16px;
    bottom:16px;
  }
}
.package-modal{
  position: fixed;
  inset: 0;
  background: rgba(43, 27, 18, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.package-modal.show{
  display: flex;
}

.package-modal-content{
  width: min(100%, 760px);
  background: #fffaf3;
  border: 1px solid #e8d7b8;
  border-radius: 22px;
  padding: 30px 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  position: relative;
}

.package-modal-content h3{
  font-family: "Cinzel", serif;
  font-size: 1.8rem;
  color: var(--brown-dark);
  margin-bottom: 10px;
}

.package-modal-content p{
  color: #5f4a3d;
  line-height: 1.7;
  margin-bottom: 20px;
}

.package-modal-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #f4e4ca;
  color: var(--brown-dark);
  font-size: 1.4rem;
  cursor: pointer;
}

.package-modal-form .form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.package-modal-form .form-group{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.package-modal-form label{
  font-weight: 700;
  color: var(--brown-dark);
}

.package-modal-form input,
.package-modal-form textarea{
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d8c1a3;
  border-radius: 12px;
  background: #fffdf9;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  color: var(--brown-dark);
  outline: none;
}

.package-modal-form input:focus,
.package-modal-form textarea:focus{
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(205,161,93,.15);
}

.package-modal-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

@media (max-width: 768px){
  .package-modal-form .form-row{
    grid-template-columns: 1fr;
  }

  .package-modal-content{
    padding: 24px 18px;
  }

  .package-modal-content h3{
    font-size: 1.4rem;
    padding-right: 40px;
  }
}