/* =============================================
   IRATXE OLAIZOLA · PORTFOLIO
   Soft & creativo — gradientes, orgánico, cálido
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
    --blush:      #f2c4ce;
    --rose:       #c4687a;
    --deep-rose:  #8b3a4a;
    --mauve:      #b07a8f;
    --cream:      #fdf8f5;
    --warm-white: #fff9f7;
    --sand:       #f5ede8;
    --ink:        #2a1f1f;
    --muted:      #8a7070;
    --border:     #edd8d0;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'DM Sans', sans-serif;

    --radius-sm: 8px;
    --radius:    16px;
    --radius-lg: 28px;
    --shadow-soft: 0 4px 32px rgba(180, 100, 110, 0.10);
    --shadow-card: 0 2px 20px rgba(180, 100, 110, 0.08);
    --shadow-hover: 0 8px 40px rgba(180, 100, 110, 0.18);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    color: var(--rose);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--deep-rose); }
img { max-width: 100%; display: block; }

/* ── Lang Switcher ── */
.lang-switcher {
    position: fixed;
    top: 16px; right: 20px;
    z-index: 1000;
    display: flex;
    gap: 4px;
    align-items: center;
    background: rgba(253,248,245,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    box-shadow: var(--shadow-soft);
}
.lang-switcher a { color: var(--muted); transition: color var(--transition); }
.lang-switcher a:hover { color: var(--rose); }
.lang-switcher span.active-lang {
    color: var(--rose);
    font-weight: 700;
}
.lang-switcher .sep { color: var(--border); font-size: 0.6rem; }

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 48px 80px;
    position: relative;
    overflow: hidden;
    background:
            radial-gradient(ellipse 80% 60% at 70% 40%, rgba(242,196,206,0.35) 0%, transparent 60%),
            radial-gradient(ellipse 60% 50% at 20% 80%, rgba(176,122,143,0.18) 0%, transparent 55%),
            radial-gradient(ellipse 50% 40% at 90% 10%, rgba(245,237,232,0.8) 0%, transparent 50%),
            var(--cream);
}

/* Blob decorativo fondo */
.hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
    background: radial-gradient(ellipse, rgba(242,196,206,0.25), transparent 70%);
    top: -100px; right: -100px;
    animation: blobFloat 8s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 40% 60% 45% 55% / 60% 40% 55% 45%;
    background: radial-gradient(ellipse, rgba(176,122,143,0.15), transparent 70%);
    bottom: -80px; left: -60px;
    animation: blobFloat 10s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0,0) rotate(0deg); }
    33%       { transform: translate(20px,-15px) rotate(5deg); }
    66%       { transform: translate(-10px,20px) rotate(-3deg); }
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

/* Foto hero */
.hero-photo {
    flex-shrink: 0;
    position: relative;
}

.hero-photo::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(
            var(--blush) 0deg,
            var(--mauve) 120deg,
            var(--rose) 240deg,
            var(--blush) 360deg
    );
    animation: rotateBorder 6s linear infinite;
    z-index: 0;
}

@keyframes rotateBorder {
    to { transform: rotate(360deg); }
}

.hero-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--warm-white);
    position: relative;
    z-index: 1;
    transition: transform var(--transition);
}
.hero-photo img:hover { transform: scale(1.04); }

/* Texto hero */
.hero-text {
    flex: 1;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mauve);
    margin-bottom: 16px;
    opacity: 0;
    animation: slideDown 0.6s ease 0.2s both;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 7vw, 5.5rem);
    font-weight: 300;
    color: var(--ink);
    line-height: 1.0;
    margin-bottom: 6px;
    opacity: 0;
    animation: slideUp 0.8s ease 0.4s both;
}

.hero-name em {
    font-style: italic;
    color: var(--rose);
    font-weight: 300;
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--mauve);
    font-weight: 300;
    margin-bottom: 28px;
    opacity: 0;
    animation: slideUp 0.8s ease 0.6s both;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.8s both;
}

.pill {
    background: rgba(242,196,206,0.35);
    border: 1px solid var(--blush);
    color: var(--deep-rose);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 30px;
    letter-spacing: 0.03em;
    transition: all var(--transition);
}
.pill:hover {
    background: var(--blush);
    transform: translateY(-2px);
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 0.8s ease 1.0s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--rose), var(--deep-rose));
    color: white;
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(196,104,122,0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196,104,122,0.45);
    color: white;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--rose);
    border: 1.5px solid var(--blush);
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition);
}
.btn-secondary:hover {
    background: rgba(242,196,206,0.2);
    border-color: var(--rose);
    transform: translateY(-2px);
    color: var(--deep-rose);
}

/* Scroll indicator */
.scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s ease 1.4s both;
}

.scroll-hint::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--blush), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.6; }
    50%       { transform: scaleY(1.3); opacity: 1; }
}

/* ── Animaciones base ── */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Nav ── */
nav {
    position: sticky;
    top: 0;
    background: rgba(253,248,245,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 900;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
}

nav a {
    display: block;
    padding: 16px 22px;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all var(--transition);
    border-bottom: 2px solid transparent;
    position: relative;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 50%; right: 50%;
    height: 2px;
    background: var(--rose);
    transition: left var(--transition), right var(--transition);
    border-radius: 2px;
}
nav a:hover::after,
nav a.active::after { left: 20%; right: 20%; }
nav a:hover,
nav a.active { color: var(--rose); }

/* ── Sections ── */
section {
    padding: 80px 48px;
    border-bottom: 1px solid var(--border);
}

section:nth-child(odd)  { background: var(--warm-white); }
section:nth-child(even) { background: var(--sand); }

.section-inner {
    max-width: 900px;
    margin: 0 auto;
}

section h2 {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 300;
    color: var(--ink);
    margin-bottom: 6px;
    line-height: 1.1;
}

section h2 em {
    font-style: italic;
    color: var(--rose);
}

.section-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--rose), var(--blush));
    border-radius: 2px;
    margin: 12px 0 28px;
}

.section-lead {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 40px;
    max-width: 580px;
    line-height: 1.75;
}

/* ── About ── */
#about ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#about ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--blush);
    padding: 14px 18px;
    border-radius: var(--radius);
    transition: border-color var(--transition), transform var(--transition);
}
#about ul li:hover {
    border-left-color: var(--rose);
    transform: translateX(4px);
}

/* ── Cards ── */
.card {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition), transform var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.card.visible {
    animation: cardIn 0.5s ease both;
}

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

.card-accent {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.card-icon-wrap {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(242,196,206,0.5), rgba(176,122,143,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.card h3 {
    font-family: var(--font-body);
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}

.card p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.card p strong { color: var(--ink); font-weight: 600; }

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.tag {
    background: rgba(242,196,206,0.3);
    color: var(--deep-rose);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 11px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    border: 1px solid rgba(242,196,206,0.6);
}

.links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.link-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--rose);
    border: 1px solid var(--blush);
    border-radius: 20px;
    padding: 5px 14px;
    transition: all var(--transition);
    background: rgba(242,196,206,0.1);
}
.link-chip:hover {
    background: linear-gradient(135deg, var(--rose), var(--deep-rose));
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196,104,122,0.3);
}

/* ── Degree wrapper ── */
.degree-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* ── Gallery ── */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--sand);
    border: 1px solid var(--border);
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--muted);
    text-align: center;
    padding: 12px;
}

/* ── Notice ── */
.notice {
    background: #fffaf3;
    border: 1px solid #f0ddb8;
    border-left: 3px solid #dba96e;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.83rem;
    color: #7a5a30;
    margin-top: 12px;
}

/* ── Buttons ── */
.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--rose), var(--deep-rose));
    color: white;
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.88rem;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(196,104,122,0.3);
}
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196,104,122,0.4);
    color: white;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

/* ── Contact ── */
#contact .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-email {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--rose);
    font-style: italic;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

/* ── Footer ── */
footer {
    background: var(--ink);
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 32px 24px;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}
footer a { color: rgba(242,196,206,0.7); }
footer a:hover { color: var(--blush); }

/* ── Scroll top ── */
#scroll-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose), var(--deep-rose));
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(196,104,122,0.4);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 800;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { transform: translateY(-2px) scale(1.05); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero { padding: 80px 24px 60px; min-height: auto; }
    .hero-inner { flex-direction: column; text-align: center; gap: 28px; }
    .hero-photo img { width: 140px; height: 140px; }
    .hero-name { font-size: 3rem; }
    .hero-pills { justify-content: center; }
    .hero-cta { justify-content: center; }

    section { padding: 56px 20px; }
    .degree-wrapper { grid-template-columns: 1fr; }
    .card { padding: 22px 20px; }
    nav a { padding: 12px 10px; font-size: 0.75rem; }
    nav ul { flex-wrap: wrap; }

    #contact .contact-grid { grid-template-columns: 1fr; gap: 20px; }
    .lang-switcher { top: 10px; right: 10px; padding: 5px 10px; }
}

/* ── Accesibilidad ── */
@media (prefers-reduced-motion: reduce) {
    .hero::before, .hero::after { animation: none; }
    .hero-photo::before { animation: none; }
    .hero-eyebrow, .hero-name, .hero-tagline,
    .hero-pills, .hero-cta, .scroll-hint { animation: none; opacity: 1; }
    .card { opacity: 1; transform: none; animation: none; }
}