@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@500;600;700&family=Mulish:wght@400;500;600;700&display=swap');

:root {
  --primary: #ff9e19;
  --primary-hover: #ed6300;
  --dark: #171615;
  --text: #3f3f46;
  --text-muted: #71717a;
  --bg-light: #f8f9fa;
  --bg-card: #ffffff;
  --border-color: #e4e4e7;
  --radius: 8px;
  --transition: all 0.25s ease-in-out;
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background-color: #fff;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Kanit', sans-serif;
  color: var(--dark);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.25;
}

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

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Header & Navigation */
.site-header {
  background: #00377d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 55, 125, 0.2);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.site-logo img {
  height: 54px;
  width: auto;
}

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

.nav-link {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* Hide mobile cta in desktop navigation */
.btn-cta-mobile {
  display: none;
}

.btn-cta {
  display: inline-block;
  background-color: var(--primary);
  color: #ffffff !important;
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  border: 2px solid var(--primary);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.btn-cta:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(237, 99, 0, 0.25);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  border: 2px solid var(--primary);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #ffffff;
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.52)), url('../assets/images/fondo.jpg') center center / cover no-repeat;
  min-height: 560px;
  padding: 8.5rem 0 8rem;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero .container {
  max-width: 960px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.18;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: 1.15rem;
  color: #ffffff;
  max-width: 780px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Page Banner */
.page-header {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  padding: 3.5rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid #fed7aa;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  color: #52525b;
  max-width: 650px;
  margin: 0 auto;
}

/* Feature Highlights */
.section-features {
  padding: 4rem 0;
  background: #ffffff;
}

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

.feature-card {
  padding: 2.25rem 2rem;
  background: var(--bg-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.feature-label {
  display: inline-block;
  font-family: 'Kanit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

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

/* Section Common */
.section {
  padding: 5rem 0;
}

.section.bg-light {
  background-color: var(--bg-light);
}

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

.section-title h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
  border-color: #fdba74;
}

.service-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #f4f4f5;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.05);
}

.service-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.service-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  color: #52525b;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-img img {
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  width: 100%;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: #4b5563;
}

/* Visual Showcase / Posters */
.showcase-grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.poster-item {
  max-width: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.poster-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #27272a 100%);
  color: #ffffff;
  padding: 4.5rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: #ffffff;
  font-size: 2.3rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: #d4d4d8;
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 2rem;
}

/* Forms */
.form-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  max-width: 720px;
  margin: 0 auto;
}

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

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

.form-group label .required {
  color: #ef4444;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  transition: var(--transition);
  background-color: #fafafa;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 158, 25, 0.15);
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.checkbox-group input {
  margin-top: 0.25rem;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-feedback {
  display: none;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.form-feedback.success {
  display: block;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-feedback.error {
  display: block;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 2.5rem;
  border-left: 4px solid var(--primary);
}

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffedd5;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-details h4 {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.contact-details p, .contact-details a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
}

.map-embed {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: none;
  display: block;
}

/* Legal Content */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.legal-content h2, .legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  margin-bottom: 1.25rem;
  color: #4b5563;
}

.legal-content ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: #4b5563;
}

/* Sponsor / Certificate Banners */
.sponsor-banners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
}

.sponsor-banners img {
  max-width: 480px;
  width: 100%;
  height: auto;
}

/* Footer */
.site-footer {
  background-color: var(--dark);
  color: #a1a1aa;
  padding: 3rem 0 2rem;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: #d4d4d8;
}

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

/* Responsive */
@media (max-width: 900px) {
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 84px;
    left: 0;
    width: 100%;
    background: #00377d;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .header-cta-desktop {
    display: none !important;
  }

  .btn-cta-mobile {
    display: block !important;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #002b66;
  color: #f1f5f9;
  border-top: 3px solid var(--primary);
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.35);
  padding: 1.25rem 1.5rem;
  z-index: 10000;
  display: none;
  animation: slideUpCookie 0.4s ease-out forwards;
}

.cookie-banner.show {
  display: block !important;
}

@keyframes slideUpCookie {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #e2e8f0;
  flex: 1 1 500px;
}

.cookie-text a {
  color: #ffa02b;
  text-decoration: underline;
}

.cookie-text a:hover {
  color: #ffffff;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-cookie-accept {
  background-color: var(--primary);
  color: #ffffff;
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.65rem 1.3rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cookie-accept:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-cookie-reject {
  background: transparent;
  color: #ffffff;
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.65rem 1.3rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.btn-cookie-reject:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

@media (max-width: 768px) {
  .cookie-container {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions button {
    flex: 1;
  }
}

