/* ============================================
   CONEXAM SPAI - ESTILOS PRINCIPALES
   Diseño: Oscuro & Dorado
   Tipografía: Inter (Google Fonts)
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

:root {
  --bg-dark: #0a0e14;
  --bg-darker: #050709;
  --gold: #c9a045;
  --gold-light: #d4b96d;
  --text-light: #e8e8e8;
  --text-muted: #a8a8a8;
  --accent: #1a1f2e;
  --border-color: #2a3140;
}

body {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   HEADER & NAVEGACIÓN
   ============================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 14, 20, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 1rem 2rem;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--gold);
}

nav a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--gold);
  transition: all 0.3s ease;
  border-radius: 2px;
}

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

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

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

/* ============================================
   RESPONSIVE - MENÚ MÓVIL
   ============================================ */

@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 20, 0.98);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav.active {
    max-height: 400px;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  nav li {
    border-bottom: 1px solid var(--border-color);
  }

  nav a {
    display: block;
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  nav a::after {
    display: none;
  }

  nav a:hover {
    background: rgba(201, 160, 69, 0.1);
    color: var(--gold);
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  background: url('https://images.pexels.com/photos/1756957/pexels-photo-1756957.jpeg?auto=compress&cs=tinysrgb&w=800') no-repeat center/cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 20, 0.7);
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 160, 69, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

/* ============================================
   PAGE BANNER (Para otras páginas)
   ============================================ */

.page-banner {
  margin-top: 80px;
  min-height: 40vh;
  background: url('https://images.pexels.com/photos/1756957/pexels-photo-1756957.jpeg?auto=compress&cs=tinysrgb&w=800') no-repeat center/cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 20, 0.7);
  z-index: 1;
}

.page-banner h1 {
  position: relative;
  z-index: 2;
}

.page-banner .subtitle {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
  animation: slideDown 0.8s ease;
}

.hero h1 span {
  color: var(--gold);
}

.hero .subtitle {
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: slideUp 0.8s ease 0.2s both;
  max-width: 700px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp 0.8s ease 0.4s both;
}

.btn {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border-radius: 5px;
  display: inline-block;
}

.btn:hover {
  background: var(--gold);
  color: var(--bg-dark);
  transform: translateY(-3px);
}

.btn.primary {
  background: var(--gold);
  color: var(--bg-dark);
}

.btn.primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SECCIÓN NOSOTROS
   ============================================ */

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 3rem;
  text-align: center;
  font-weight: 700;
}

.section-title span {
  color: var(--gold);
}

.nosotros-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.nosotros-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.nosotros-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(201, 160, 69, 0.05);
  border-left: 3px solid var(--gold);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(201, 160, 69, 0.1);
  transform: translateX(10px);
}

.feature-item i {
  color: var(--gold);
  font-size: 1.5rem;
  min-width: 30px;
}

.feature-item-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-item-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .nosotros-content {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   SECCIÓN SERVICIOS
   ============================================ */

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.servicio-card {
  background: rgba(201, 160, 69, 0.05);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.servicio-card:hover {
  border-color: var(--gold);
  background: rgba(201, 160, 69, 0.1);
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(201, 160, 69, 0.2);
}

.servicio-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.servicio-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.servicio-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   SECCIÓN ESTADÍSTICAS
   ============================================ */

.stats-section {
  background: linear-gradient(135deg, rgba(201, 160, 69, 0.1) 0%, rgba(26, 31, 46, 0.5) 100%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

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

.stat-number {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-family: 'Courier New', monospace;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   SECCIÓN MARCAS
   ============================================ */

.marcas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.marca-item {
  background: rgba(201, 160, 69, 0.05);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  transition: all 0.3s ease;
}

.marca-item:hover {
  border-color: var(--gold);
  background: rgba(201, 160, 69, 0.1);
  transform: scale(1.05);
}

.marca-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
}

/* ============================================
   SECCIÓN FAQ
   ============================================ */

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  background: rgba(201, 160, 69, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  background: rgba(201, 160, 69, 0.08);
  border-left: 3px solid var(--gold);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(201, 160, 69, 0.12);
}

.faq-question i {
  color: var(--gold);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================
   SECCIÓN CONTACTO
   ============================================ */

.contacto-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.info-item i {
  color: var(--gold);
  font-size: 1.5rem;
  min-width: 30px;
  margin-top: 0.25rem;
}

.info-item-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.info-item-content p {
  color: var(--text-muted);
}

.info-item-content a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-item-content a:hover {
  color: var(--gold-light);
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-light);
}

.form-group input,
.form-group textarea {
  background: rgba(201, 160, 69, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  padding: 0.75rem 1rem;
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(201, 160, 69, 0.08);
  box-shadow: 0 0 10px rgba(201, 160, 69, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group button {
  align-self: flex-start;
}

#mapa-contacto {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .contacto-wrapper {
    grid-template-columns: 1fr;
  }

  #mapa-contacto {
    height: 300px;
  }
}

/* ============================================
   PÁGINA SERVICIOS DETALLADA
   ============================================ */

.servicio-detalle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: center;
  padding: 3rem 2rem;
  background: rgba(201, 160, 69, 0.05);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.servicio-detalle-icon {
  font-size: 5rem;
  color: var(--gold);
  text-align: center;
}

.servicio-detalle-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.servicio-detalle-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .servicio-detalle {
    grid-template-columns: 1fr;
  }

  .servicio-detalle-icon {
    font-size: 3rem;
  }
}

/* ============================================
   PÁGINA PROYECTOS
   ============================================ */

.proyectos-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.proyecto-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  cursor: pointer;
}

.proyecto-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.proyecto-item:hover img {
  transform: scale(1.1);
}

.proyecto-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(201, 160, 69, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.proyecto-item:hover .proyecto-overlay {
  opacity: 1;
}

.proyecto-overlay-content {
  text-align: center;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.7rem;
}

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* ============================================
   PÁGINAS LEGALES
   ============================================ */

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--gold);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.legal-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 0.7rem;
  line-height: 1.8;
}

/* ============================================
   UTILIDADES
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

/* ============================================
   ANIMACIONES DE SCROLL
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  header,
  footer,
  .btn {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
