/* Variables de colores - Inspirados en la bandera malaya */
:root {
  --primary-color: #0033A0; /* Azul malayo */
  --secondary-color: #DC241F; /* Rojo malayo */
  --accent-color: #FFCC00; /* Amarillo malayo */
  --light-color: #FFFFFF;
  --dark-color: #333333;
  --gray-color: #F5F5F5;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Estilos básicos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', 'Arial', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 15px;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

.text-center h2:after {
  left: 50%;
  transform: translateX(-50%);
}

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border-radius: var(--border-radius);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--secondary-color);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover:before {
  width: 100%;
}

.btn:hover {
  border-color: var(--secondary-color);
  color: var(--light-color);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-outline:hover {
  color: var(--light-color);
}

/* Header - Diseño Batik Malayo */
header {
  background-color: var(--light-color);
  box-shadow: var(--box-shadow);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--primary-color);
}

.logo svg {
  margin-right: 10px;
}

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

.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-menu li a {
  color: var(--dark-color);
  font-weight: 600;
  position: relative;
  padding: 5px 0;
}

.nav-menu li a:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
}

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

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Hero Section - Diseño inspirado en Malasia */
.hero {
  padding: 160px 0 100px;
  background-color: var(--primary-color);
  background-image: 
    repeating-linear-gradient(45deg, rgba(255,204,0,0.1) 0px, rgba(255,204,0,0.1) 20px, transparent 20px, transparent 40px),
    linear-gradient(180deg, var(--primary-color) 0%, #001F60 100%);
  color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: '';
  position: absolute;
  right: -200px;
  bottom: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 204, 0, 0.1);
}

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

.hero h1 {
  color: var(--light-color);
  margin-bottom: 1.5rem;
  font-size: 3rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-image {
  flex-basis: 50%;
  position: relative;
}

.hero-btns {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

/* Características - Diseño Cameron Highlands */
.features {
  padding: 100px 0 70px;
  background-color: var(--gray-color);
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title p {
  max-width: 700px;
  margin: 0 auto;
}

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

.feature-box {
  background-color: var(--light-color);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: center;
}

.feature-box:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--secondary-color);
  z-index: -1;
}

.feature-box:hover {
  transform: translateY(-10px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 51, 160, 0.1);
  border-radius: 50%;
  color: var(--primary-color);
}

.feature-icon svg {
  width: 35px;
  height: 35px;
}

.feature-box h3 {
  margin-bottom: 15px;
}

/* Cómo funciona - Diseño Malacca */
.how-it-works {
  padding: 100px 0 70px;
  background-color: var(--light-color);
  position: relative;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.step-box {
  text-align: center;
  padding: 30px;
  position: relative;
}

.step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
}

.step-box h3 {
  margin-top: 20px;
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Acerca de - Diseño Petronas */
.about {
  padding: 100px 0;
  background-color: var(--gray-color);
  position: relative;
}

.about-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.about-content {
  flex-basis: 50%;
}

.about-image {
  flex-basis: 50%;
  position: relative;
}

.about-content ul {
  margin: 20px 0;
}

.about-content ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.about-content ul li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* CTA - Diseño Langkawi */
.cta {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--light-color);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 70%);
  z-index: 1;
}

.cta .container {
  position: relative;
  z-index: 10;
}

.cta h2 {
  color: var(--light-color);
  margin-bottom: 20px;
}

.cta p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

.cta .btn {
  background-color: var(--light-color);
  color: var(--secondary-color);
  border-color: var(--light-color);
}

.cta .btn:before {
  background-color: var(--accent-color);
}

.cta .btn:hover {
  color: var(--dark-color);
}

/* Footer - Diseño Batik Malayo */
footer {
  padding: 70px 0 20px;
  background-color: var(--primary-color);
  color: var(--light-color);
  position: relative;
}

.footer-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-column h3 {
  color: var(--light-color);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-column p {
  opacity: 0.8;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
  position: relative;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  padding-left: 15px;
}

.footer-links a:before {
  content: '›';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
}

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

.footer-logo {
  display: block;
  margin-bottom: 20px;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsividad */
@media (max-width: 991px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero {
    padding: 140px 0 80px;
  }
  
  .hero-row {
    flex-direction: column;
  }
  
  .about-row {
    flex-direction: column;
  }
  
  .about-image {
    order: -1;
  }
}

@media (max-width: 767px) {
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    background-color: var(--light-color);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .features-container,
  .steps-container {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
}
