/*
Theme Name: DIMZA Instrumental
Description: Tema profesional para DIMZA Instrumental - Especialistas en instrumental quirúrgico de alta precisión
Author: DIMZA Team
Version: 1.0.0
Text Domain: dimza-instrumental
*/

/* Reset y Variables CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-orange: #d2691e;
  --primary-green: #228b22;
  --dark-orange: #b8571a;
  --dark-green: #1f7a1f;
  --light-orange: #f4a460;
  --light-green: #32cd32;
  --neutral-dark: #2c3e50;
  --neutral-light: #7f8c8d;
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --medical-blue: #2c5f8b;
  --medical-light-blue: #e8f4fd;
  --medical-gray: #f5f7fa;
}

/* Clases de utilidad */
.text-green {
  color: var(--primary-green) !important;
}
.text-orange {
  color: var(--primary-orange) !important;
}
.text-dark {
  color: var(--neutral-dark) !important;
}
.text-blue {
  color: var(--medical-blue) !important;
}

.bg-green {
  background-color: var(--primary-green) !important;
}
.bg-orange {
  background-color: var(--primary-orange) !important;
}
.bg-dark {
  background-color: var(--neutral-dark) !important;
}
.bg-blue {
  background-color: var(--medical-blue) !important;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--neutral-dark);
  background: var(--white);
  overflow-x: hidden;
}

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

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 150px;
  height: 115px;
  border-radius: 8px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #2c3e50;
  text-decoration: none;
}

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

.nav-links a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-green);
  transform: translateY(-2px);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    135deg,
    var(--primary-orange),
    var(--primary-green)
  );
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--primary-orange);
  overflow: hidden;
  margin-top: 80px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>'); */
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideUp 1s ease-out;
}

.hero .subtitle {
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: slideUp 1s ease-out 0.2s both;
}

.highlight {
  background: linear-gradient(135deg, var(--light-orange), var(--light-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Features Section */
.features {
  padding: 6rem 0;
  background: var(--white);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--neutral-dark);
}

.feature-card p {
  color: var(--neutral-light);
  line-height: 1.8;
}

/* Products Section */
.products {
  padding: 6rem 0;
  background: var(--light-bg);
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--neutral-dark);
  margin-bottom: 3rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.product-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
}

.product-card:hover::before {
  left: 100%;
}

.product-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: #4ecdc4;
  box-shadow: 0 15px 50px rgba(78, 205, 196, 0.2);
}

.product-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.product-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.product-card p {
  color: #7f8c8d;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* CTA Section */
.cta {
  padding: 6rem 0;
  background: var(--primary-orange);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--white);
  color: var(--primary-orange);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  background: var(--light-bg);
  color: var(--primary-orange);
}

/* Footer */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 3rem 0;
}

.footer-logo {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.footer-url {
  font-size: 1.2rem;
  color: #4ecdc4;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-url:hover {
  color: #ff6b6b;
  transform: scale(1.05);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Floating elements */
.floating-element {
  position: absolute;
  opacity: 0.2;
  animation: floatAround 15s ease-in-out infinite;
}

@keyframes floatAround {
  0%,
  100% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotate(90deg);
  }
  50% {
    transform: translateY(-10px) translateX(-10px) rotate(180deg);
  }
  75% {
    transform: translateY(-30px) translateX(5px) rotate(270deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .hero {
    margin-top: 60px;
  }
}

/* Leyla System Showcase */
.leyla-showcase {
  padding: 6rem 0;
  background: white;
}

.leyla-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.leyla-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--neutral-dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.leyla-subtitle {
  font-size: 1.3rem;
  color: var(--primary-green);
  font-weight: 600;
  margin-bottom: 2rem;
}

.leyla-description {
  color: var(--neutral-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.leyla-features {
  list-style: none;
  padding: 0;
}

.leyla-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--neutral-dark);
  font-weight: 500;
}

.leyla-features li::before {
  content: "✓";
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
}

.leyla-visual {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.leyla-visual::before {
  content: "🔬";
  font-size: 8rem;
  opacity: 0.1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 6s ease-in-out infinite;
}

.system-highlight {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-green);
}

.system-highlight h4 {
  color: var(--neutral-dark);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.certification-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.spec-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-top: 4px solid;
  border-image: linear-gradient(135deg, #4ecdc4, #44a08d) 1;
  transition: all 0.3s ease;
}

.spec-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.spec-card h4 {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.spec-list {
  list-style: none;
  padding: 0;
}

.spec-list li {
  color: #7f8c8d;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.spec-list li::before {
  content: "•";
  color: #4ecdc4;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .leyla-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-specs {
    grid-template-columns: 1fr;
  }
}
