/* ========================================
   OSORIO MOTORS - Estilos Principales
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;500;600;700&display=swap');

/* Variables CSS - EDITA AQUÍ LOS COLORES */
:root {
  --color-primario: #0a1f3d;
  --color-primario-claro: #1a3a6b;
  --color-secundario: #d4af37;
  --color-secundario-claro: #e8c547;
  --color-acento: #00b341;
  --color-texto: #333333;
  --color-texto-claro: #ffffff;
  --color-fondo: #f8f9fa;
  --color-fondo-oscuro: #0a1628;
  --fuente-titulos: 'Bebas Neue', sans-serif;
  --fuente-cuerpo: 'Montserrat', sans-serif;
  --sombra: 0 4px 20px rgba(0, 0, 0, 0.15);
  --sombra-hover: 0 8px 30px rgba(0, 0, 0, 0.25);
  --transicion: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fuente-cuerpo);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-texto);
  background-color: var(--color-fondo);
}

/* Utilidades */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-family: var(--fuente-titulos);
  font-size: 3rem;
  color: var(--color-primario);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* ========================================
   HEADER / NAVEGACIÓN
   ======================================== */
.header {
  background: linear-gradient(135deg, var(--color-primario) 0%, var(--color-fondo-oscuro) 100%);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--sombra);
}

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

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

.logo img {
  height: 80px;
  width: auto;
  transition: var(--transicion);
}

.logo img:hover {
  transform: scale(1.05);
}

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

.nav-menu a {
  color: var(--color-texto-claro);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 0;
  position: relative;
  transition: var(--transicion);
}

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

.nav-menu a:hover {
  color: var(--color-secundario);
}

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

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

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--color-texto-claro);
  border-radius: 3px;
  transition: var(--transicion);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--color-primario) 0%, var(--color-fondo-oscuro) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23ffffff05" stroke-width="0.5"/><circle cx="50" cy="50" r="30" fill="none" stroke="%23ffffff05" stroke-width="0.5"/><circle cx="50" cy="50" r="20" fill="none" stroke="%23ffffff05" stroke-width="0.5"/></svg>') repeat;
  opacity: 0.5;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-family: var(--fuente-titulos);
  font-size: 4.5rem;
  color: var(--color-texto-claro);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.hero-content h1 span {
  color: var(--color-secundario);
  display: block;
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transicion);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--color-secundario);
  color: var(--color-primario);
}

.btn-primary:hover {
  background: var(--color-secundario-claro);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-texto-claro);
  border: 2px solid var(--color-texto-claro);
}

.btn-secondary:hover {
  background: var(--color-texto-claro);
  color: var(--color-primario);
  transform: translateY(-3px);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  max-width: 450px;
  width: 100%;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

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

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.stat-number {
  font-family: var(--fuente-titulos);
  font-size: 2.5rem;
  color: var(--color-secundario);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   SERVICIOS
   ======================================== */
.servicios {
  padding: 100px 0;
  background: var(--color-fondo);
}

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

.servicio-card {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--sombra);
  transition: var(--transicion);
  position: relative;
  overflow: hidden;
}

.servicio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primario), var(--color-secundario));
  transform: scaleX(0);
  transition: var(--transicion);
}

.servicio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--sombra-hover);
}

.servicio-card:hover::before {
  transform: scaleX(1);
}

.servicio-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.servicio-card h3 {
  font-family: var(--fuente-titulos);
  font-size: 1.5rem;
  color: var(--color-primario);
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.servicio-card p {
  color: #666;
  font-size: 0.95rem;
}

/* ========================================
   SOBRE NOSOTROS
   ======================================== */
.sobre-nosotros {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-primario) 0%, var(--color-fondo-oscuro) 100%);
  color: var(--color-texto-claro);
}

.sobre-nosotros .section-title {
  color: var(--color-texto-claro);
}

.sobre-nosotros .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

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

.sobre-content h3 {
  font-family: var(--fuente-titulos);
  font-size: 2rem;
  color: var(--color-secundario);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.sobre-content p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.sobre-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.feature-icon {
  font-size: 1.5rem;
}

.feature-text {
  font-weight: 600;
  font-size: 0.95rem;
}

.sobre-image {
  display: flex;
  justify-content: center;
}

.sobre-image img {
  max-width: 350px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* ========================================
   TESTIMONIOS
   ======================================== */
.testimonios {
  padding: 100px 0;
  background: var(--color-fondo);
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.testimonio-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--sombra);
  position: relative;
}

.testimonio-card::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 6rem;
  color: var(--color-secundario);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonio-texto {
  font-style: italic;
  color: #555;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  line-height: 1.7;
}

.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonio-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
}

.testimonio-nombre {
  font-weight: 700;
  color: var(--color-primario);
}

.testimonio-estrellas {
  color: var(--color-secundario);
  font-size: 0.9rem;
}

/* ========================================
   CONTACTO
   ======================================== */
.contacto {
  padding: 100px 0;
  background: var(--color-fondo);
}

.contacto-grid-tres {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

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

.contacto-info {
  padding: 40px;
  background: linear-gradient(135deg, var(--color-primario) 0%, var(--color-fondo-oscuro) 100%);
  border-radius: 20px;
  color: var(--color-texto-claro);
}

.contacto-info h3 {
  font-family: var(--fuente-titulos);
  font-size: 2rem;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.info-content h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.info-content p, .info-content a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transicion);
}

.info-content a:hover {
  color: var(--color-secundario);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
  transition: var(--transicion);
}

.whatsapp-btn:hover {
  background: #128C7E;
  transform: scale(1.05);
}

/* Formulario de contacto */
.contacto-formulario {
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--sombra);
}

.contacto-formulario h3 {
  font-family: var(--fuente-titulos);
  font-size: 1.8rem;
  color: var(--color-primario);
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.form-contacto {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grupo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-grupo label {
  font-weight: 600;
  color: var(--color-primario);
  font-size: 0.9rem;
}

.form-grupo input,
.form-grupo select,
.form-grupo textarea {
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: var(--fuente-cuerpo);
  font-size: 1rem;
  transition: var(--transicion);
  background: #fafafa;
}

.form-grupo input:focus,
.form-grupo select:focus,
.form-grupo textarea:focus {
  outline: none;
  border-color: var(--color-primario);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(10, 31, 61, 0.1);
}

.form-grupo textarea {
  resize: vertical;
  min-height: 100px;
}

.form-grupo select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: var(--fuente-cuerpo);
  margin-top: 10px;
}

.btn-submit:hover {
  background: var(--color-secundario-claro);
  transform: translateY(-2px);
}

.contacto-mapa {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sombra);
  height: 100%;
  min-height: 400px;
}

.contacto-mapa iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: linear-gradient(135deg, var(--color-secundario) 0%, #b8960a 100%);
  color: var(--color-primario);
  padding: 60px 0 30px;
}

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

.footer-brand img {
  height: 100px;
  margin-bottom: 20px;
}

.footer-brand p {
  max-width: 300px;
  opacity: 0.9;
  line-height: 1.7;
}

.footer h4 {
  font-family: var(--fuente-titulos);
  font-size: 1.3rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

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

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

.footer-links a {
  color: var(--color-primario);
  text-decoration: none;
  transition: var(--transicion);
  opacity: 0.9;
}

.footer-links a:hover {
  opacity: 1;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(10, 31, 61, 0.2);
}

.footer-bottom p {
  opacity: 0.8;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
  .hero-container,
  .sobre-container,
  .contacto-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contacto-grid-tres {
    grid-template-columns: 1fr;
  }

  .contacto-formulario {
    order: -1;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

  .hero-content p {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-logo {
    max-width: 300px;
  }

  .sobre-features {
    grid-template-columns: 1fr;
  }

  .sobre-image {
    order: -1;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--color-primario);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: var(--transicion);
  }

  .nav-menu.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

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

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

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

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .contacto-info {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .servicio-card {
    padding: 30px 20px;
  }
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}
