*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    :root {
      --color-teal: #1cabbb;
      --color-teal-dark: #1997a5;
      --color-teal-light: #60a0a9;
      --color-gold: #ffaa3e;
      --color-gold-dark: #ac742a;
      --color-gold-darker: #986625;
      --color-dark: #434343;
      --color-gray: #999;
      --color-gray-light: #d7d7d7;
      --color-gray-bg: #e7e7e7;
      --color-white: #fff;
      --color-black: #000;
      --color-text-form: #ffaa3e;
      --font-primary: 'Varela Round', sans-serif;
      --transition-fast: 0.3s ease;
      --transition-medium: 0.5s ease;
    }

    body, html {
      font-family: var(--font-primary);
      scroll-behavior: smooth;
    }

    img { max-width: 100%; display: block; }
    a { text-decoration: none; }

    /* ===== NAVBAR ===== */
    .navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
      background: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      display: none;
      align-items: center;
      justify-content: space-between;
      padding: 0 30px;
      height: 60px;
      transition: background var(--transition-fast);
    }
    .navbar.visible { display: flex; }
    .navbar .nav-logo img { height: 40px; }
    .navbar .nav-links { display: flex; gap: 24px; }
    .navbar .nav-links a {
      color: var(--color-white);
      font-size: 14px;
      transition: color var(--transition-fast);
    }
    .navbar .nav-links a:hover { color: var(--color-gold); }

    /* ===== NAVBAR DROPDOWN ===== */
    .nav-dropdown {
      position: relative;
    }
    .nav-dropdown-toggle {
      color: var(--color-white);
      font-size: 14px;
      transition: color var(--transition-fast);
    }
    .nav-dropdown-toggle:hover { color: var(--color-gold); }
    .nav-dropdown-toggle i {
      font-size: 10px;
      margin-left: 4px;
    }
    .nav-dropdown-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(0, 0, 0, 0.92);
      min-width: 180px;
      padding: 10px 0;
      border-radius: 4px;
      margin-top: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    .nav-dropdown-menu a {
      display: block;
      padding: 8px 20px;
      color: var(--color-white);
      font-size: 14px;
      white-space: nowrap;
      transition: color var(--transition-fast), background var(--transition-fast);
    }
    .nav-dropdown-menu a:hover {
      color: var(--color-gold);
      background: rgba(255,255,255,0.08);
    }

    .navbar .nav-lang { display: flex; gap: 12px; }
    .navbar .nav-lang a {
      color: var(--color-white);
      font-size: 13px;
      opacity: 0.7;
      transition: opacity var(--transition-fast);
    }
    .navbar .nav-lang a:hover,
    .navbar .nav-lang a.active { opacity: 1; }

    .hamburger {
      display: none;
      background: none;
      border: none;
      color: var(--color-white);
      font-size: 24px;
      cursor: pointer;
    }

    .mobile-menu {
      display: none;
      position: fixed;
      top: 60px;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.95);
      z-index: 999;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 30px;
    }
    .mobile-menu.open { display: flex; }
    .mobile-menu a {
      color: var(--color-white);
      font-size: 20px;
      transition: color var(--transition-fast);
    }
    .mobile-menu a:hover { color: var(--color-gold); }

    /* ===== MOBILE DROPDOWN ===== */
    .mobile-dropdown {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .mobile-dropdown-toggle {
      color: var(--color-white);
      font-size: 20px;
      transition: color var(--transition-fast);
    }
    .mobile-dropdown-toggle i {
      font-size: 12px;
      margin-left: 4px;
    }
    .mobile-dropdown-menu {
      display: none;
      flex-direction: column;
      align-items: center;
      gap: 15px;
      margin-top: 15px;
    }
    .mobile-dropdown.open .mobile-dropdown-menu { display: flex; }
    .mobile-dropdown-menu a {
      font-size: 16px;
      color: var(--color-gray-light);
    }
    .mobile-dropdown-menu a:hover { color: var(--color-gold); }

    /* ===== SECTION: COMMON ===== */
    .section-hidden { display: none; }
    .section-visible { display: block; }

    .hero {
      height: 100vh;
      background-size: cover;
      background-position: center center;
      position: relative;
      z-index: 1;
    }
    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45));
    }
    .hero-content {
      height: 100vh;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .hero-content h1 {
      position: absolute;
      bottom: 50px;
      left: 0;
      right: 0;
      text-align: center;
      font-size: 35px;
      color: var(--color-gold);
      text-shadow: 2px 2px rgba(0,0,0,0.5);
      animation: fromBottom 1s ease forwards;
    }

    @keyframes unGray {
      0% { opacity: 0.2; filter: grayscale(100%); }
      100% { opacity: 1; filter: grayscale(0); }
    }
    @keyframes fromBottom {
      0% { bottom: 20px; opacity: 0; }
      100% { bottom: 50px; opacity: 1; }
    }

    .info-section { padding: 70px 0; }
    .info-section h1 { margin-bottom: 20px; }
    .info-section p { font-size: 15px; color: var(--color-gray); text-align: justify; }

    .info-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 50px;
      align-items: start;
    }
    .info-text { display: flex; flex-direction: column; gap: 15px; }
    .info-text h3 { font-size: 20px; color: var(--color-dark); margin-bottom: 5px; }
    .info-map {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 300px;
    }
    .info-map iframe { width: 100%; height: 350px; border: 0; border-radius: 4px; }
    .info-map .pin { text-align: center; }
    .info-map .pin img { max-width: 80px; margin: 0 auto; }

    .weather-section {
      padding: 80px 0;
      background-size: cover;
      background-position: center center;
    }
    .weather-section::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45));
    }
    .weather-section { position: relative; }
    .weather-section .container { position: relative; z-index: 1; }
    .weather-section h1 { font-size: 35px; color: var(--color-gold); margin-bottom: 50px; }

    .box-container { margin-bottom: 20px; }
    .box-container .image {
      height: auto;
      background-color: var(--color-white);
      display: flex;
      align-items: center;
      border: 4px solid #6c6e6d;
      padding: 25px;
      min-height: 330px;
    }
    .box-container .image img { width: 100%; height: auto; }
    .box-container .title {
      text-align: center;
      color: var(--color-gold);
      font-size: 16px;
      margin-top: 15px;
    }

    .container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
    .row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
    .col { flex: 1; padding: 0 15px; }

    /* ===== HOME ===== */
    #home { width: 100%; height: 100vh; position: relative; }
    #home .logo {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: absolute;
      width: 400px;
      left: 50%;
      margin-left: -200px;
      z-index: 10;
      top: 30px;
    }
    #home .logo img { max-width: 100%; }
    #home .logo .iso { width: 300px; height: auto; }
    #home .logo p { color: var(--color-white); text-shadow: -1px 1px var(--color-black); }

    #home .home-container {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    #home .home-container .divider { display: none; }

    #home .home-container .acantilados,
    #home .home-container .catedral {
      flex: 1;
      height: 100%;
      background-size: cover;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    #home .home-container .overlay {
      position: absolute;
      inset: 0;
      background-color: rgba(0,0,0,0.6);
      opacity: 1;
      transition: opacity var(--transition-medium);
    }

    #home .home-container .acantilados hr,
    #home .home-container .catedral hr {
      border-top: 3px solid var(--color-white);
      width: 15%;
    }

    #home .home-container .enter {
      opacity: 1;
      transition: opacity var(--transition-medium);
      color: var(--color-white);
      text-align: center;
      z-index: 10;
    }

    #home .home-container .enter h1 {
      font-size: 18px;
      text-shadow: -1px 1px var(--color-black);
    }

    #home .home-container .enter .button {
      color: var(--color-white);
      border-radius: 25px;
      border: 2px solid var(--color-white);
      text-align: center;
      display: inline-block;
      font-size: 14px;
      padding: 0 10px;
      height: 40px;
      line-height: 40px;
      cursor: pointer;
      transition: all var(--transition-medium);
    }

    #home .home-container .acantilados:hover .overlay,
    #home .home-container .acantilados:active .overlay,
    #home .home-container .catedral:hover .overlay,
    #home .home-container .catedral:active .overlay { opacity: 0; }

    #home .home-container .acantilados:hover .enter,
    #home .home-container .acantilados:active .enter,
    #home .home-container .catedral:hover .enter,
    #home .home-container .catedral:active .enter { opacity: 1; }

    #home .home-container .acantilados {
      background-image: url(../images/acantilados/home.jpg);
      background-position: top right;
    }
    #home .home-container .acantilados .button {
      background-color: var(--color-teal);
    }
    #home .home-container .acantilados .button:hover,
    #home .home-container .acantilados .button:active {
      background-color: var(--color-teal-dark);
      text-decoration: none;
    }

    #home .home-container .catedral {
      background-image: url(../images/catedral/home.jpg);
      background-position: top left;
    }
    #home .home-container .catedral .button {
      background-color: var(--color-gold-dark);
    }
    #home .home-container .catedral .button:hover,
    #home .home-container .catedral .button:active {
      background-color: var(--color-gold-darker);
      text-decoration: none;
    }

    /* ===== SUB-PAGES COMMON ===== */
    .sub-nav {
      padding: 30px 0;
      background: var(--color-white);
    }
    .sub-nav .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
    .sub-nav .sub-nav-links { display: flex; gap: 20px; }
    .sub-nav .sub-nav-links a {
      color: var(--color-dark);
      font-size: 14px;
      transition: color var(--transition-fast);
    }
    .sub-nav .sub-nav-links a:hover { color: var(--color-teal); }
    .sub-nav .sub-nav-logo img { height: 50px; }
    .sub-nav .sub-nav-right { display: flex; gap: 15px; align-items: center; }
    .sub-nav .sub-nav-right a {
      color: var(--color-dark);
      font-size: 14px;
    }
    .sub-nav .sub-nav-right a:hover { color: var(--color-teal); }

    /* ===== ACCOMMODATION PAGE COMMON ===== */
    .accommodation-info { padding: 70px 0; }
    .accommodation-info h2 {
      font-size: 28px;
      margin-bottom: 15px;
    }
    .accommodation-info p {
      font-size: 15px;
      color: var(--color-gray);
      text-align: justify;
      margin-bottom: 15px;
    }

    .services-section { padding: 40px 0 60px; }
    .services-section h2 { font-size: 28px; margin-bottom: 30px; }
    .service-item {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-bottom: 15px;
    }
    .service-item img { width: 50px; height: 50px; object-fit: contain; }
    .service-item span { font-size: 15px; color: #555; }

    /* Masonry / Gallery */
    .gallery-section { padding: 40px 0 60px; background: var(--color-gray-bg); }
    .gallery-section h2 { font-size: 28px; margin-bottom: 30px; }
    .masonry {
      columns: 3;
      column-gap: 15px;
    }
    .masonry-item {
      break-inside: avoid;
      margin-bottom: 15px;
      overflow: hidden;
      border-radius: 4px;
    }
    .masonry-item img {
      width: 100%;
      display: block;
      transition: transform var(--transition-medium);
    }
    .masonry-item:hover img { transform: scale(1.05); }

    /* Location Map */
    .location-section { padding: 40px 0 60px; }
    .location-section h2 { font-size: 28px; margin-bottom: 30px; }
    .location-section .map-placeholder {
      width: 100%;
      height: 400px;
      background: var(--color-gray-light);
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      color: var(--color-gray);
      font-size: 16px;
    }

    /* ===== ACANTILADOS LANDING ===== */
    .acantilados-info { padding: 70px 0; }
    .acantilados-info h1 { font-size: 32px; margin-bottom: 20px; color: var(--color-dark); }
    .acantilados-info p { font-size: 15px; color: var(--color-gray); text-align: justify; margin-bottom: 15px; }
    .acantilados-info .pin {
      text-align: center;
      margin-top: 75px;
    }
    .acantilados-info .pin img { max-width: 60px; margin: 0 auto; }

    /* ===== CATEDRAL LANDING ===== */
    .catedral-info { padding: 70px 0; }
    .catedral-info h1 { font-size: 32px; margin-bottom: 20px; color: var(--color-dark); }
    .catedral-info p { font-size: 15px; color: var(--color-gray); text-align: justify; margin-bottom: 15px; }

    .ad-section { padding: 80px 0; background: var(--color-white); }
    .ad-section h1 { font-size: 35px; color: var(--color-gold); margin-bottom: 50px; text-align: center; }

    /* ===== CONTACT ===== */
    #contact-section {
      min-height: 100vh;
      background-image: url(../images/contact/bg.jpg);
      background-size: cover;
      background-position: center center;
      padding-bottom: 20px;
      padding-top: 120px;
    }
    #contact-section p.info {
      color: var(--color-white);
      margin-top: 65px;
      font-size: 18px;
    }
    #contact-section .contact-form {
      padding: 25px;
      background-color: rgba(73, 190, 200, 0.9);
      border-radius: 8px;
    }
    #contact-section .contact-form h1 {
      color: var(--color-white);
      font-size: 60px;
      border-bottom: 1px solid var(--color-white);
      margin-bottom: 20px;
    }
    #contact-section .contact-form h4 {
      font-size: 18px;
      color: var(--color-white);
    }
    #contact-section .form-row {
      margin: 20px 0;
      display: flex;
      align-items: center;
      justify-content: flex-start;
    }
    #contact-section .form-row.no-mg-t { margin-top: 0; }
    #contact-section .form-row .form-radio,
    #contact-section .form-row .input,
    #contact-section .form-row .textarea { flex: 1; }
    #contact-section .form-row input[type="text"],
    #contact-section .form-row input[type="email"],
    #contact-section .form-row input[type="tel"] {
      width: 100%;
      height: 50px;
      background-color: var(--color-gray-bg);
      color: var(--color-text-form);
      font-size: 16px;
      font-family: var(--font-primary);
      border: none;
      box-shadow: none;
      padding-left: 20px;
      outline: none;
    }
    #contact-section .form-row textarea {
      width: 100%;
      background-color: var(--color-gray-bg);
      color: var(--color-text-form);
      font-size: 16px;
      font-family: var(--font-primary);
      border: none;
      box-shadow: none;
      padding: 15px 20px;
      outline: none;
      resize: vertical;
    }
    #contact-section .form-row label {
      color: var(--color-white);
      font-size: 16px;
      min-width: 80px;
      margin-right: 15px;
    }
    #contact-section .form-row input[type="radio"] {
      margin-right: 10px;
      accent-color: var(--color-white);
    }
    #contact-section .form-row input[type="radio"] + label {
      min-width: auto;
      margin-right: 20px;
    }
    .form-error {
      color: #ff6b6b;
      font-size: 12px;
      margin-top: 5px;
      display: none;
    }
    .form-error.visible { display: block; }

    .btn-submit {
      background-color: var(--color-gold-dark);
      color: var(--color-white);
      border: none;
      padding: 12px 40px;
      font-size: 16px;
      font-family: var(--font-primary);
      border-radius: 4px;
      cursor: pointer;
      transition: background var(--transition-fast);
    }
    .btn-submit:hover { background-color: var(--color-gold-darker); }
    .btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

    .form-result {
      margin-top: 15px;
      padding: 10px;
      border-radius: 4px;
      font-size: 14px;
      display: none;
    }
    .form-result.visible {
      background: rgba(255, 255, 255, 0.2);
      color: var(--color-white);
      display: block;
    }

    .contact-info-section {
      padding: 40px 0 60px;
      background: rgba(0,0,0,0.3);
    }
    .contact-info-section .container {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 30px;
      position: relative;
      z-index: 1;
    }
    .contact-info-block { flex: 1; min-width: 250px; }
    .contact-info-block h4 {
      color: var(--color-white);
      font-size: 20px;
      margin-bottom: 15px;
    }
    .contact-info-block p {
      color: var(--color-white);
      font-size: 15px;
      line-height: 1.8;
      opacity: 0.9;
    }
    .contact-info-block a {
      color: var(--color-white);
      transition: color var(--transition-fast);
    }
    .contact-info-block a:hover { color: var(--color-gold); }

    /* ===== FOOTER ===== */
    #footer {
      position: relative;
      bottom: 0;
      left: 0;
      right: 0;
      height: 50px;
      background-color: var(--color-gold-dark);
      color: var(--color-white);
    }
    #footer .container {
      height: 50px;
      line-height: 50px;
      font-size: 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    #footer .copyright {
      text-align: center;
      height: 50px;
      line-height: 50px;
    }
    #footer .social {
      display: none;
    }
    #footer .social a,
    #footer .social a:active,
    #footer .social a:focus,
    #footer .social a:visited { color: var(--color-white); }
    #footer .copyright a { color: var(--color-white); }
    #footer .social .social-item {
      font-size: 22px;
      padding: 0 12px;
      display: inline-block;
    }
    #footer .social .social-item.facebook {
      border-left: 2px solid var(--color-white);
      border-right: 2px solid var(--color-white);
    }
    #footer .social .social-item.instagram { border-right: 2px solid var(--color-white); }
    #footer .social .social-item.instagram i { margin-left: -2px; }
    #footer .social .social-item.contacto { font-size: 14px; }

    /* ===== RESPONSIVE ===== */
    @media (min-width: 992px) {
      #home .logo {
        width: 460px;
        margin-left: -230px;
        top: 100px;
      }
      #home .home-container .divider {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        width: 8px;
        background-color: var(--color-dark);
        left: 50%;
        margin-left: -4px;
      }
      #home .home-container .enter { opacity: 0; }
      #home .home-container .enter h1 { font-size: 34px; }
      #home .home-container .enter .button {
        font-size: 22px;
        height: 50px;
        line-height: 50px;
        padding: 0 30px;
      }
      #home .home-container .acantilados:hover .overlay,
      #home .home-container .catedral:hover .overlay { opacity: 0; }
      #home .home-container .acantilados:hover .enter,
      #home .home-container .catedral:hover .enter { opacity: 1; }

      .hero-content h1 { font-size: 60px; }
      .weather-section { padding: 120px 0; }
      .weather-section h1 { font-size: 45px; }
      .box-container .box-container .image { height: 360px; padding: 0 25px; }
      .acantilados-info .pin { display: block; }

      .masonry { columns: 4; }
      .masonry-item img { height: auto; }

      #footer .social { display: inline-block; }
      #footer .copyright {
        line-height: inherit;
        text-align: left;
        margin-top: 0;
        float: right;
      }

      .hamburger { display: none !important; }
      .navbar .nav-links { display: flex; }

      /* ===== STICKY FOOTER: page fits viewport on desktop ===== */
      html, body { height: 100%; }

      body {
        display: flex;
        flex-direction: column;
      }

      #main-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        min-height: 0;
      }

      #main-content .page-section.section-visible {
        flex: 1;
        overflow-y: auto;
        min-height: 0;
      }

      #footer { flex-shrink: 0; }

      #main-content .hero,
      #main-content .hero-content,
      #main-content #home {
        height: 100%;
      }

      #main-content #contact-section { min-height: 100%; }
    }

    @media (max-width: 991px) {
      .hamburger { display: block; }
      .navbar .nav-links { display: none; }

      #home .home-container { flex-direction: column; }
      #home .home-container .acantilados,
      #home .home-container .catedral {
        width: 100%;
        height: 50vh;
      }
      #home .home-container .acantilados .enter,
      #home .home-container .catedral .enter { opacity: 1 !important; }
      #home .home-container .overlay { display: none; }
    }

    @media (max-width: 320px) {
      #home .logo { top: 10px; }
      #home .home-container .acantilados .enter,
      #home .home-container .catedral .enter { margin-top: 70px; }
    }

    @media (max-width: 768px) {
      .hero-content h1 { font-size: 24px; bottom: 30px; }
      #contact-section .contact-form h1 { font-size: 36px; }
      .masonry { columns: 2; }
      .contact-info-section .container { flex-direction: column; }
      .info-grid { grid-template-columns: 1fr; gap: 30px; }
      .info-map { order: 2; min-height: auto; }
    }

    @media (max-width: 480px) {
      .masonry { columns: 1; }
      .sub-nav .container { flex-direction: column; text-align: center; }
      .sub-nav .sub-nav-links { flex-wrap: wrap; justify-content: center; }
    }