@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --gold-primary: #d4af37;
    --gold-light: #f7eabc;
    --gold-dark: #b8860b;
    --dark: #222;
    --light: #ffffff;
    --gray: #f6f6f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    overflow-x: hidden;
    width: 100%;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    box-shadow: none;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 10px 0;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 20%;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--light);
}

.header.scrolled .logo-text {
    color: var(--dark);
}

.logo-text span {
    color: var(--gold-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--dark);
}

.nav-link:hover {
    color: var(--gold-primary);
}

.header.scrolled .nav-link:hover {
    color: var(--gold-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.close-menu {
    display: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 1001;
}

.nav-menu.active .close-menu {
    display: block;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background-color: var(--light);
}

.header.scrolled .bar {
    background-color: var(--dark);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.submenu {
    position: absolute;
    left: 0;
    top: 110%;
    background: var(--light);
    list-style: none;
    min-width: 230px;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s;
    z-index: 999;
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 12px 18px;
    color: var(--dark);
    font-size: 14px;
    text-decoration: none;
}

.submenu li a:hover {
    background: var(--gray);
    color: var(--gold-primary);
}

/* Hero Section */
.hero {
    width: 100%;
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('Imagenes/tac_maquina.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light);
    position: relative;
    margin: 0;
    padding: 0;
}

.hero-content {
    max-width: 800px;
    width: 90%;
    padding: 0 15px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--gold-light), var(--gold-primary), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(14px, 2.5vw, 18px);
    font-weight: 400;
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--gold-primary);
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: transparent;
    color: var(--gold-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* Location Section */
.location {
    padding: 80px 0;
    background-color: var(--light);
}

.section-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--gold-primary);
}

.location-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.location-info {
    flex: 1;
    min-width: 280px;
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 0.8s forwards;
}

.location-map {
    flex: 1;
    min-width: 280px;
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 0.8s forwards;
}

.location-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
}

.location-text {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

.location-details {
    list-style: none;
    margin-bottom: 25px;
}

.location-details li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    color: #555;
}

.location-details i {
    width: 35px;
    height: 35px;
    background-color: var(--gold-light);
    color: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.location-map iframe {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.directions-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--gold-primary);
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.directions-btn:hover {
    background-color: transparent;
    color: var(--gold-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* Call to Action Section */
.cta {
    padding: 60px 0;
    background-color: var(--light);
    text-align: center;
}

.cta-text {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 20px;
}

/* Footer */
.footer {
    background-color: var(--dark);
    padding: 40px 0 0;
    color: var(--light);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--gold-dark), var(--gold-primary), var(--gold-light), var(--gold-primary), var(--gold-dark));
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.footer-logo {
    min-width: 220px;
}

.footer-logo .logo-text {
    font-size: 22px;
    font-weight: 700;
}

.footer-logo .logo-text span {
    color: var(--gold-primary);
}

.footer-text {
    max-width: 280px;
    font-size: 13px;
    line-height: 1.7;
    color: #999;
    margin-bottom: 15px;
}

.footer-links {
    min-width: 180px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--light);
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.footer-menu a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

.footer-newsletter {
    min-width: 220px;
}

.footer-newsletter p {
    font-size: 13px;
    line-height: 1.7;
    color: #999;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
}

.newsletter-input {
    flex: 1;
    padding: 10px 12px;
    background-color: #333;
    border: none;
    color: var(--light);
    font-size: 13px;
    border-radius: 5px 0 0 5px;
}

.newsletter-input:focus {
    outline: none;
}

.newsletter-btn {
    background-color: var(--gold-primary);
    color: var(--light);
    border: none;
    padding: 0 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background-color: var(--gold-dark);
}

.copyright {
    text-align: center;
    padding: 15px 0;
    font-size: 13px;
    color: #888;
    border-top: 1px solid #333;
    margin-top: 20px;
}

.copyright .highlight {
    color: var(--gold-primary);
    font-weight: 700;
}

.social-links {
    display: flex;
    justify-content: flex-start;
}

.social-link {
    width: 35px;
    height: 35px;
    background-color: var(--gold-light);
    color: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--gold-primary);
    color: var(--light);
    transform: translateY(-5px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background-color: var(--gold-primary);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--gold-dark);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .location-content {
        flex-direction: column;
    }

    .location-info,
    .location-map {
        flex: 100%;
        padding-right: 0;
    }

    .location-info {
        margin-bottom: 30px;
        text-align: center;
    }

    .location-details {
        justify-content: center;
    }

    .location-details li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        margin-left: 10px;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--light);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 60px 0;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 15px 0;
    }

    .nav-link {
        color: var(--dark);
        font-size: 16px;
    }

    .nav-link:hover {
        color: var(--gold-primary);
    }

    .dropdown .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s;
    }

    .dropdown.open .submenu {
        max-height: 600px;
    }
    .nav-link::after {
      display: none !important;
      content: none !important;
  }
    .dropdown-toggle::after {
        content: '▸';
        margin-left: 6px;
    }

    .dropdown.open .dropdown-toggle::after {
        content: '▾';
    }

    .hero {
        height: 50vh;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo, .footer-links, .footer-newsletter {
        margin-bottom: 20px;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 50px;
    }

    .logo-text {
        font-size: 18px;
    }

    .hero {
        height: 40vh;
    }

    .hero-title {
        font-size: clamp(24px, 6vw, 32px);
    }

    .hero-subtitle {
        font-size: clamp(12px, 3vw, 16px);
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .location, .cta {
        padding: 60px 0;
    }

    .section-title {
        font-size: clamp(24px, 3.5vw, 30px);
    }

    .location-map iframe {
        height: 300px;
    }

    .location-details li {
        font-size: 14px;
    }
}
/* Corrección para centrar el mapa en pantallas pequeñas */

/* 1. Mejora del contenedor del mapa para que se centre correctamente */
@media (max-width: 991px) {
  /* Centrar el contenedor del mapa */
  .location-map {
      width: 100% !important;
      max-width: 100% !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      text-align: center !important;
      margin: 0 auto !important;
  }
  
  /* Asegurar que el iframe se adapte correctamente */
  .location-map iframe {
      width: 100% !important;
      max-width: 600px !important; /* Limitar ancho máximo para mejor apariencia */
      margin: 0 auto !important;
      display: block !important;
  }
  
  /* Mejorar la adaptabilidad en pantallas muy pequeñas */
  @media (max-width: 576px) {
      .location-map iframe {
          height: 300px !important;
          border-radius: 8px !important; /* Bordes más sutiles en móvil */
      }
  }
  
  /* 2. Arreglar el espaciado general de esta sección */
  .location-content {
      padding: 0 10px !important;
      gap: 20px !important; /* Reducir espacio entre info y mapa */
  }
  
  .location-info {
      text-align: center !important;
      margin-bottom: 20px !important;
      max-width: 100% !important;
  }
  
  /* Asegurar que los detalles de ubicación estén centrados */
  .location-details {
      width: 100% !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
  }
  
  .location-details li {
      justify-content: flex-start !important; /* Alinear a la izquierda pero centrado en pantalla */
      width: auto !important;
      display: inline-flex !important;
      margin-bottom: 12px !important;
  }
  
  /* Botón de direcciones centrado */
  .directions-btn {
      display: inline-block !important;
      margin: 10px auto !important;
  }
}
