:root {
  /* Colors */
  --color-primary: #2563eb;
  --color-primary-dark: #1e40af;
  --color-secondary: #10b981;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-border: #e5e7eb;
  --color-bg: #f9fafb;
  --color-white: #ffffff;
  
  /* Sidebar */
  --sidebar-width: 240px;
  --bg-sidebar: #1f2937;
  --bg-sidebar-active: #111827;
  --text-sidebar: #ffffff;
  --content-bg: #f7fafc;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--content-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: 2.25rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.875rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin: 0 0 1rem 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #2BA9D4 0%, #1B5890 100%);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Logo responsivo */
@media (max-width: 768px) {
  .brand {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 0.875rem;
  }
}

/* Topbar responsivo */
@media (max-width: 768px) {
  .topbar {
    padding: 0.5rem 1rem;
    gap: 0.75rem;
  }
  
  .menu-btn {
    font-size: 1.125rem;
    padding: 0.375rem;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }
  
  .menu-btn {
    font-size: 1rem;
    padding: 0.25rem;
  }
}

.menu-btn {
  font-size: 1.25rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-white);
  transition: transform 0.2s ease;
}

.menu-btn:hover {
  transform: scale(1.1);
}

.menu-btn:active {
  transform: scale(0.95);
}

/* Layout */
.layout {
  display: flex;
  min-height: calc(100vh - 60px);
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  color: var(--text-sidebar);
  padding: 1.5rem 1rem;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  overflow-y: auto;
  max-height: calc(100vh - 60px);
}

.content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(100vh - 60px);
  position: relative;
  background-image: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)), 
                    url('../img/logo-ingycom.jpg');
  background-size: 70%;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--content-bg);
}

.content::before {
  display: none;
}

.content > * {
  position: relative;
  z-index: auto;
}

/* Navigation */
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.nav-list li {
  margin-bottom: 0.5rem;
}

.nav-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav-list a i {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.nav-list a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-sidebar);
}

.nav-list li.active a {
  background: var(--bg-sidebar-active);
  color: var(--color-primary);
  font-weight: 600;
  box-shadow: inset 0 0 0 2px var(--color-primary);
}

/* Sidebar Stats */
.sidebar-stats {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.stat strong {
  color: var(--color-primary);
  font-size: 1.25rem;
}

.stat span {
  color: rgba(255, 255, 255, 0.6);
}

/* Mobile & Overlay */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 40;
  backdrop-filter: blur(2px);
}

.sidebar {
  position: static;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.overlay-active .content {
  filter: blur(3px);
  pointer-events: none;
  transition: filter 0.3s ease-in-out;
}

@media (max-width: 768px) {
  .layout {
    padding-left: 0;
  }
  
  .sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    height: calc(100vh - 60px);
    transform: translateX(-110%);
    z-index: 50;
    width: 260px;
    box-shadow: var(--shadow-lg);
    max-height: 100vh;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .overlay.show {
    display: block;
  }
  
  .content {
    padding: 1.5rem 1rem;
    background-attachment: scroll;
    background-position: center top;
    background-size: 80%;
  }
}

@media (max-width: 480px) {
  .content {
    background-attachment: scroll;
    background-position: center center;
    background-size: 91%;
  }
}

/* Grid y Cards */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Productos Grid */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 480px) {
  .productos-grid {
    grid-template-columns: 1fr;
  }
}

/* Producto Card */
.producto-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: all 0.3s ease;
  overflow: hidden;
}

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

.producto-img-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: none;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0;
  position: relative;
  background: var(--color-bg);
}

.producto-img-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
}

.producto-card:hover .producto-img-box img {
  transform: scale(1.05);
}

.producto-img-box.no-cover img {
  object-fit: contain;
  height: auto;
  width: 100%;
  background: var(--color-bg);
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.product-description {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  flex: 1;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

.ver-mas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.ver-mas:hover {
  background: var(--color-primary-dark);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.ver-mas:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.plus-sign {
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

/* Galería */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.galeria-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  background: var(--color-bg);
  display: block;
  text-decoration: none;
}

.galeria-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.galeria-item:hover img {
  transform: scale(1.15);
}

.galeria-overlay {
  position: absolute;
  inset: 0;
  background: rgba(37, 99, 235, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
  opacity: 1;
}

.galeria-zoom {
  font-size: 3rem;
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .galeria-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .galeria-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 1rem;
}

.btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--color-secondary);
}

.btn-secondary:hover {
  background: #059669;
}

.btn-danger {
  background: var(--color-danger);
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Formularios */
.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Tablas */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

thead {
  background: var(--color-bg);
  font-weight: 600;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

tbody tr:hover {
  background: var(--color-bg);
}

/* Alertas */
.alert {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border-color: var(--color-secondary);
}

.alert-error {
  background: #fee2e2;
  color: #7f1d1d;
  border-color: var(--color-danger);
}

.alert-warning {
  background: #fef3c7;
  color: #78350f;
  border-color: var(--color-warning);
}

.alert-info {
  background: #dbeafe;
  color: #0c2340;
  border-color: var(--color-primary);
}

/* Paginación */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.pagination .current {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Proyectos */
.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.proyecto-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: left;
  font-size: 1rem;
  font-family: inherit;
}

.proyecto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.proyecto-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  border-color: var(--color-primary);
}

.proyecto-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.proyecto-card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--color-text);
  flex: 1;
  line-height: 1.4;
}

.proyecto-arrow {
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.proyecto-card:hover .proyecto-arrow {
  transform: translateX(5px);
}

/* Modal de Proyectos */
.proyecto-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.proyecto-modal.active {
  display: flex;
}

.proyecto-modal-content {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

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

.proyecto-modal-content h2 {
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-border);
}

.proyecto-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-danger);
  color: var(--color-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.proyecto-modal-close:hover {
  background: #dc2626;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .proyectos-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .proyecto-modal-content {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .proyectos-grid {
    grid-template-columns: 1fr;
  }
  
  .proyecto-card {
    padding: 1.5rem;
  }
  
  .proyecto-card h3 {
    font-size: 1.1rem;
  }
}

/* Servicios */
.servicios-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.servicio-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.servicio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.servicio-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.servicio-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2BA9D4 0%, #1B5890 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.servicio-card h3 {
  color: var(--color-text);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.servicio-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .servicios-container {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
  }
  
  .servicio-card {
    padding: 1.5rem;
  }
  
  .servicio-card h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .servicios-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .servicio-card {
    padding: 1.25rem;
  }
  
  .servicio-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* Descargas */
.descargas-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.descarga-item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.descarga-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.descarga-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.descarga-item h3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: var(--color-text);
}

.descarga-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #2BA9D4 0%, #1B5890 100%);
  color: var(--color-white);
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.descarga-icon:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.descarga-icon:active {
  transform: scale(0.95);
}

.descarga-fecha {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.descarga-item p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .descargas-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .descarga-item {
    padding: 1.5rem;
  }
  
  .descarga-icon {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .descargas-container {
    grid-template-columns: 1fr;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 90%;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

#modalImage {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-danger);
  color: var(--color-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.modal-close:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* Utilidades */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.rounded { border-radius: var(--radius-md); }
.shadow { box-shadow: var(--shadow-md); }

.sidebar li a {
    display: flex;          /* Activa el modo flexible */
    align-items: center;    /* Centra verticalmente el icono con el texto */
    text-decoration: none;  /* Quita el subrayado si lo tiene */
    padding: 10px 15px;     /* Espaciado interno para que no se vea apretado */
    gap: 10px;              /* ¡ESTA ES LA MAGIA! Crea el espacio exacto entre icono y texto */
}

/* Para asegurar que los iconos no se vean de distintos tamaños */
.sidebar li a i {
    width: 20px;            /* Ancho fijo para que el texto siempre empiece en el mismo lugar */
    text-align: center;     /* Centra el icono en su espacio de 20px */
    font-size: 1.1rem;      /* Ajusta un poco el tamaño si lo ves muy pequeño */
}

/* ==================== PÁGINA INICIO ==================== */

/* Sección Hero */
.hero-section {
  background: linear-gradient(135deg, #2BA9D4 0%, #1B5890 100%);
  color: var(--color-white);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-section h2 {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.95;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Servicios Grid */
.servicios-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.servicio-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.servicio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.servicio-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.servicio-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2BA9D4 0%, #1B5890 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.servicio-card h3 {
  color: var(--color-text);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.servicio-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

/* Sección de cierre */
.cta-section {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 3rem;
  border: 2px solid var(--color-border);
}

.cta-section h2 {
  color: var(--color-text);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1.5rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section h2 {
    font-size: 1.1rem;
  }
  
  .servicios-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .cta-section {
    padding: 2rem 1.5rem;
  }
  
  .cta-section h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  .hero-section h2 {
    font-size: 0.95rem;
  }
  
  .servicio-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* Utilidades */
.hidden {
  display: none;
}

.precio {
  transition: all 0.3s ease;
}

#modalPrice {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 1rem;
}