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

:root {
  --primary: #009e72;
  --primary-dark: #00795a;
  --primary-light: #00c48f;
  --white: #fff;
  --dark: #1a1a2e;
  --gray-text: #555;
  --bg-light: #f7f8fc;
  --bg-white: #fff;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body, p, span, h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', arial, sans-serif !important;
}

body {
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
h1 { font-size: 3rem !important; line-height: 1.1; }
h2 { font-size: 2.2rem !important; line-height: 1.2; }
h3 { font-size: 1.4rem !important; line-height: 1.3; }
h4 { font-size: 1.1rem !important; }

h1 span {
  width: 100%;
  float: left;
  -webkit-clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 80%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 80%);
  transform: translateY(-50px);
  opacity: 0;
  animation-name: titleAnimation;
  animation-timing-function: ease;
  animation-duration: 3s;
  animation-delay: 0s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

.text-color { color: var(--primary); }
.text-blanco { color: #fff; }
.text-gray { color: var(--gray-text); }

/* --- NAVBAR --- */
.navbar-main {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

/* --- HERO --- */
.hero {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M0 40h80M40 0v80' stroke='rgba(255,255,255,0.06)' stroke-width='0.5' fill='none'/%3E%3Ccircle cx='40' cy='40' r='1.5' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='0' cy='0' r='1' fill='rgba(255,255,255,0.07)'/%3E%3Ccircle cx='80' cy='0' r='1' fill='rgba(255,255,255,0.07)'/%3E%3Ccircle cx='0' cy='80' r='1' fill='rgba(255,255,255,0.07)'/%3E%3Ccircle cx='80' cy='80' r='1' fill='rgba(255,255,255,0.07)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cpath d='M0 120h240M120 0v240M0 0l240 240M240 0L0 240' stroke='rgba(255,255,255,0.03)' stroke-width='0.5' fill='none'/%3E%3Ccircle cx='120' cy='120' r='2.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='60' cy='60' r='1.5' fill='rgba(255,255,255,0.05)'/%3E%3Ccircle cx='180' cy='60' r='1.5' fill='rgba(255,255,255,0.05)'/%3E%3Ccircle cx='60' cy='180' r='1.5' fill='rgba(255,255,255,0.05)'/%3E%3Ccircle cx='180' cy='180' r='1.5' fill='rgba(255,255,255,0.05)'/%3E%3Cpath d='M60 60l60 60 60-60M60 180l60-60 60 60' stroke='rgba(255,255,255,0.025)' stroke-width='0.5' fill='none'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(0,220,160,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(0,180,130,0.18) 0%, transparent 55%),
    linear-gradient(155deg, var(--primary) 0%, #008c64 40%, #00795a 70%, #00654c 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroFloat 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroFloat 10s ease-in-out infinite reverse;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}

.hero h1 {
  color: #fff;
  font-size: 3.5rem !important;
  margin-bottom: 1.5rem;
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero .lead {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.95);
  font-weight: 400;
}

/* --- BUTTONS --- */
.btn { border-radius: 8px !important; font-weight: 600 !important; transition: var(--transition); }

.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  padding: 12px 32px !important;
  font-size: 0.95rem;
}
.btn-primary:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,158,114,0.35);
}

.btn-outline-light {
  padding: 12px 32px !important;
  font-weight: 600 !important;
  border-width: 2px;
}
.btn-outline-light:hover {
  background: #fff !important;
  color: var(--primary) !important;
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  border-width: 2px;
  padding: 10px 24px !important;
}
.btn-outline-primary:hover {
  background-color: var(--primary) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,158,114,0.25);
}

/* --- SECTIONS --- */
.section-padding {
  padding: 100px 0;
}

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

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

.section-title h2 {
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

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

/* --- SERVICE CARDS --- */
.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,158,114,0.15);
}

.service-card .icon-wrap {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(0,158,114,0.1), rgba(0,158,114,0.05));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .icon-wrap {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.15rem !important;
  margin-bottom: 14px;
  text-transform: none;
}

.service-card p {
  color: var(--gray-text);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --- ABOUT / WHY US --- */
.about-section {
  background: var(--bg-white);
}

.stat-box {
  text-align: center;
  padding: 30px 20px;
}

.stat-box .stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-box p {
  color: var(--gray-text);
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- PROGRAMS BANNER --- */
.programs-banner {
  background-image: url(../image/bg-03.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

.programs-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 62, 45, 0.7);
}

.programs-banner .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 575px) {
  .programs-banner {
    background-color: var(--primary-dark);
    background-image: none;
  }
}

.program-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.program-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}

.program-card h3 {
  color: #fff;
  font-size: 1.3rem !important;
  margin-bottom: 12px;
}

.program-card p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

.program-card .btn {
  margin-top: 16px;
}

/* --- CONTACT FORM --- */
.contact-section {
  background: var(--bg-light);
}

.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: none;
}

.form-control {
  border: 0 !important;
  border-bottom: 2px solid #e8e8e8 !important;
  border-radius: 0 !important;
  padding: 12px 0 !important;
  font-size: 0.95rem;
  background: transparent !important;
  transition: var(--transition);
}
.form-control:focus {
  box-shadow: none !important;
  border-color: var(--primary) !important;
}
.form-check-input:checked {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.form-check-label {
  font-size: 13px;
  line-height: 1.4;
  margin-top: 4px;
  color: var(--gray-text);
}

/* --- FOOTER --- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer a {
  color: rgba(255,255,255,0.7);
}
.footer a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  margin-top: 40px;
}

/* --- ANIMATIONS --- */
@keyframes titleAnimation {
  0% {
    transform: translateY(-50px);
    opacity: 0;
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 80%);
  }
  20% {
    transform: translateY(0);
    opacity: 1;
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 0%);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 0%);
  }
}

.fade-in {
  animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  h1 { font-size: 2.4rem !important; }
  .hero h1 { font-size: 2.6rem !important; }
  .hero { min-height: 70vh; }
  .section-padding { padding: 70px 0; }
  .contact-card { padding: 30px 20px; }
}

@media (max-width: 767px) {
  h1 { font-size: 2rem !important; }
  .hero h1 { font-size: 2.2rem !important; }
  h2 { font-size: 1.7rem !important; }
  .hero { min-height: 60vh; }
  .section-padding { padding: 50px 0; }
  .stat-box .stat-number { font-size: 2.2rem; }
}

@media (max-width: 575px) {
  .hero h1 { font-size: 1.8rem !important; }
  .hero::before, .hero::after { display: none; }
}
