/* 
    ClauMotor.cl - Design System
    Colors: French Flag Inspired (Blue, White, Red)
*/

:root {
  --blue: #002395;
  --white: #ffffff;
  --red: #ed2939;
  --dark-blue: #001a71;
  --light-gray: #f8fafc;
  --border-color: #e2e8f0;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --overlay-bg: rgba(0, 35, 149, 0.65);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-main: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, .btn, .brand-text {
  font-family: 'Outfit', sans-serif;
}

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

.section {
  padding: 100px 0;
}

.section-label {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 2px;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

/* Navigation */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

#main-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0;
}

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

.logo img {
  height: 65px;
  transition: var(--transition-smooth);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

#main-nav.scrolled .logo img {
  height: 55px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  transition: var(--transition-smooth);
  font-size: 1rem;
}

#main-nav.scrolled .nav-links a {
  color: var(--blue);
}

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

#main-nav.scrolled .nav-links a.btn-primary {
  color: var(--white);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--overlay-bg) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 4rem); /* Fluid typography */
  font-weight: 800;
  margin-bottom: 2rem;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.text-accent {
  color: var(--red);
  position: relative;
}

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

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  gap: 0.5rem;
  border: none;
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.btn-primary {
  background-color: var(--red);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(237, 41, 57, 0.3);
}

.btn-primary:hover {
  background-color: var(--blue);
  box-shadow: 0 6px 20px rgba(0, 35, 149, 0.4);
  transform: translateY(-3px);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

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

.btn-full {
  width: 100%;
}

/* Scroll Progress Bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background-color: var(--red);
  z-index: 1001;
}

/* Nosotros Section */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.nosotros-text p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.divider {
  width: 60px;
  height: 4px;
  background: var(--red);
  margin-bottom: 2rem;
}

.nosotros-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: var(--blue);
}

.feature-item i {
  color: var(--red);
}

.nosotros-image {
  position: relative;
}

.image-box {
  background: var(--light-gray);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-main);
  position: relative;
  padding: 4rem 2rem 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 400px;
}

.image-box img {
  width: 100%;
  max-width: 320px;
  object-fit: contain;
  margin-top: -1rem;
}

.experience-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--blue);
  color: var(--white);
  padding: 1.25rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 35, 149, 0.25);
}

.experience-badge .number {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}

/* Services */
.services-section {
  background-color: var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-inline: auto;
}

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

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  transition: var(--transition-smooth);
  border-bottom: 4px solid transparent;
  box-shadow: var(--shadow-main);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--red);
}

.service-card.highlight {
  background: var(--blue);
  color: var(--white);
}

.service-card .service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--red);
}

.service-card.highlight .service-icon {
  color: var(--white);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: inherit;
}

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

.service-card.highlight p {
  color: rgba(255,255,255,0.8);
}

.service-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.view-more {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--red);
  font-size: 0.85rem;
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
}

.service-card.highlight .view-more {
  color: var(--white);
}

.service-card:hover .view-more {
  gap: 0.75rem;
}

/* Booking Form */
.booking-section {
  background: var(--white);
}

.info-list {
  margin-top: 2rem;
}

.info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--red);
  background: #fff5f5;
  padding: 1rem;
  border-radius: 12px;
  height: fit-content;
}

.info-item h4 {
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.booking-form-wrapper {
  background: var(--white);
  padding: 3rem;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 1px solid var(--border-color);
}

.booking-form .form-group {
  margin-bottom: 1.5rem;
}

.booking-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--blue);
  font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-family: inherit;
  transition: var(--transition-smooth);
}

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

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* Map */
.map-section {
  line-height: 0;
}

/* Footer */
footer {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 80px 0 30px;
}

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

.footer-logo {
  height: 80px;
  margin-bottom: 2rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  max-width: 400px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-icons a:hover {
  background: var(--red);
  transform: translateY(-5px);
}

.footer-links h3, .footer-contact h3 {
  margin-bottom: 2rem;
  font-size: 1.25rem;
}

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

.footer-links li, .footer-contact li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

.footer-contact li {
  display: flex;
  gap: 1rem;
  color: rgba(255,255,255,0.7);
}

.footer-contact i {
  color: var(--red);
}

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

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128c7e;
}

.whatsapp-float .tooltip {
  position: absolute;
  right: 70px;
  background: #333;
  color: #fff;
  padding: 5px 15px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.whatsapp-float:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 2000;
  padding: 10px;
}

.mobile-menu-btn span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--white);
  transition: var(--transition-smooth);
}

#main-nav.scrolled .mobile-menu-btn span {
  background-color: var(--blue);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 968px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--blue);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 20px rgba(0,0,0,0.2);
    z-index: 1000;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li {
    margin: 1.5rem 0;
  }

  .nav-links a {
    font-size: 1.5rem;
    color: var(--white) !important;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .booking-form-wrapper {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .hero-btns {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }
  
  .btn-large {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .footer-brand p, .footer-contact li {
    margin-inline: auto;
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 35, 149, 0.85);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: var(--white);
  margin: 5% auto;
  padding: 3rem;
  border-radius: 25px;
  width: 90%;
  max-width: 700px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--light-gray);
  line-height: 1;
}

.close-modal:hover {
  color: var(--red);
  background: #fff0f0;
}

#modal-body h2 {
  color: var(--blue);
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
  font-weight: 800;
}

#modal-body h3 {
  color: var(--red);
  margin: 1.5rem 0 0.75rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#modal-body p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

#modal-body ul {
  list-style: none;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  #modal-body ul { grid-template-columns: 1fr; }
}

#modal-body li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

#modal-body li i {
  color: var(--red);
  font-size: 1.1rem;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: right;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@media (max-width: 600px) {
  .modal-content {
    padding: 2rem;
    margin: 10% auto;
    width: 95%;
  }
}

