* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #0045ad;
  --secondary-color: #00ccff;
  --dark-color: #1a1a1a;
  --light-color: #ffffff;
  --gray-color: #666666;
  --bg-gray: #f8f9fa;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
}

.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(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--dark-color);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--light-color) 0%, var(--bg-gray) 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: var(--primary-color);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--gray-color);
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 20px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
}

.hero-animation {
  position: relative;
  height: 400px;
}

.floating-element {
  position: absolute;
  background: var(--primary-color);
  border-radius: 10px;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 50px;
  left: 50px;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 200px;
  right: 80px;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  width: 100px;
  height: 100px;
  bottom: 80px;
  left: 150px;
  animation-delay: 4s;
  background: var(--secondary-color);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--dark-color);
}

.section-subtitle {
  text-align: center;
  color: var(--gray-color);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* Services Section */
/* Services Section */
.services {
  background: var(--bg-gray);
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: rgba(0,69,173,.06);
  border: 1px solid rgba(0,69,173,.15);
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .8rem;
  margin-bottom: .75rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
}

.service-card {
  position: relative;
  background: #fff;
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid #e9eef4;
  box-shadow: 0 6px 18px rgba(18, 38, 63, 0.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(18, 38, 63, 0.12);
  border-color: rgba(0,69,173,.25);
}

.service-card.is-featured {
  border: 1px solid rgba(0,69,173,.35);
  box-shadow: 0 22px 60px rgba(0,69,173,.12);
}

.service-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .35rem .6rem;
  border-radius: 999px;
}

.service-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0,69,173,.12), rgba(0,204,255,.18));
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-icon-wrap i { font-size: 1.6rem; }

.service-card h3 {
  color: var(--dark-color);
  font-size: 1.25rem;
  margin-bottom: .5rem;
}

.service-card p {
  color: var(--gray-color);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: grid;
  gap: .5rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #364152;
  font-size: .95rem;
}

.service-features i {
  color: var(--primary-color);
  font-size: .95rem;
}

.service-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.service-cta,
.service-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.service-cta {
  padding: 0 1rem;
  background: var(--primary-color);
  color: #fff;
  border: 1px solid var(--primary-color);
}
.service-cta:hover { transform: translateY(-2px); }

.service-more {
  padding: 0 .9rem;
  background: #fff;
  color: var(--primary-color);
  border: 1px solid rgba(0,69,173,.35);
}
.service-more:hover {
  transform: translateY(-2px);
  background: rgba(0,69,173,.06);
}

/* Responsive */
@media (max-width: 768px) {
  .services-grid { gap: 1.2rem; }
}

/* Accesibilidad / reduced motion */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-cta,
  .service-more { transition: none; }
}


/* Products Section */
.products {
  padding: 4rem 1rem;
  background: #fff;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: #555;
  font-size: 1rem;
  margin-bottom: 3rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* Tarjeta */
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

/* Imagen */
.product-image {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Badge */
.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #fff;
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

/* Info */
.product-info {
  padding: 1.5rem;
  text-align: center;
  flex-grow: 1;
}

.product-info h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  color: var(--dark-color);
}

.product-price {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Features */
.product-features {
  text-align: left;
  font-size: 0.95rem;
  margin: 1rem 0;
  padding: 0;
}

.product-features li {
  list-style: none;
  margin: 0.5rem 0;
  color: #333;
  display: flex;
  align-items: center;
}

.product-features li::before {
  content: "✔";
  color: var(--primary-color);
  margin-right: 8px;
  font-weight: bold;
}

/* Botón */
.buy-button {
  width: 100%;
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.buy-button:hover {
  background: #003c9e;
}
/* Botón Ver más */
.view-button {
  width: 100%;
  background: #f5f5f5;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 0.8rem;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.view-button:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Modal */
.modal {
  display: none; /* oculto por defecto */
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* Contenido del modal */
.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  animation: fadeIn 0.3s ease;
}
.modal-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  white-space: pre-line; /* ✅ Esto hace que respete los saltos de línea */
  text-align: left;      /* opcional: para alinear a la izquierda */
}

.modal-content h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.modal-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* Botón cerrar */
.modal .close {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  color: #555;
  transition: color 0.2s ease;
}

.modal .close:hover {
  color: red;
}

/* Animación */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Carrusel */
.carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  animation: scroll 25s linear infinite;
}

.product-card {
  min-width: 260px;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* Animación del carrusel */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.carousel-track {
  display: flex;
  gap: 2rem;
  animation: scroll 25s linear infinite;
  cursor: grab;
  user-select: none; /* evita seleccionar texto al arrastrar */
}

.carousel-track:active {
  cursor: grabbing;
}


/* Portfolio Section */
.portfolio {
  background: var(--bg-gray);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
  height: 250px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.portfolio-info {
  padding: 1.5rem;
}

.portfolio-info h3 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.portfolio-info p {
  color: var(--gray-color);
  margin-bottom: 1rem;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--primary-color);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.about-text {
  color: var(--gray-color);
  line-height: 1.8;
}

.about-text h3 {
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}


/* Blog Section */
.blog {
  background: var(--bg-gray);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-image {
  height: 200px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.blog-content {
  padding: 1.5rem;
}

.blog-date {
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.blog-content h3 {
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--gray-color);
}

.contact-item i {
  color: var(--primary-color);
  margin-right: 1rem;
  font-size: 1.2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 1rem;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-button:hover {
  background: var(--secondary-color);
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

/* Footer */
footer {
  background: var(--dark-color);
  color: white;
  text-align: center;
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
  }

  .nav-links.active {
    left: 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .services-grid,
  .products-grid,
  .portfolio-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Fade in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
