/* Variables CSS Globales */
:root {
  --primary-color: #1A1A1A; /* Negro corporativo */
  --secondary-color: #D4AF37; /* Dorado metálico */
  --tertiary-color: #7B858B; /* Gris plata */
  --bg-color: #FAFAFA; /* Blanco roto / claro */
  --text-main: #333333;
  --text-light: #666666;
  --white: #FFFFFF;
  
  --font-heading: 'Cinzel', serif; /* Elegante para corporativo / trofeos */
  --font-body: 'Inter', sans-serif; /* Limpia para lecturabilidad */
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 15px 30px rgba(0,0,0,0.15);
  
  --radius: 8px;
  --nav-height: 90px;
}

/* Base y Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilidades */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.text-center { text-align: center; }

/* Botones */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: transparent;
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Header & Navegación */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

header.scrolled {
  height: 70px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* Animación Menú Hamburger */
.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Estilos de Páginas Adicionales */
.page-header {
  margin-top: var(--nav-height);
  padding: 6rem 0;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  position: relative;
}
.page-header h1 {
  color: var(--secondary-color);
  font-size: clamp(1.8rem, 6vw, 3rem);
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.page-header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p, .footer-col a {
  color: #cccccc;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  display: block;
}

.footer-col a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #999;
}

.footer-bottom a {
  color: inherit;
  margin: 0 10px;
}
.footer-bottom a:hover {
  color: var(--white);
}

/* Media Queries */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .hamburger {
    display: block;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* WhatsApp Floating Button */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: all 0.3s ease;
  animation: pulse-wa 2s infinite;
}

.whatsapp-floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.whatsapp-floating-btn svg {
  width: 32px;
  height: 32px;
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 600px) {
  .whatsapp-floating-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-floating-btn svg {
    width: 26px;
    height: 26px;
  }
}

/* Modal WhatsApp */
.wa-modal-overlay {
  display: flex;
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.wa-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.wa-modal-content {
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: var(--radius);
  max-width: 700px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.wa-modal-overlay.active .wa-modal-content {
  transform: translateY(0);
}
.wa-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-light);
  background: none;
  border: none;
  transition: color 0.3s;
}
.wa-modal-close:hover {
  color: var(--primary-color);
}
.wa-modal-header {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}
.wa-modal-body p {
  color: var(--text-light);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.wa-modal-body strong {
  color: var(--text-main);
}
.wa-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Cookie Banner & Modal */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
  z-index: 99999;
  padding: 1.5rem 0;
  border-top: 2px solid var(--secondary-color);
}
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cookie-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}
.cookie-content a {
  color: var(--secondary-color);
  text-decoration: underline;
}
.cookie-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-buttons .btn {
  padding: 0.8rem 1.5rem;
  font-size: 0.85rem;
}

.cookie-modal-overlay {
  display: flex;
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 100000;
  justify-content: center;
  align-items: center;
}
.cookie-modal-content {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}
.cookie-modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.cookie-option strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

/* Contact Form & Modal Styles */
.contact-form-container {
  background-color: var(--white);
  padding: 3rem 2.5rem;
  border-radius: var(--radius);
}
.contact-form-container h3 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-main);
}
.required-mark {
  color: #d93025;
  font-size: 0.8rem;
  font-weight: 400;
  margin-left: 4px;
  white-space: nowrap;
}
.form-control {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  background-color: #fafafa;
}
.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.contact-modal-overlay {
  display: flex;
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.contact-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.contact-modal-content {
  background: var(--white);
  padding: 0;
  border-radius: var(--radius);
  max-width: 800px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.contact-modal-overlay.active .contact-modal-content {
  transform: translateY(0);
}
.contact-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-light);
  background: none;
  border: none;
  transition: color 0.3s;
  z-index: 10;
}
.contact-modal-close:hover {
  color: var(--primary-color);
}

