:root {
    --primary: #FF7717;
    --secondary: #333333;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

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

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* Estilo mejorado para el logo */
.logo {
    height: 50px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s;
}

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

.language-selector {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.language-selector select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: white;
    cursor: pointer;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e05f00;
}

/* Hero Section */
/* Estilos para la sección hero dinámica */
.dynamic-hero {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    overflow: hidden;
    min-height: 600px;
  }
  
  .hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
  }
  
  .animate-text {
    font-size: 56px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
  }
  
  .text-highlight {
    color: #FF7717;
    position: relative;
    display: inline-block;
  }
  
  .text-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #FF7717;
    animation: lineExpand 1.5s ease-out 0.5s forwards;
  }
  
  .text-shift {
    opacity: 0.9;
    font-weight: 300;
    color: #FFFFFF;
  }
  
  .hero-description {
    font-size: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.3s forwards;
    margin-bottom: 40px;
    color: #f8f8f8;
  }

  .hero-details {
    max-width: 800px;
    margin: 40px auto 0;
    background: rgba(27, 27, 27, 0.7);
    padding: 25px 35px;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 119, 23, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .hero-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), rgba(255, 119, 23, 0.3));
    border-radius: 6px 0 0 6px;
  }
  
  .hero-details p {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-align: center;
    font-weight: 300;
    letter-spacing: 0.2px;
  }
  
  @media (max-width: 768px) {
    .hero-details {
      padding: 20px 25px;
      margin: 25px auto 0;
    }
    
    .hero-details p {
      font-size: 15px;
      line-height: 1.7;
    }
  }
  
  .hero-cta {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.5s forwards;
  }
  
  .btn-primary {
    background-color: #FF7717;
    color: white;
    padding: 14px 32px;
    border-radius: 5px;
    font-weight: 600;
    margin-right: 15px;
    border: 2px solid #FF7717;
    transition: all 0.3s ease;
  }
  
  .btn-outline {
    background-color: transparent;
    color: white;
    padding: 14px 32px;
    border-radius: 5px;
    font-weight: 600;
    border: 2px solid white;
    transition: all 0.3s ease;
  }
  
  .btn-primary:hover {
    background-color: #E66500;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  }
  
  .btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  }
  
  .hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.7s forwards;
  }
  
  .feature-badge {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
  }
  
  .hero-visual {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
  }
  
  .tech-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    right: 10%;
    top: 20%;
    border: 2px solid rgba(255,119,23,0.3);
    animation: rotate 20s linear infinite;
  }
  
  .tech-shape {
    position: absolute;
    width: 200px;
    height: 200px;
    left: 15%;
    bottom: 20%;
    border: 2px solid rgba(255,255,255,0.1);
    transform: rotate(45deg);
    animation: float 8s ease-in-out infinite;
  }
  
  .pulse-circle {
    position: absolute;
    top: 50%;
    right: 25%;
    width: 20px;
    height: 20px;
    background-color: #FF7717;
    border-radius: 50%;
    transform: translateY(-50%);
  }
  
  .pulse-circle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #FF7717;
    border-radius: 50%;
    animation: pulse 2s infinite;
  }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes lineExpand {
    to {
      width: 100%;
    }
  }
  
  @keyframes rotate {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  @keyframes float {
    0%, 100% {
      transform: translateY(0) rotate(45deg);
    }
    50% {
      transform: translateY(-20px) rotate(45deg);
    }
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1);
      opacity: 1;
    }
    100% {
      transform: scale(3);
      opacity: 0;
    }
  }
  
  /* Media queries para responsividad */
  @media (max-width: 768px) {
    .animate-text {
      font-size: 36px;
    }
    
    .hero-description {
      font-size: 18px;
    }
    
    .hero-cta {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
    
    .btn-primary, .btn-outline {
      margin-right: 0;
    }
    
    .tech-circle, .tech-shape {
      display: none;
    }
  }

/* Services Section */
.services {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 36px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

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

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.service-icon img {
    width: 180px;
    height: 180px;
    max-width: 100%;
    transition: transform 0.3s ease;
}

/* Opcional: efecto hover para aumentar interactividad */
.service-icon img:hover {
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--secondary);
}

.service-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: #f5f5f5;
}

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

.feature-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary);
}

.feature-item p {
    color: var(--gray);
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    font-size: 36px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background-color: #f5f5f5;
}

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

.contact-form {
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--secondary);
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
}

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

.contact-info {
  background: linear-gradient(135deg, var(--primary) 0%, #e05f00 100%);
  color: var(--white);
  padding: 40px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 25px;
  font-weight: 700;
  position: relative;
}

.contact-info h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background-color: white;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(10px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 20px;
  color: white;
}

.contact-text {
  font-size: 16px;
  line-height: 1.5;
}

.social-links {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  color: var(--primary);
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background-color: #333;
  color: white;
  transform: translateY(-5px);
}

.contact-cta {
  margin-top: 30px;
  text-align: center;
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* Media queries para responsividad */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form, .contact-info {
    padding: 30px;
  }
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-col h4 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

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

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar {
        flex-direction: column;
    }
    
    .nav-links {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 0 10px 10px;
    }
    
    .language-selector {
        margin: 15px 0 0 0;
    }
}

/* ================================================================
   MEJORAS DE RESPONSIVIDAD ESENCIALES - GREETECH
   Agregar al final de tu archivo style.css existente
   ================================================================ */

/* ========== VARIABLES RESPONSIVAS ========== */
:root {
    --mobile-padding: 15px;
    --tablet-padding: 30px;
    --mobile-section: 40px 0;
    --tablet-section: 60px 0;
}

/* ========== TABLET (768px - 991px) ========== */
@media (max-width: 991px) {
    .container {
        padding: 0 var(--tablet-padding);
    }
    
    /* Navegación reorganizada */
    .navbar {
        flex-direction: column;
        padding: 15px 0;
        text-align: center;
    }
    
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .language-selector {
        margin: 15px 0 0 0;
    }
    
    /* Hero ajustado */
    .dynamic-hero {
        padding: 100px 0 60px;
    }
    
    .animate-text {
        font-size: 40px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    /* Secciones con menos padding */
    .services, .features, .about, .contact,
    .banking-features, .consulting-features,
    .framework-features, .skill-levels {
        padding: var(--tablet-section);
    }
    
    /* Grids de 2 columnas en tablet */
    .services-grid,
    .feature-grid,
    .banking-features-grid,
    .consulting-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* About y Contact stack */
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ========== MÓVIL (hasta 768px) ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--mobile-padding);
    }
    
    /* Header móvil */
    header {
        padding: 10px 0;
    }
    
    .logo img {
        height: 35px;
    }
    
    .navbar {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .nav-links {
        margin-top: 20px;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .nav-links a {
        padding: 12px 20px;
        border-radius: 5px;
        display: block;
        text-align: center;
    }
    
    /* Hero móvil */
    .dynamic-hero {
        padding: 80px 0 40px;
        min-height: 500px;
    }
    
    .animate-text {
        font-size: 32px;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .hero-details {
        margin: 20px auto 0;
        padding: 15px 20px;
    }
    
    .hero-details p {
        font-size: 14px;
    }
    
    /* Botones móvil */
    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .btn-primary,
    .btn-outline {
        width: 100%;
        max-width: 280px;
        text-align: center;
        margin: 0;
        padding: 14px 24px;
        min-height: 48px;
    }
    
    /* Secciones móvil */
    .services, .features, .about, .contact,
    .banking-features, .consulting-features,
    .framework-features, .skill-levels {
        padding: var(--mobile-section);
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    /* Todos los grids a 1 columna */
    .services-grid,
    .feature-grid,
    .banking-features-grid,
    .consulting-features-grid,
    .framework-features-grid,
    .security-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Cards móvil */
    .service-card,
    .feature-item,
    .feature-card {
        padding: 25px 20px;
    }
    
    .service-icon {
        height: 120px;
    }
    
    .service-icon img {
        width: 100px;
        height: 100px;
    }
    
    .feature-icon {
        font-size: 32px;
    }
    
    /* Contact form móvil */
    .contact-form,
    .contact-info {
        padding: 25px;
    }
    
    .form-control {
        padding: 12px;
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    /* Footer móvil */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Ocultar elementos decorativos */
    .tech-circle,
    .tech-shape,
    .pulse-circle,
    .hero-visual {
        display: none;
    }
}

/* ========== MÓVIL PEQUEÑO (hasta 576px) ========== */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    /* Hero extra pequeño */
    .dynamic-hero {
        padding: 60px 0 30px;
        min-height: 400px;
    }
    
    .animate-text {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .hero-details {
        margin: 15px auto 0;
        padding: 15px;
    }
    
    .hero-details p {
        font-size: 13px;
    }
    
    /* Títulos más pequeños */
    .section-header h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .section-header p {
        font-size: 15px;
    }
    
    /* Cards compactas */
    .service-card,
    .feature-item,
    .feature-card {
        padding: 20px 15px;
    }
    
    .feature-icon {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .service-card h3,
    .feature-item h3,
    .feature-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .service-card p,
    .feature-item p,
    .feature-card p {
        font-size: 14px;
    }
    
    /* Contact compacto */
    .contact-form,
    .contact-info {
        padding: 20px 15px;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
    }
    
    .contact-text {
        font-size: 14px;
    }
    
    /* Footer compacto */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-col h4 {
        font-size: 16px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    /* CTA compacto */
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .cta-section .btn-primary,
    .cta-section .btn-outline {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* Desactivar partículas en móvil */
    #particles-js {
        display: none;
    }
}

/* ========== EXTRAS RESPONSIVOS ========== */

/* Tipografía fluida para títulos principales */
.animate-text {
    font-size: clamp(24px, 6vw, 56px);
    line-height: 1.2;
}

.hero-description {
    font-size: clamp(14px, 3vw, 20px);
    line-height: 1.5;
}

/* Imágenes siempre responsivas */
img {
    max-width: 100%;
    height: auto;
}

/* SVGs responsivos */
svg {
    max-width: 100%;
    height: auto;
}

/* Touch targets mínimos para móvil */
@media (max-width: 768px) {
    a, button, input, select, textarea {
        min-height: 44px;
    }
    
    .nav-links a {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-link {
        width: 48px;
        height: 48px;
    }
}

/* Landscape móvil */
@media (max-width: 768px) and (orientation: landscape) {
    .dynamic-hero {
        padding: 40px 0 20px;
        min-height: 80vh;
    }
    
    .animate-text {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* Dispositivos ultra pequeños */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .animate-text {
        font-size: 22px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .service-card,
    .feature-card {
        padding: 15px 10px;
    }
}

/* ================================================================
   FIN DE MEJORAS RESPONSIVAS
   ================================================================ */
