/* =========================================
   VARIABLES & PALETA DE COLORES
   ========================================= */
:root {
  --color-coral: #F44E32;
  --color-teal: #006259;
  --color-cream: #FDF3E5;
  --color-pink: #F87DA8;
  --color-yellow: #F5A800;
  --color-white: #FFFFFF;
  --color-dark: #1E2322;
  --color-muted: #55605D;
  
  --font-display: 'Lilita One', cursive, sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --shadow-sm: 0 4px 12px rgba(0, 98, 89, 0.08);
  --shadow-md: 0 10px 25px rgba(0, 98, 89, 0.12);
  --shadow-lg: 0 18px 35px rgba(0, 98, 89, 0.16);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-dark);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
}

h1, h2, h3, .brand-text, .brand-logo, .footer-logo {
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

.highlight-coral {
  color: var(--color-coral);
}

.section-tag {
  display: inline-block;
  background-color: rgba(245, 168, 0, 0.25);
  color: var(--color-teal);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px auto;
}

.section-title {
  font-size: 2.3rem;
  color: var(--color-teal);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* =========================================
   BOTONES
   ========================================= */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease-in-out;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-coral);
  color: var(--color-white) !important;
  box-shadow: 0 4px 14px rgba(244, 78, 50, 0.35);
}
.btn-primary:hover {
  background-color: #d83d23;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--color-teal);
  color: var(--color-white) !important;
}
.btn-secondary:hover {
  background-color: #004c44;
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--color-teal);
  color: var(--color-teal);
  background: transparent;
  padding: 10px 18px;
  font-size: 0.95rem;
}
.btn-outline:hover {
  background-color: var(--color-teal);
  color: var(--color-white) !important;
}

.btn-demo-action {
  width: 100%;
  margin-top: auto;
}

.btn-nav {
  padding: 10px 24px;
  background-color: var(--color-teal) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 98, 89, 0.2);
}
.btn-nav:hover {
  background-color: #004c44 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* =========================================
   NAVBAR & MENÚ DESPLEGABLE
   ========================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(253, 243, 229, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(0, 98, 89, 0.08);
  padding: 14px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 12px;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-text {
  font-size: 1.5rem;
  color: var(--color-coral);
}
.brand-text span {
  color: var(--color-teal);
}

.nav-menu ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 24px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--color-teal);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-menu a:hover,
.nav-highlight {
  color: var(--color-coral) !important;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-trigger {
  background: transparent;
  border: none;
  color: var(--color-teal);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 8px 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.dropdown-trigger:hover {
  color: var(--color-coral);
}

.dropdown-content {
  display: none !important;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background-color: var(--color-white);
  min-width: 260px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: 12px 0;
  flex-direction: column;
  gap: 4px;
  z-index: 1050;
}

.dropdown-content.is-active {
  display: flex !important;
}

.dropdown-content li {
  width: 100%;
}

.dropdown-content a {
  padding: 10px 18px;
  display: block;
  font-size: 0.9rem;
  color: var(--color-teal) !important;
}

.dropdown-content a:hover {
  background-color: var(--color-cream);
  color: var(--color-coral) !important;
}

.dropdown-divider {
  border: none;
  border-top: 1px solid #ECECEC;
  margin: 6px 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background-color: var(--color-teal);
  border-radius: 4px;
}

/* =========================================
   HERO
   ========================================= */
.hero-section {
  padding: 70px 0 90px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.badge {
  display: inline-block;
  background: var(--color-pink);
  color: var(--color-white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  color: var(--color-teal);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-muted);
  margin-bottom: 30px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-card-art {
  background-color: var(--color-white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.hero-card-art:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-img {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-md);
}

/* =========================================
   SERVICIOS
   ========================================= */
.services-section {
  padding: 80px 0;
  background-color: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.service-card {
  background-color: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  border-top: 6px solid transparent;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.border-coral { border-top-color: var(--color-coral); }
.border-teal { border-top-color: var(--color-teal); }
.border-yellow { border-top-color: var(--color-yellow); }
.border-pink { border-top-color: var(--color-pink); }

.card-icon-container {
  width: 65px;
  height: 65px;
  margin-bottom: 18px;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--color-teal);
}

.service-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 20px;
}

.card-link {
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}
.link-coral { color: var(--color-coral); }
.link-teal { color: var(--color-teal); }
.link-yellow { color: #b67b00; }
.link-pink { color: #d6487a; }

/* =========================================
   DEMOS
   ========================================= */
.demos-section {
  padding: 80px 0;
}

.demo-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--color-white);
  border: 1px solid rgba(0, 98, 89, 0.2);
  color: var(--color-teal);
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--color-teal);
  color: var(--color-white);
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.demo-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.demo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.demo-preview {
  height: 150px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bg-pink-light { background-color: #ffe6ef; }
.bg-teal-light { background-color: #dff2ef; }
.bg-yellow-light { background-color: #fff4d9; }
.bg-coral-light { background-color: #ffe5e0; }

.demo-preview-img {
  max-height: 80px;
  max-width: 80px;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.demo-card:hover .demo-preview-img {
  transform: scale(1.08);
}

.demo-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-teal);
}

.tag-live {
  background-color: #006259;
  color: #FFFFFF;
}

.demo-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.demo-info h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--color-teal);
}

.demo-info p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* =========================================
   MISIÓN & VISIÓN
   ========================================= */
.mv-section {
  padding: 80px 0;
  background-color: var(--color-white);
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.mv-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  position: relative;
}

.vision-box {
  background-color: #FFF9F0;
  border-left: 6px solid var(--color-yellow);
}

.mision-box {
  background-color: #F0F8F6;
  border-left: 6px solid var(--color-teal);
}

.mv-header {
  margin-bottom: 15px;
}

.mv-header h3 {
  font-size: 1.7rem;
  color: var(--color-teal);
}

.mv-card p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* =========================================
   NOSOTROS
   ========================================= */
.about-section {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--color-muted);
}

.about-highlights {
  display: flex;
  gap: 30px;
  margin-top: 25px;
}

.highlight-item h4 {
  font-size: 2.2rem;
  color: var(--color-coral);
  line-height: 1;
}

.highlight-item p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-teal);
}

.about-badge-box {
  display: flex;
  justify-content: center;
}

.circular-stamp {
  width: 220px;
  height: 220px;
  background: var(--color-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-md);
  border: 6px dashed var(--color-white);
  padding: 20px;
}

/* =========================================
   CONTACTO
   ========================================= */
.contact-section {
  padding: 80px 0;
  background-color: var(--color-white);
}

.contact-container {
  max-width: 700px;
}

.contact-form {
  background: var(--color-cream);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--color-teal);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 98, 89, 0.2);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-coral);
}

.form-status {
  display: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-align: center;
}

.form-status.success {
  display: block;
  background-color: #D4EDDA;
  color: #155724;
  border: 1px solid #C3E6CB;
}

.form-status.error {
  display: block;
  background-color: #F8D7DA;
  color: #721C24;
  border: 1px solid #F5C6CB;
}

.btn-block {
  width: 100%;
}

/* =========================================
   MODAL
   ========================================= */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--color-white);
  padding: 30px;
  border-radius: var(--radius-md);
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--color-muted);
}

.modal-title {
  color: var(--color-teal);
  margin-bottom: 15px;
}

.modal-body {
  margin-bottom: 20px;
  color: var(--color-muted);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background-color: var(--color-teal);
  color: var(--color-white);
  padding: 60px 0 20px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.8rem;
  color: var(--color-coral);
}
.footer-logo span {
  color: var(--color-yellow);
}

.footer-loc {
  margin-top: 6px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a {
  color: var(--color-white);
  text-decoration: none;
  margin-left: 20px;
  font-weight: 600;
}
.footer-links a:hover {
  color: var(--color-yellow);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 868px) {
  .hero-grid,
  .mv-grid,
  .about-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-cream);
    display: none;
    padding: 20px 0;
    border-bottom: 2px solid rgba(0, 98, 89, 0.1);
  }

  .nav-menu.active {
    display: block;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 16px;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background: transparent;
    padding-left: 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links a {
    margin: 0 10px;
    display: inline-block;
  }
}