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

:root {
  --black: #0a0a0a;
  --gray: #1f1f1f;
  --gray-light: #2d2d2d;
  --red: #8b1a1a;
  --red-dark: #6b1111;
  --red-light: #a52222;
  --white: #ffffff;
  --gray-text: #9ca3af;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
}

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

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray);
  z-index: 100;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.logo-text p {
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--red-light);
}

.btn {
  background: var(--red);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--red-light);
  box-shadow: 0 10px 30px rgba(139, 26, 26, 0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  box-shadow: none;
}

/* HERO */
#inicio {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(-45deg, var(--black), var(--gray), var(--black), #1a0808);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
  position: relative;
  overflow: hidden;
}

/* Grid de fondo */
#inicio::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(139, 26, 26, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 26, 26, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.hero-bg {
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--red);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.08;
}

.hero-bg-1 { 
  top: 10%; 
  left: 10%; 
  animation: float1 8s ease-in-out infinite;
}

.hero-bg-2 { 
  bottom: 10%; 
  right: 10%; 
  animation: float2 10s ease-in-out infinite;
}

.hero-bg-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  opacity: 0.04;
  animation: pulse 6s ease-in-out infinite;
}

/* Partículas */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 10s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 10s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; animation-duration: 14s; }
.particle:nth-child(4) { left: 40%; animation-delay: 0.5s; animation-duration: 11s; }
.particle:nth-child(5) { left: 50%; animation-delay: 1.5s; animation-duration: 13s; }
.particle:nth-child(6) { left: 60%; animation-delay: 2.5s; animation-duration: 9s; }
.particle:nth-child(7) { left: 70%; animation-delay: 0.8s; animation-duration: 15s; }
.particle:nth-child(8) { left: 80%; animation-delay: 1.8s; animation-duration: 10s; }
.particle:nth-child(9) { left: 90%; animation-delay: 3s; animation-duration: 12s; }
.particle:nth-child(10) { left: 15%; animation-delay: 2.2s; animation-duration: 11s; }
.particle:nth-child(11) { left: 25%; animation-delay: 0.3s; animation-duration: 14s; }
.particle:nth-child(12) { left: 35%; animation-delay: 1.2s; animation-duration: 10s; }
.particle:nth-child(13) { left: 45%; animation-delay: 2.8s; animation-duration: 13s; }
.particle:nth-child(14) { left: 55%; animation-delay: 0.7s; animation-duration: 12s; }
.particle:nth-child(15) { left: 65%; animation-delay: 1.9s; animation-duration: 11s; }
.particle:nth-child(16) { left: 75%; animation-delay: 3.2s; animation-duration: 14s; }
.particle:nth-child(17) { left: 85%; animation-delay: 0.4s; animation-duration: 10s; }
.particle:nth-child(18) { left: 95%; animation-delay: 2.1s; animation-duration: 13s; }
.particle:nth-child(19) { left: 5%; animation-delay: 1.4s; animation-duration: 12s; }
.particle:nth-child(20) { left: 50%; animation-delay: 0.9s; animation-duration: 15s; }

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* Patrón hexagonal */
.hex-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hexagon {
  position: absolute;
  width: 60px;
  height: 69px;
  opacity: 0;
  animation: hexFade 8s ease-in-out infinite;
}

.hexagon polygon {
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 2;
}

/* Posiciones de los hexágonos */
.hexagon:nth-child(1) { top: 5%; left: 8%; width: 50px; animation-delay: 0s; }
.hexagon:nth-child(2) { top: 12%; left: 30%; width: 70px; animation-delay: 0.4s; }
.hexagon:nth-child(3) { top: 8%; left: 55%; width: 45px; animation-delay: 0.8s; }
.hexagon:nth-child(4) { top: 18%; left: 80%; width: 55px; animation-delay: 1.2s; }
.hexagon:nth-child(5) { top: 30%; left: 5%; width: 65px; animation-delay: 1.6s; }
.hexagon:nth-child(6) { top: 35%; left: 22%; width: 40px; animation-delay: 2s; }
.hexagon:nth-child(7) { top: 28%; left: 45%; width: 75px; animation-delay: 2.4s; }
.hexagon:nth-child(8) { top: 40%; left: 70%; width: 50px; animation-delay: 2.8s; }
.hexagon:nth-child(9) { top: 50%; left: 12%; width: 55px; animation-delay: 3.2s; }
.hexagon:nth-child(10) { top: 55%; left: 35%; width: 60px; animation-delay: 3.6s; }
.hexagon:nth-child(11) { top: 48%; left: 60%; width: 45px; animation-delay: 4s; }
.hexagon:nth-child(12) { top: 60%; left: 85%; width: 70px; animation-delay: 4.4s; }
.hexagon:nth-child(13) { top: 70%; left: 6%; width: 50px; animation-delay: 4.8s; }
.hexagon:nth-child(14) { top: 75%; left: 28%; width: 65px; animation-delay: 5.2s; }
.hexagon:nth-child(15) { top: 68%; left: 50%; width: 55px; animation-delay: 5.6s; }
.hexagon:nth-child(16) { top: 80%; left: 75%; width: 45px; animation-delay: 6s; }
.hexagon:nth-child(17) { top: 22%; left: 65%; width: 40px; animation-delay: 6.4s; }
.hexagon:nth-child(18) { top: 85%; left: 40%; width: 60px; animation-delay: 6.8s; }

@keyframes hexFade {
  0%, 100% { 
    opacity: 0;
    transform: scale(0.5);
  }
  20%, 80% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Efecto de resplandor central */
.glow-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 26, 26, 0.1) 0%, transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.5; }
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, 30px) scale(1.1); }
  50% { transform: translate(20px, -40px) scale(0.95); }
  75% { transform: translate(-30px, 20px) scale(1.05); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-40px, -30px) scale(1.05); }
  50% { transform: translate(30px, 50px) scale(1.1); }
  75% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.04; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.06; }
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  margin: 0 auto 32px;
  box-shadow: 0 20px 60px rgba(139, 26, 26, 0.4);
  overflow: hidden;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-content h1 {
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 900;
  margin-bottom: 16px;
}

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

.hero-content p {
  font-size: 20px;
  color: var(--gray-text);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* SECTIONS */
section {
  padding: 100px 20px;
}

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header span {
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-header h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-top: 8px;
}

.section-header p {
  color: var(--gray-text);
  font-size: 18px;
  margin-top: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* QUIENES SOMOS */
#quienes-somos {
  background: var(--gray);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content p {
  color: var(--gray-text);
  font-size: 18px;
  margin-bottom: 24px;
}

.about-content strong {
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.stat-card {
  background: var(--gray-light);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(139, 26, 26, 0.2);
}

.stat-card .number {
  font-size: 36px;
  font-weight: 900;
  color: var(--red);
}

.stat-card .label {
  color: var(--gray-text);
  font-size: 14px;
}

.about-image {
  background: var(--black);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--gray-light);
}

.about-image-placeholder {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 16px;
  overflow: hidden;
}

/* CARRUSEL */
.carousel {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.carousel-dot.active {
  background: var(--red);
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--red);
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.about-image-placeholder .icon {
  width: 80px;
  height: 80px;
  background: rgba(139, 26, 26, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 28px;
  color: var(--red);
  margin-bottom: 16px;
}

/* SERVICIOS */
#servicios {
  background: var(--black);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--gray);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--gray-light);
  transition: all 0.3s;
}

.service-card:hover {
  border-color: rgba(139, 26, 26, 0.5);
  transform: translateY(-8px);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(139, 26, 26, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  transition: background 0.3s;
}

.service-card:hover .service-icon {
  background: var(--red);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--gray-text);
}

/* NOTICIAS */
#noticias {
  background: var(--gray);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--black);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--gray-light);
  transition: border-color 0.3s;
}

.news-card:hover {
  border-color: rgba(139, 26, 26, 0.3);
}

.news-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--gray-light), var(--black));
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 24px;
}

.news-meta {
  font-size: 14px;
  color: var(--gray-text);
  margin-bottom: 12px;
}

.news-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.news-card:hover h3 {
  color: var(--red);
}

.news-card p {
  color: var(--gray-text);
  margin-bottom: 16px;
}

.news-link {
  color: var(--red);
  font-weight: 600;
}

/* CONTACTO */
#contacto {
  background: var(--black);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

/* Mapa de Google */
.map-container {
  margin-top: 60px;
}

.map-container h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--gray-light);
}

.map-wrapper iframe {
  display: block;
}

.map-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--gray-text);
}

.contact-info h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin: 8px 0 24px;
}

.contact-info > p {
  color: var(--gray-text);
  font-size: 18px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(139, 26, 26, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.contact-item h4 {
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--gray-text);
  font-size: 14px;
}

.contact-form {
  background: var(--gray);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--gray-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}

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

.contact-form .btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}

/* REDES SOCIALES */
.social-section {
  padding: 60px 20px;
  background: var(--gray);
  text-align: center;
  border-top: 1px solid var(--gray-light);
}

.social-section h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-link {
  width: 56px;
  height: 56px;
  background: var(--black);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-text);
  font-size: 24px;
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--red);
  color: var(--white);
}

/* FOOTER */
footer {
  background: var(--black);
  border-top: 1px solid var(--gray-light);
  padding: 60px 20px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about p {
  color: var(--gray-text);
  margin-top: 16px;
  max-width: 400px;
}

.footer-links h4,
.footer-schedule h4 {
  font-weight: 700;
  margin-bottom: 20px;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--gray-text);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--red);
}

.footer-schedule p {
  color: var(--gray-text);
  margin-bottom: 8px;
}

.footer-schedule .emergency {
  color: var(--red);
  font-weight: 600;
  margin-top: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--gray-light);
  padding-top: 30px;
  text-align: center;
  color: var(--gray-text);
}

/* RESPONSIVE */
@media (max-width: 968px) {
  .nav-links { display: none; }
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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