/* =========================================
   WP Design Showcase - Main Styles
   ========================================= */






/* Variables del Sistema */
:root {
    --wp-accent: #d9cdb8;
    --wp-accent-strong: #b6a78c;
    --wp-text: #151515;
    --wp-text-muted: #70757a;
    --wp-border: #e5e7eb;
    --wp-bg: #ffffff;
    --wp-container-width: 1400px;
    --wp-spacing: 8px;
}

/* Reset Base */
.wp-design-showcase * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.wp-design-showcase {
    max-width: var(--wp-container-width);
    margin: 0 auto;
    padding: calc(var(--wp-spacing) * 4);
    font-family: var(--project-font-body);
    color: var(--wp-text);
}

/* Card Base */
.wpds-card {
    background: white;
    position: relative;
    min-height: 450px;
    transition: all 0.3s ease;
}

.wpds-card-inner {
    padding: calc(var(--wp-spacing) * 4);
}

/* Breadcrumb */
.wpds-card-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: calc(var(--wp-spacing) * 3);
    font-size: 12px;
    color: var(--wp-text-muted);
}

.wpds-breadcrumb-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpds-logo-square {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: var(--project-color-2);
    position: relative;
}

.wpds-logo-square::after {
    content: "";
    width: 8px;
    height: 8px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.wpds-brandmark {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wpds-brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e11d48;
}

/* Masthead */
.wpds-card-masthead {
    position: relative;
    min-height: 100px;
    margin-bottom: calc(var(--wp-spacing) * 2);
}

.wpds-number-large {
    position: absolute;
    right: 0;
    top: -10px;
    font-family: var(--project-font-heading);
    font-weight: 700;
    font-size: 100px;
    line-height: 1;
    color: var(--wp-accent);
    opacity: 0.55;
    letter-spacing: -2px;
}

.wpds-category-name {
    position: absolute;
    right: 15px;
    top: 28px;
    font-family: var(--project-font-heading);
    font-weight: 700;
    font-size: 32px;
    letter-spacing: -0.2px;
    color: var(--wp-text);
}

/* Title Section */
.wpds-card-title-section {
    position: relative;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--wp-border);
    margin-bottom: calc(var(--wp-spacing) * 4);
}

.wpds-card-title-section h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--wp-text);
    font-family: var(--project-font-body);
}

.wpds-accent-line {
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 120px;
    height: 4px;
    background: var(--wp-accent-strong);
}

/* Hero Section */
.wpds-hero {
    margin-bottom: calc(var(--wp-spacing) * 10);
    animation: fadeInUp 0.8s ease-out;
}

.wpds-hero-header {
    text-align: center;
    margin-bottom: calc(var(--wp-spacing) * 6);
}

.wpds-project-label {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--project-color-2);
    margin-bottom: calc(var(--wp-spacing) * 2);
    font-weight: 600;
}

.wpds-project-title {
    font-family: var(--project-font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: calc(var(--wp-spacing) * 3);
    background: linear-gradient(135deg, var(--project-color-2), var(--project-color-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wpds-project-description {
    font-family: var(--project-font-body);
    font-size: 1.25rem;
    color: var(--wp-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Mockup Display */
.wpds-mockup-display {
    position: relative;
    padding: calc(var(--wp-spacing) * 4);
    background: linear-gradient(135deg, var(--project-color-1) 0%, rgba(255,255,255,0.5) 100%);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    overflow: hidden;
}

.wpds-mockup-image {
    position: relative;
    z-index: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.wpds-mockup-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Cards Grid */
.wpds-cards-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vh, 64px);
}

/* Cada sección (card) ocupa al menos el viewport; se centra si el contenido es menor */
.wpds-cards-grid > .wpds-card {
  min-height: 100dvh;
  min-height: 100svh;  /* iOS */
  display: grid;
  place-items: center; /* centrado vertical y horizontal cuando hay espacio */
  will-change: transform, opacity; /* optimización para la animación */
}

/* Limitar el ancho de contenido interno y centrarlo */
.wpds-cards-grid > .wpds-card .wpds-card-inner {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* Opcional: en pantallas muy pequeñas, evitamos que “salte” el centrado si hay mucho contenido */
@media (max-width: 640px) {
  .wpds-cards-grid > .wpds-card {
    align-items: start; /* el contenido empieza arriba si es muy largo */
  }
}



/* Color Palette */
.wpds-color-palette {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: calc(var(--wp-spacing) * 3);
    margin-top: calc(var(--wp-spacing) * 2);
}

.wpds-color-item {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wpds-color-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.wpds-color-swatch {
    height: 124px;
    width: 100%;
}

.wpds-color-info {
    padding: 14px 16px 16px;
}

.wpds-color-number {
    display: block;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--wp-text);
}

.wpds-color-hex {
    display: block;
    font-size: 12px;
    color: #9aa0a6;
}

/* Typography */
.wpds-typography-display {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: calc(var(--wp-spacing) * 4);
    align-items: start;
    margin-top: calc(var(--wp-spacing) * 3);
}

.wpds-type-preview svg {
    width: 100%;
    height: auto;
    display: block;
}

.wpds-type-fill {
    font-family: var(--project-font-display);
    font-size: 320px;
    fill: #eeeeee;
}

.wpds-type-stroke {
    font-family: var(--project-font-display);
    font-size: 320px;
    fill: transparent;
    stroke: #3b3b3b;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 10 8;
}

.wpds-type-info {
    background: #f2eee9;
    border-radius: 12px;
    padding: 28px;
    min-height: 180px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    display: grid;
    align-content: center;
}

.wpds-type-name {
    font-family: var(--project-font-display);
    font-size: 34px;
    color: var(--wp-text);
    margin-bottom: 8px;
}

.wpds-font-specimen {
    margin-top: calc(var(--wp-spacing) * 4);
}

.wpds-font-specimen p {
    margin: 14px 0;
    font-family: var(--project-font-display);
    color: #1d1d1b;
}

.wpds-specimen-upper {
    font-size: 28px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wpds-specimen-lower {
    font-size: 26px;
}

.wpds-specimen-nums {
    font-size: 26px;
}

/* Icons */
.wpds-icons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: calc(var(--wp-spacing) * 2);
    margin-top: calc(var(--wp-spacing) * 3);
}

.wpds-icon-item {
    aspect-ratio: 1;
    background: #f9f9f9;
    border: 1px solid var(--wp-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.wpds-icon-item:hover {
    background: var(--project-color-2);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.wpds-icon-item svg {
    width: 32px;
    height: 32px;
    fill: var(--project-color-3);
    transition: fill 0.2s ease;
}

.wpds-icon-item:hover svg {
    fill: white;
}

/* Responsive Devices */
.wpds-devices-showcase {
    display: flex;
    gap: calc(var(--wp-spacing) * 4);
    align-items: center;
    justify-content: center;
    padding: calc(var(--wp-spacing) * 4) 0;
}

.wpds-device-frame {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.wpds-device-screen {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.wpds-screen-desktop {
    width: 320px;
    height: 200px;
}

.wpds-screen-tablet {
    width: 200px;
    height: 280px;
}

.wpds-screen-mobile {
    width: 120px;
    height: 240px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .wpds-typography-display {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .wpds-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .wpds-color-palette {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .wpds-icons-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .wp-design-showcase {
        padding: calc(var(--wp-spacing) * 2);
    }
    
    .wpds-color-palette {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wpds-icons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .wpds-devices-showcase {
        flex-direction: column;
    }
    
    .wpds-number-large {
        font-size: 60px;
    }
    
    .wpds-category-name {
        font-size: 24px;
    }
}










/* === WPDS Mockups: marco como background + pantalla por insets === */
.wpds-device-frame.wpds-mockup{
  position: relative;
  background-image: var(--wpds-frame);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.wpds-device-frame.wpds-mockup .wpds-device-screen{
  position: relative;
  width: 100%;
  height: 100%;
}
.wpds-device-frame.wpds-mockup .wpds-screen-inset{
  position: absolute;
  top: var(--wpds-top, 6%);
  right: var(--wpds-right, 6%);
  bottom: var(--wpds-bottom, 10%);
  left: var(--wpds-left, 6%);
  border-radius: var(--wpds-radius, 14px);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.04) inset;
}
.wpds-device-frame.wpds-mockup .wpds-screen-inset .wpds-fill,
.wpds-device-frame.wpds-mockup .wpds-screen-inset img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}




/* Nota explicativa del card (WYSIWYG) */
.wpds-card-note{
  margin: 10px 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #555b;
  max-width: 72ch;
}
.wpds-card-note p{ margin: 0 0 10px; }

