/*========================================================
  GLOBAL THEME – RETRO  |  BIOMORPHIC  |  MONOCHROME
========================================================*/
:root {
    /* Monochrome Palette */
    --clr-bg-light: #f5f5f5;
    --clr-bg: #e7e7e7;
    --clr-bg-dark: #1a1a1a;

    --clr-text: #222222;
    --clr-text-light: #ffffff;
    --clr-accent: #4d4d4d; /* botones + enlaces */
    --clr-accent-dark: #333333; /* hover estados */
    --clr-accent-light: #bfbfbf; /* bordes sutiles */

    /* Typography */
    --ff-heading: 'Poppins', sans-serif;
    --ff-body: 'Work Sans', sans-serif;

    /* Elevation & Radius */
    --radius-soft: 28px; /* biomórfico */
    --radius-hard: 8px;
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.15);

    /* Transition & Timing */
    --transition: all .35s ease;
}

/*========================================================
  RESET & BASE
========================================================*/
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-body);
    line-height: 1.6;
    color: var(--clr-text);
    background: var(--clr-bg-light);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--clr-accent);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-heading);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: var(--clr-text);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/*========================================================
  LAYOUT UTILITIES
========================================================*/
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.flex {
    display: flex;
    align-items: center;
}

.space-between {
    justify-content: space-between;
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.grid-2 {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.is-two-thirds {
    max-width: 800px;
    margin: 0 auto;
}

.mt-20 {
    margin-top: 20px;
}

/*========================================================
  HEADER
========================================================*/
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .07);
}

.main-header .logo {
    font-family: var(--ff-heading);
    font-size: 1.3rem;
    color: var(--clr-accent-dark);
}

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

.nav a {
    font-weight: 500;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--clr-accent-dark);
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: .5rem;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--clr-accent-dark);
    transition: var(--transition);
}

/* Mobile Nav */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 64px;
        right: -100%;
        height: calc(100vh - 64px);
        width: 240px;
        background: var(--clr-bg-light);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
    }

    .nav.open {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 1rem;
    }
}

/*========================================================
  HERO
========================================================*/
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hero .container > * {
    max-width: 770px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    color: var(--clr-text-light);
}

.hero p {
    color: var(--clr-text-light);
    font-size: 1.1rem;
    margin-top: .8rem;
}

/*========================================================
  BUTTONS
========================================================*/
.btn, button, input[type='submit'] {
    display: inline-block;
    background: var(--clr-accent);
    color: var(--clr-text-light);
    padding: .9rem 2.2rem;
    border: none;
    border-radius: var(--radius-hard);
    cursor: pointer;
    font-family: var(--ff-heading);
    font-size: 1rem;
    letter-spacing: .5px;
    transition: var(--transition);
}

.btn.primary {
    background: var(--clr-accent);
}

.btn:hover, button:hover, input[type='submit']:hover {
    background: var(--clr-accent-dark);
    transform: translateY(-2px);
}

/*========================================================
  SECTIONS
========================================================*/
.section {
    padding: 5rem 0;
}

.section.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Accent overlay for readability */
.section.parallax[data-prompt]::before,
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, .4) 100%);
    z-index: -1;
}

/*========================================================
  CARDS (IMPORTANT PATTERN)
========================================================*/
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--clr-bg);
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-6px);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.card-content {
    padding: 1.5rem;
    text-align: center;
}

.card-content h3 {
    margin-bottom: .6rem;
}

/*========================================================
  TEAM SECTION
========================================================*/
#team {
    position: relative;
    color: var(--clr-text-light);
}

#team p {
    color: var(--clr-text-light);
}

#team::before { /* overlay handled above through .parallax */
}

/*========================================================
  CONTACT FORM
========================================================*/
#contact form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

#contact label {
    font-weight: 500;
    margin-bottom: .3rem;
}

#contact input, #contact textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid var(--clr-accent-light);
    border-radius: var(--radius-hard);
    font-family: var(--ff-body);
}

#contact input:focus, #contact textarea:focus {
    outline: none;
    border-color: var(--clr-accent-dark);
}

/*========================================================
  FOOTER
========================================================*/
.footer {
    background: var(--clr-bg-dark);
    color: var(--clr-text-light);
    padding: 3rem 0;
}

.footer p {
    color: var(--clr-text-light);
}

.foot-nav, .social {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.foot-nav a, .social a {
    color: var(--clr-text-light);
    transition: var(--transition);
}

.foot-nav a:hover, .social a:hover {
    text-decoration: underline;
    color: #fafafa;
}

/* Social pseudo-icons */
.social a::before {
    content: "◆";
    display: inline-block;
    margin-right: 6px;
    color: var(--clr-accent-light);
    transition: var(--transition);
}

.social a:hover::before {
    transform: scale(1.3);
    color: #ffffff;
}

/*========================================================
  READ MORE LINKS
========================================================*/
.read-more {
    display: inline-block;
    font-weight: 600;
    color: var(--clr-accent);
    position: relative;
    padding-right: 1.2rem;
}

.read-more::after {
    content: "→";
    position: absolute;
    right: 0;
    top: 0;
    transition: var(--transition);
}

.read-more:hover::after {
    transform: translateX(4px);
}

/*========================================================
  PARALLAX EFFECT (simple perspective)
========================================================*/
[data-parallax] {
    perspective: 1000px;
    transform-style: preserve-3d;
}

[data-parallax] .parallax-layer {
    transform: translateZ(-2px) scale(3);
}

/*========================================================
  SUCCESS PAGE
========================================================*/
.page-success {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-bg);
    text-align: center;
}

.page-success h1 {
    color: var(--clr-accent-dark);
}

/*========================================================
  LEGAL PAGES (PRIVACY & TERMS)
========================================================*/
.legal-page {
    padding-top: 100px;
    padding-bottom: 4rem;
}

/*========================================================
  ANIMATIONS & TRANSITIONS
========================================================*/
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/*========================================================
  MEDIA QUERIES - TEXT SCALING
========================================================*/
@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .section {
        padding: 3.5rem 0;
    }
}

@media (max-width: 768px) {
    .foot-nav, .social {
        list-style: none;
        display: flex;
        gap: 1.5rem;
        margin-top: 1rem;
        flex-wrap: wrap;
        flex-direction: column;
    }

}