/* ============================================
   CHESS GROUP — Estilos globales
   Tipografías: Poppins (titulares) + Roboto (cuerpo)
   Colores: beige/oro #C1C179, oscuro #323335, blanco #FFFFFF
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: #323335;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

/* ============================================
   HEADER / NAVEGACIÓN
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu a {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 400;
  transition: opacity 0.2s;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #C1C179;
  transition: width 0.3s;
}

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

.nav-menu a:hover {
  opacity: 0.85;
}

/* Hamburguesa (móvil) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Menú móvil */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #C1C179;
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  transition: opacity 0.2s;
}

.mobile-menu a:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

.scroll-arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-arrow svg {
  width: 30px;
  height: 15px;
  fill: #fff;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   SECCIONES DE CONTENIDO
   ============================================ */
.section {
  padding: 80px 20px;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-wide {
  max-width: 1280px;
  margin: 0 auto;
}

/* Sección con dos columnas: texto + imagen */
.split-section {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px 20px;
}

.split-section .text-col {
  flex: 1;
  max-width: 600px;
}

.split-section .img-col {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
}

.split-section .img-col img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.split-section.reverse {
  flex-direction: row-reverse;
}

@media (max-width: 900px) {
  .split-section,
  .split-section.reverse {
    flex-direction: column;
    gap: 30px;
    padding: 60px 20px;
  }
}

.section h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 20px;
}

.section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 16px;
}

.section h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.section p {
  margin-bottom: 16px;
  line-height: 1.7;
}

/* Fondo oscuro */
.section-dark {
  background: #1a1a1a;
  color: #fff;
}

/* Fondo gris claro */
.section-light {
  background: #f5f5f5;
}

/* Fondo beige */
.section-beige {
  background: #C1C179;
  color: #fff;
}

/* Texto centrado */
.text-center {
  text-align: center;
}

/* ============================================
   BOTÓN CTA
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid #fff;
  border-radius: 5px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-dark {
  border-color: #323335;
  color: #323335;
}

.btn-dark:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Botón WhatsApp */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-whatsapp:hover {
  background: #1ebe57;
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* ============================================
   SECCIÓN WHATSAPP CTA
   ============================================ */
.whatsapp-section {
  padding: 60px 20px;
  text-align: center;
  background: #f5f5f5;
}

.whatsapp-section h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.whatsapp-section p {
  margin-bottom: 20px;
  color: #666;
}

/* ============================================
   SECCIÓN TELÉFONO
   ============================================ */
.phone-section {
  padding: 60px 20px;
  text-align: center;
}

.phone-section h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: #fff;
}

.phone-section a {
  color: #fff;
  transition: opacity 0.2s;
}

.phone-section a:hover {
  opacity: 0.7;
}

/* ============================================
   IMAGEN COVER (sección con imagen de fondo)
   ============================================ */
.cover-image-section {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 300px;
  overflow: hidden;
}

.cover-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   SLIDER / CAROUSEL
   ============================================ */
.slider {
  position: relative;
  width: 100%;
  height: 640px;
  overflow: hidden;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.slide-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
}

.slide-content p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.slider-dot.active {
  background: #fff;
}

@media (max-width: 768px) {
  .slider {
    height: 400px;
  }
}

/* ============================================
   ACORDEÓN / COLUMNAS (Trabaja con nosotros)
   ============================================ */
.two-columns {
  display: flex;
  gap: 40px;
}

.two-columns .col {
  flex: 1;
  padding: 20px 0;
  border-top: 1px solid #dcdcdc;
}

.two-columns .col:first-child {
  border-top: none;
}

.two-columns .col h3 {
  margin-bottom: 12px;
}

.two-columns .col ul {
  padding-left: 0;
}

.two-columns .col li {
  padding: 4px 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .two-columns {
    flex-direction: column;
    gap: 0;
  }
  .two-columns .col:first-child {
    border-top: 1px solid #dcdcdc;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #1a1a1a;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   UTILIDADES
   ============================================ */
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* Imagen placeholder cuando no hay foto */
.img-placeholder {
  background: linear-gradient(135deg, #C1C179 0%, #8a8a4a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 3rem;
  min-height: 300px;
}
