/* ==============================================
   Prototipos · Aura Residencia
   Archivo aislado del CSS principal del sitio
   ============================================== */

:root {
    --primary: #3A78C2;
    --primary-dark: #1E3A70;
    --secondary: #EDF4FC;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: #f7f9fc;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Lora', serif;
}

h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

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

/* ========== NAV ========== */
.proto-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

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

.proto-nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.proto-nav-links a:hover {
    color: var(--primary);
}

/* ========== HEADER ========== */
.proto-header {
    padding: 6rem 2rem 3rem;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.proto-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.proto-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* ========== SECTION COMMON ========== */
.diseno {
    padding: 4rem 0;
    border-top: 1px solid #e5e7eb;
}

.diseno:nth-child(even) {
    background: var(--white);
}

.diseno-badge {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.diseno-desc {
    text-align: center;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto 3rem;
    font-size: 0.95rem;
}

/* ========== SHORTS EMBED ========== */
.shorts-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 177.77%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #e5e7eb;
}

.shorts-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius);
}

.shorts-wrap--small {
    padding-bottom: 160%;
}

/* ============================================
   DISEÑO 1 — Parrilla simple
   ============================================ */
.d1-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.d1-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.d1-body {
    padding: 1.25rem;
}

.d1-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.d1-body p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
}

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

@media (max-width: 560px) {
    .d1-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
    }
}

/* ============================================
   DISEÑO 2 — Cintas horizontales
   ============================================ */
.d2-strip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.d2-strip-header h3 {
    font-size: 1.35rem;
    margin: 0;
    text-align: left;
}

.d2-strip-header h3::after {
    content: '';
    display: block;
    width: 35px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    margin-top: 0.4rem;
}

.d2-arrows {
    display: flex;
    gap: 0.5rem;
}

.d2-arrows button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.d2-arrows button:hover {
    background: var(--primary);
    color: var(--white);
}

.d2-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
}

.d2-track::-webkit-scrollbar {
    display: none;
}

.d2-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 200px;
}

.d2-item .shorts-wrap {
    border-radius: 10px;
}

.d2-item-label {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    color: var(--text);
}

@media (max-width: 560px) {
    .d2-item {
        width: 160px;
    }
}

/* ============================================
   DISEÑO 3 — Canal vertical
   ============================================ */
.d3-feed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.d3-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.d3-row:hover {
    box-shadow: var(--shadow-lg);
}

.d3-tag {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    background: var(--secondary);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.d3-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.d3-text p {
    color: var(--text-light);
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    .d3-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .d3-media {
        max-width: 240px;
        margin: 0 auto;
    }
}

/* ============================================
   DISEÑO 4 — Mosaico con destacado
   ============================================ */
.d4-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.d4-featured {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.d4-featured h3 {
    font-size: 1.35rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.d4-featured p {
    color: var(--text-light);
    font-size: 0.92rem;
}

.d4-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.d4-sidebar-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: center;
    background: var(--white);
    padding: 0.75rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.d4-sidebar-item:hover {
    box-shadow: var(--shadow-lg);
}

.d4-sidebar-text h4 {
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
    text-align: left;
}

.d4-sidebar-text p {
    font-size: 0.8rem;
    color: var(--text-light);
}

@media (max-width: 800px) {
    .d4-layout {
        grid-template-columns: 1fr;
    }

    .d4-featured {
        max-width: 340px;
        margin: 0 auto;
    }

    .d4-sidebar-item {
        grid-template-columns: 100px 1fr;
    }
}

/* ========== FOOTER ========== */
.proto-footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #e5e7eb;
    color: var(--text-light);
    font-size: 0.85rem;
}

.proto-footer a {
    color: var(--primary);
    text-decoration: none;
}

.proto-footer a:hover {
    text-decoration: underline;
}
