/* =======================
   style.css  |  YPF ARG
   Diseño corporativo + UI 3D
   ======================= */

:root {
    /* CORE PALETTE */
    --primary-500:#0075ff;
    --primary-600:#0060d1;
    --primary-700:#004ca3;

    --accent-500:#00c2b2;
    --accent-600:#00a598;
    --accent-700:#00877d;

    --neutral-100:#f8fafc;
    --neutral-200:#e2e8f0;
    --neutral-900:#1e293b;

    /* GRADIENTS */
    --gradient-primary:linear-gradient(135deg,var(--primary-500) 0%,var(--accent-500) 100%);
    --gradient-secondary:linear-gradient(135deg,var(--primary-600) 0%,var(--accent-600) 100%);
    --gradient-dark:linear-gradient(135deg,var(--primary-700) 0%,var(--accent-700) 100%);

    /* SHADOWS */
    --shadow-3d:0 8px 20px rgba(0,0,0,0.25);
    --shadow-soft:0 4px 10px rgba(0,0,0,0.15);
}

/* ========== GLOBAL RESETS & TYPO ========== */
html{
    scroll-behavior:smooth;
}
body{
    font-family:'Work Sans',sans-serif;
    background:var(--neutral-100);
    color:var(--neutral-900);
    line-height:1.6;
}

/* Heading font */
h1,h2,h3,h4,h5,h6{
    font-family:'Poppins',sans-serif;
    font-weight:600;
    text-shadow:1px 1px 3px rgba(0,0,0,.05);
}

/* ========== LAYOUT HELPERS ========== */
.section-padding{
    padding:4rem 1rem;
}
.centered{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}
.parallax-bg{
    background-attachment:fixed;
    background-size:cover;
    background-repeat:no-repeat;
}
.glass{
    backdrop-filter:blur(10px) saturate(180%);
    background:rgba(255,255,255,0.15);
    border:1px solid rgba(255,255,255,0.3);
}

/* ========== BUTTONS ========== */
.btn,button,
input[type='submit'],
input[type='button']{
    appearance:none;
    display:inline-block;
    padding:.75rem 2.5rem;
    border:none;
    border-radius:999px;
    color:#fff;
    font-weight:600;
    background:var(--gradient-primary);
    box-shadow:var(--shadow-3d);
    transition:all .35s ease;
    cursor:pointer;
}
.btn:hover,
button:hover,
input[type='submit']:hover,
input[type='button']:hover{
    transform:translateY(-3px) scale(1.03) perspective(700px) rotateX(8deg);
    box-shadow:0 12px 25px rgba(0,0,0,0.25);
}
.btn:active{
    transform:translateY(0);
    box-shadow:var(--shadow-soft);
}

/* ========== READ MORE LINKS ========== */
.read-more{
    position:relative;
    font-weight:600;
    color:var(--primary-500);
    transition:color .3s ease;
}
.read-more::after{
    content:'';
    position:absolute;
    left:0;bottom:-2px;
    width:100%;height:2px;
    background:var(--primary-500);
    transform:scaleX(0);
    transform-origin:left;
    transition:transform .3s ease;
}
.read-more:hover{
    color:var(--primary-600);
}
.read-more:hover::after{
    transform:scaleX(1);
}

/* ========== HERO ========== */
#hero{
    color:#fff;
}
#hero .btn{
    background:var(--gradient-secondary);
}

/* ========== HEADER ========== */
header{
    backdrop-filter:blur(8px);
}
header nav a{
    position:relative;
    transition:color .25s ease;
}
header nav a::after{
    content:'';
    position:absolute;
    bottom:-6px;left:0;
    width:0;height:2px;
    background:#fff;
    transition:width .25s ease;
}
header nav a:hover::after{
    width:100%;
}

/* ========== CARD COMPONENT ========== */
.card, .item, .testimonial, .team-member, .product-card{
    background:#fff;
    border-radius:1rem;
    box-shadow:var(--shadow-soft);
    overflow:hidden;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    transition:transform .35s ease,box-shadow .35s ease;
}
.card:hover{
    transform:translateY(-6px) scale(1.01);
    box-shadow:var(--shadow-3d);
}

/* Image container rules */
.card .image-container,
.card .card-image{
    width:100%;
    height:220px;
    overflow:hidden;
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
}
.card .image-container img,
.card .card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    margin:0 auto;
}

/* ========== TIMELINE ========== */
.timeline{
    position:relative;
    padding-left:2rem;
}
.timeline::before{
    content:'';
    position:absolute;
    top:0;left:0;
    width:4px;height:100%;
    background:var(--gradient-primary);
}
.timeline .timeline-item{
    margin-bottom:2rem;
    position:relative;
}
.timeline .timeline-item::before{
    content:'';
    position:absolute;
    left:-1.375rem;
    top:.25rem;
    width:1rem;height:1rem;
    border-radius:50%;
    background:var(--primary-500);
    box-shadow:0 0 0 4px var(--neutral-100);
}

/* ========== SOCIAL LINKS FOOTER ========== */
footer a{
    color:#93c5fd;
    transition:color .25s ease;
}
footer a:hover{
    color:#bfdbfe;
}
/* stylish underline */
footer a::after{
    content:'';
    display:block;
    width:0;height:2px;
    background:#bfdbfe;
    transition:width .3s;
}
footer a:hover::after{
    width:100%;
}

/* ========== SUCCESS PAGE ========== */
.success-wrapper{
    min-height:100vh;
}

/* ========== PRIVACY / TERMS FIXED PADDING ========== */
.legal-page{
    padding-top:100px; /* prevent overlap with fixed header */
}

/* ========== ANIMACIONES 3D SLIGHT ========== */
@keyframes fadeInUp{
    from{opacity:0; transform:translateY(40px);}
    to{opacity:1; transform:translateY(0);}
}
.animate-fadeUp{
    animation:fadeInUp .8s ease forwards;
}

/* ========== PARALLAX HELPER ========== */
.parallax{
    background-size:cover;
    background-repeat:no-repeat;
    background-attachment:fixed;
}

/* ========== FORM FIELDS ========== */
input,textarea{
    transition:box-shadow .25s ease,border-color .25s ease;
}
input:focus,textarea:focus{
    outline:none;
    border-color:var(--primary-500);
    box-shadow:0 0 0 2px var(--primary-500) inset;
}

/* ========== COOKIE POPUP ========== */
#cookiePopup{
    font-size:.875rem;
}

/* ========== UTILS ========== */
.shadow-3d{
    box-shadow:var(--shadow-3d);
}
.bg-gradient-primary{
    background:var(--gradient-primary);
}
.bg-gradient-secondary{
    background:var(--gradient-secondary);
}
.text-shadow{
    text-shadow:1px 1px 3px rgba(0,0,0,0.6);
}