/*
Theme Name: Createc Landing Page
Theme URI: https://createc.group
Author: Createc Group
Author URI: https://createc.group
Description: Tema profesional para Createc - Soluciones Tecnologicas. Landing page moderna con formularios de contacto integrados.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: createc
Tags: one-page, custom-logo, landing-page
*/

/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brand-purple: #2D2B7C;
  --brand-blue: #00B4FF;
  --text-primary: #1A1A2E;
  --text-secondary: #4A4A5A;
  --text-tertiary: #8A8A9A;
  --bg-white: #FFFFFF;
  --bg-light: #F5F5F7;
  --border-light: #E2E2E8;
  --glass-fill: #FFFFFF;
  --gradient-brand: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
  --gradient-btn: linear-gradient(90deg, var(--brand-purple), var(--brand-blue));
  --radius-card: 16px;
  --radius-btn: 8px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

/* ========================================
   TYPOGRAPHY
   ======================================== */
.section-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand-blue);
  font-family: var(--font-body);
}

.section-title {
  font-size: 44px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 180, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 180, 255, 0.35);
}

.btn-outline {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.btn-gradient-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid transparent;
  background-image: linear-gradient(white, white), var(--gradient-btn);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.btn-gradient-outline:hover {
  transform: translateY(-2px);
}

/* ========================================
   HEADER / NAV
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 0;
}

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

.logo-crea {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-purple);
  letter-spacing: 1px;
}

.logo-tec {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-blue);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-menu a:hover {
  color: var(--brand-blue);
}

.header-cta .btn {
  padding: 10px 24px;
  font-size: 14px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  padding: 160px 0 80px;
  text-align: center;
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(45, 43, 124, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 180, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 68px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--text-primary);
  max-width: 800px;
}

.hero p {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ========================================
   POR QUE ELEGIRNOS
   ======================================== */
.why-us {
  padding: 80px 0;
  background: var(--bg-light);
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.why-card .card-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.why-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   SERVICIOS PRINCIPALES
   ======================================== */
.services {
  padding: 80px 0;
  background: var(--bg-white);
}

.service-row {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 64px;
}

.service-row:last-child {
  margin-bottom: 0;
}

.service-row.reversed {
  flex-direction: row-reverse;
}

.service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-content .service-icon {
  width: 40px;
  height: 40px;
  color: var(--brand-blue);
}

.service-content h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.service-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.service-image {
  flex: 0 0 500px;
  height: 320px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 14px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   SERVICIOS ADICIONALES
   ======================================== */
.additional-services {
  padding: 80px 0;
  background: var(--bg-light);
}

.additional-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.additional-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
}

.additional-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.additional-card .card-icon {
  width: 32px;
  height: 32px;
  color: var(--brand-blue);
}

.additional-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.additional-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   PARTNERS
   ======================================== */
.partners {
  padding: 80px 0;
  background: var(--bg-white);
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.partners-logos img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}

.partners-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ========================================
   SOCIAL PROOF
   ======================================== */
.social-proof {
  padding: 80px 0;
  background: var(--bg-light);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1.5px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 4px;
}

.testimonials-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-stars {
  color: #FFB800;
  font-size: 18px;
}

.testimonial-quote {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

.testimonial-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-info span {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ========================================
   MODALIDADES / PRICING
   ======================================== */
.pricing {
  padding: 80px 0;
  background: var(--bg-white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pricing-card.featured {
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), linear-gradient(180deg, var(--brand-blue), var(--brand-purple));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 8px 40px rgba(45, 43, 124, 0.1);
}

.pricing-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 12px;
  background: var(--gradient-btn);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  width: fit-content;
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-card > p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pricing-divider {
  height: 1px;
  background: var(--border-light);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-feature svg {
  width: 16px;
  height: 16px;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

/* ========================================
   CTA FINAL
   ======================================== */
.cta-final {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(45,43,124,0.04) 0%, #FFFFFF 40%, #FFFFFF 60%, rgba(0,180,255,0.04) 100%);
}

.cta-final .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.cta-final h2 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-primary);
  max-width: 700px;
}

.cta-final p {
  font-size: 18px;
  color: var(--text-secondary);
}

.cta-final .btn-primary {
  padding: 16px 44px;
  font-size: 17px;
}

/* ========================================
   CONTACT FORM (MODAL)
   ======================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 48px;
  max-width: 540px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-light);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-secondary);
}

.modal-close:hover {
  background: var(--border-light);
}

.modal-header {
  margin-bottom: 32px;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 15px;
  color: var(--text-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-white);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-submit {
  margin-top: 8px;
}

.form-submit .btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 0;
}

.form-success.active {
  display: block;
}

.form-success .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E8F5E9;
  color: #4CAF50;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: #1A1A2E;
  padding: 48px 0;
  color: #FFFFFF;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 36px;
}

.footer-brand {
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .site-logo .logo-crea {
  color: #FFFFFF;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-col a:hover {
  color: var(--brand-blue);
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

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

.footer-copyright {
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-social a:hover {
  color: var(--brand-blue);
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .section-title { font-size: 36px; }
  .hero h1 { font-size: 52px; }
  .service-row { flex-direction: column !important; }
  .service-image { flex: 0 0 auto; width: 100%; height: 260px; }
  .additional-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-links { gap: 40px; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .header-cta { display: none; }
  .mobile-toggle { display: flex; }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 24px;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }

  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 16px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .section-title { font-size: 30px; }
  .why-cards { grid-template-columns: 1fr; }
  .additional-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 40px; }
  .testimonials-row { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
  .modal-content { padding: 32px 24px; }

  .cta-final h2 { font-size: 30px; }
  .partners-logos { gap: 24px; }
  .partners-logos img { height: 36px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 32px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-number { font-size: 36px; }
}
