/* ==========================================
   1. ESTILOS BASE & RESETS
=========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.portfolio-body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  background-color: #ffffff;
  color: #1d1d1f;
  padding-top: 110px;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================
   2. HEADER & DOCK NAV
=========================================== */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #1d1d1f;
}

.brand-logo {
  height: 38px;
  width: auto;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand span {
  color: #0071e3;
}

.mac-dock {
  display: flex;
  background: #f5f5f7;
  padding: 4px 8px;
  border-radius: 30px;
  gap: 4px;
}

.dock-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  color: #86868b;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dock-btn:hover,
.dock-btn.active {
  background: #ffffff;
  color: #1d1d1f;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* ==========================================
   3. HERO & PROCESO 3 COLUMNAS
=========================================== */
.portfolio-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 24px 80px 24px;
}

.profile-summary {
  margin-bottom: 60px;
}

.hero-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  color: #1d1d1f;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: #515154;
  max-width: 860px;
  margin-bottom: 32px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.profile-col h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.profile-col ul {
  list-style-type: disc;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-col li {
  font-size: 13px;
  color: #515154;
  line-height: 1.5;
}

.brands-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.brands-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #86868b;
  font-weight: 600;
  margin-bottom: 16px;
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  background-color: #f5f5f7;
  color: #1d1d1f;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: default;
}

.brand-chip:hover {
  background-color: #e5e5ea;
  transform: translateY(-2px);
}

/* ==========================================
   4. TARJETAS FLAT & CONTENEDOR DE ÍCONOS
=========================================== */
.category-header {
  margin-bottom: 28px;
}

.category-title {
  font-size: 24px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.5px;
}

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

.flat-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.flat-card:hover {
  background-color: #fbfbfd;
  transform: translateY(-4px);
}

/* Caja gris clara superior centrada */
.card-icon-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 12px;
  background-color: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.draw-icon {
  width: 52px;
  height: 52px;
  color: #1d1d1f;
}

.card-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.card-content p {
  font-size: 13px;
  color: #6e6e73;
  line-height: 1.5;
  margin-bottom: 12px;
}

.btn-more {
  background: none;
  border: none;
  color: #0071e3;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease;
}

.flat-card:hover .btn-more {
  transform: translateX(4px);
}

/* ==========================================
   5. MODAL & ELEFANTITO ANIMADO
=========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  border-radius: 20px;
  max-width: 520px;
  width: 90%;
  padding: 36px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f5f5f7;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  cursor: pointer;
}

.elephant-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px 0;
}

.walking-elephant {
  height: 50px;
  width: auto;
  animation: elephantWalk 0.8s infinite alternate ease-in-out;
}

@keyframes elephantWalk {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(4deg); }
}

.elephant-loader span {
  font-size: 13px;
  color: #86868b;
  font-weight: 500;
}

.modal-specs {
  margin-top: 16px;
  margin-bottom: 20px;
}

.modal-specs h4 {
  font-size: 12px;
  text-transform: uppercase;
  color: #86868b;
  margin-bottom: 8px;
}

.modal-specs ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #424245;
}

.quote-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
}

.quote-form h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: #0071e3;
}

.modal-cta-btn {
  background: #25d366;
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 6px;
}

.modal-cta-btn:hover {
  background: #1eb855;
}

@media (max-width: 900px) {
  .ecommerce-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .profile-grid,
  .ecommerce-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 28px;
  }
}