/* Hotel del Carmen - réplica estática del diseño Avada original */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 30px;
  color: #747474;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; border: 0; }
picture { display: block; }
a { color: #333; text-decoration: none; transition: color .2s; }
a:hover { color: #8a1e26; }
h1, h2, h3, h4 { font-family: "Mulish", "Muli", Arial, Helvetica, sans-serif; font-weight: 400; color: #333; margin: 0 0 20px; }
h1 { font-size: 60px; line-height: 60px; margin: 0.67em 0; }
h2 { font-size: 20px; line-height: 28px; margin: 0 0 22px; }
h3 { font-size: 24px; line-height: 48px; margin: 0 0 24px; }
h4 { font-size: 18px; line-height: 20px; margin: 0 0 20px; }
p { margin: 0 0 20px; }
ul { margin: 0 0 20px; }

.container { max-width: 1170px; margin: 0 auto; padding: 0 30px; }
@media (min-width: 1231px) { .container { padding: 0; } }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  height: 200px;
  background-color: #000;
  background-repeat: repeat;
  background-position: top center;
  z-index: 20;
}
.site-header--overlay { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.header-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 0 70px; }
.logo { margin: 31px 0; flex-shrink: 0; }
.logo img { width: 268px; height: 60px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav li { padding-right: 45px; }
.main-nav li:last-child { padding-right: 0; }
.main-nav a {
  display: block;
  height: 106px;
  line-height: 103px;
  font-size: 14px;
  letter-spacing: 2px;
  color: #fff;
  border-top: 3px solid transparent;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.main-nav a:hover, .main-nav .current > a { color: #fff; border-top-color: #fff; }
.menu-toggle { display: none; }

/* ---------- Footer ---------- */
.footer-widgets { background: #333; border-top: 12px solid #8a1e26; padding: 63px 0 60px; color: #999; }
.footer-widgets .container { display: flex; align-items: center; flex-wrap: wrap; }
.footer-logo { margin: 0 70px 10px 0; }
.footer-logo img { width: 268px; height: 60px; }
.footer-menu { padding-top: 15px; font-size: 15px; color: #999; }
.footer-menu a { color: #fff; }
.footer-menu a:hover { color: #8a1e26; }
.footer-copyright { background: #241d1d; border-top: 1px solid #4b4c4d; padding: 38px 0 36px; font-size: 12px; color: #999; line-height: 20px; }
.footer-copyright a { color: #fff; }
.to-top {
  position: fixed; right: 25px; bottom: 0; width: 48px; height: 35px;
  background: #333; color: #fff; border-radius: 4px 4px 0 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 30;
}
.to-top.visible { opacity: .8; pointer-events: auto; }
.to-top:hover { opacity: 1; color: #fff; }
.to-top svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- WhatsApp ---------- */
.whatsapp-btn {
  position: fixed; right: 20px; bottom: 50px; width: 60px; height: 60px;
  border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 1px 6px 24px rgba(0,0,0,.25); z-index: 40;
  transform: scale(0); transition: transform .3s;
}
.whatsapp-btn.show { transform: scale(1); }
.whatsapp-btn:hover { color: #fff; filter: brightness(1.05); }
.whatsapp-btn svg { width: 34px; height: 34px; fill: currentColor; }

/* ---------- Slider ---------- */
.slider { position: relative; overflow: hidden; background: #e8e8e8; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.slide.active { opacity: 1; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.slider-dots button {
  width: 12px; height: 12px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid #fff; background: rgba(255,255,255,.3);
}
.slider-dots button.active { background: #fff; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.25); color: #fff; font-size: 20px; line-height: 40px;
  opacity: 0; transition: opacity .3s;
}
.slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: rgba(0,0,0,.5); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* Home */
.home .slider { height: 100vh; min-height: 500px; }

/* ---------- Conózcanos ---------- */
.intro { display: grid; grid-template-columns: 2fr 3fr; column-gap: 4%; }
.intro-text { padding: 30px; text-align: right; }
.intro-text h1 { margin-top: 40px; }
.sep { height: 1px; border: 0; background: #8a1e26; opacity: .45; width: 170px; margin: 0 0 30px auto; }
.intro-text h3 { margin: 0 0 24px; }
.intro .slider { min-height: 473px; margin-bottom: 20px; }
.about { padding: 30px 0 60px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4%; }
.about ul { margin: 15px 0 0; padding-left: 0; list-style: none; }
.about li { position: relative; padding-left: 15px; line-height: 30px; }
.about li::before { content: "•"; position: absolute; left: 0; color: #747474; }
.amenities { background: #f0f0ed; padding: 60px 0 45px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 4%; }
.card { background: #fff; padding: 25px; margin-bottom: 20px; }
.card img { width: 100%; aspect-ratio: 500 / 330; object-fit: cover; margin-bottom: 30px; }
.card h2 { text-align: center; font-weight: 700; }

/* ---------- Habitaciones ---------- */
.rooms-head { display: grid; grid-template-columns: 1fr 1fr; }
.rooms-head > div { padding: 30px 30px 30px 70px; color: #fff; }
.rooms-head > div:last-child { padding: 30px 70px 30px 30px; text-align: right; }
.rooms-head h1, .rooms-head h4 { color: #fff; }
.rooms-head .rooms { background: #bf6030; }
.rooms-head .apts { background: #3a463e; }
.gallery-section { padding: 40px 0 55px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 4%; row-gap: 20px; align-items: start; }
.photo-grid a { display: block; overflow: hidden; }
.photo-grid img { width: 100%; transition: opacity .3s; }
.photo-grid a:hover img { opacity: .85; }

/* ---------- Cómo llegar ---------- */
.map iframe { display: block; width: 100%; height: 450px; border: 0; }

/* ---------- Contacto ---------- */
.contact { padding: 70px 0 75px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4%; max-width: 927px; }
.contact-info img { width: 250px; height: 64px; margin-bottom: 20px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; }
.form-row input, .form-row textarea {
  display: block; width: 100%; font: 13px "Open Sans", Arial, sans-serif; color: #333;
  background: #fff; border: 1px solid #d2d2d2; border-radius: 0; padding: 8px 9px; height: 33px;
}
.form-row textarea { height: 150px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: #8a1e26; }
.form-dates { display: grid; grid-template-columns: 1fr 1fr 90px; gap: 15px; }
.form-dates input { padding: 4px 8px; }
.btn-submit {
  font: 700 18px "Open Sans", Arial, sans-serif; text-transform: uppercase; color: #fff;
  background: #6666a4; border: 0; border-radius: 2px; padding: 17px 40px; cursor: pointer;
  box-shadow: inset 0 1px 0 #fff, 0 5px 0 #525287, 1px 7px 7px 3px rgba(0,0,0,.3);
  position: relative; top: 0; transition: top .1s, box-shadow .1s, background .2s;
}
.btn-submit:hover { background: #5a5a96; }
.btn-submit:active { top: 3px; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #525287, 1px 4px 4px 2px rgba(0,0,0,.3); }
.btn-submit[disabled] { opacity: .6; cursor: wait; }
.form-msg { margin-top: 25px; padding: 10px 15px; border: 2px solid; line-height: 22px; display: none; }
.form-msg.ok { display: block; border-color: #398f14; color: #398f14; }
.form-msg.error { display: block; border-color: #dc3232; color: #dc3232; }
.contact-info p { margin-bottom: 20px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 100;
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; width: auto; box-shadow: 0 0 30px rgba(0,0,0,.5); }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 40px; line-height: 1; padding: 15px; opacity: .75;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 15px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 15px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header-row { padding: 0 30px; }
  .main-nav li { padding-right: 25px; }
}
@media (max-width: 900px) {
  .header-row { padding: 0 30px; align-items: center; }
  .logo { margin: 25px 0; }
  .logo img { width: 223px; height: 50px; }
  .menu-toggle {
    display: block; background: none; border: 0; cursor: pointer; padding: 10px; color: #fff;
  }
  .menu-toggle svg { width: 22px; height: 22px; fill: currentColor; display: block; }
  .main-nav {
    display: none; position: absolute; top: 100px; left: 30px; right: 30px; background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.15); z-index: 50;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav li { padding: 0; border-bottom: 1px solid #f2f2f2; }
  .main-nav a {
    height: auto; line-height: 35px; padding: 0 25px; font-size: 12px; color: #333;
    border-top: 0; text-shadow: none;
  }
  .main-nav a:hover, .main-nav .current > a { color: #8a1e26; }
  h1 { font-size: 46px; line-height: 50px; }
  .intro, .two-cols, .rooms-head, .contact-grid { grid-template-columns: 1fr; }
  .intro .slider { min-height: 0; height: 62vw; }
  .cards, .photo-grid { grid-template-columns: 1fr 1fr; }
  .rooms-head > div, .rooms-head > div:last-child { padding: 30px; text-align: left; }
  .footer-logo { margin-right: 40px; }
}
@media (max-width: 600px) {
  h1 { font-size: 40px; line-height: 44px; }
  .intro-text h3 { font-size: 22px; line-height: 44px; }
  .cards, .photo-grid { grid-template-columns: 1fr; }
  .header-row { padding: 0 20px; }
  .main-nav { left: 20px; right: 20px; }
  .container { padding: 0 20px; }
  .rooms-head h4 br { display: none; }
  .form-dates { grid-template-columns: 1fr 1fr; }
  .form-dates > div:last-child { grid-column: 1 / -1; max-width: 120px; }
  .map iframe { height: 380px; }
  .contact { padding: 50px 0; }
  .contact-grid > div:first-child { margin-bottom: 50px; }
}
