/* ======================================
   STYLE.CSS – PETROGLOBAL
   Paleta Petroleum Premium:
   #0A0A0A (negro profundo)
   #C5A059 (oro/ámbar refinado)
   #2F2F2F (gris acorazado)
   #FFFFFF (blanco puro)
   ====================================== */

/* ----- RESET & VARIABLES ----- */
:root {
    --black: #0A0A0A;
    --gold: #C5A059;
    --gray: #2F2F2F;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ----- TIPOGRAFÍA ----- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; font-family: 'Montserrat', sans-serif; font-weight: 600; }

.gold {
    color: var(--gold);
}

/* ----- LAYOUT & CONTENEDORES ----- */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.bg-dark {
    background-color: var(--gray);
}

/* ----- DIVISOR ELEGANTE ----- */
.divider {
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: 1.5rem 0 2rem;
}

.divider.gold-bg { background: var(--gold); }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header.light h2 { color: var(--white); }
.section-header .divider { margin-left: auto; margin-right: auto; }

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ----- GLASSMORPHISM (sutil) ----- */
.glass-nav, .glass-card, .glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.glass-card {
    padding: 2.5rem 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(197, 160, 89, 0.08);
    border-color: rgba(197, 160, 89, 0.3);
    transform: translateY(-6px);
}

/* ----- HEADER ----- */
.header {
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 1000;
    padding: 0.8rem 2rem;
    border-radius: 60px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-family: 'Playfair Display', serif;
}

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

.nav-list a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-list a:hover { color: var(--gold); }

.lang-switch .lang-btn {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid transparent;
}

.lang-switch .lang-btn:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

/* ----- HERO con PARALLAX ----- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-image: url('img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax sutil */
    background-repeat: no-repeat;
    isolation: isolate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(10,10,10,0.4), var(--black) 90%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 400;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--gold);
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
}

.btn-primary:hover {
    background: transparent;
    color: var(--gold);
}

/* ----- GRIDS ----- */
.grid-2, .grid-3 {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

/* ----- CARDS MISIÓN/VISIÓN ----- */
.card {
    text-align: center;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

/* ----- PILARES ESTRATÉGICOS ----- */
.pillar-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    transition: var(--transition);
}

.pillar-item:hover {
    background: rgba(197, 160, 89, 0.1);
}

.pillar-icon {
    font-size: 2.8rem;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

.pillar-item h4 {
    margin-bottom: 0.8rem;
    color: var(--gold);
}

.pillar-item p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ----- EXPERTISE ----- */
.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.expertise-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.expertise-text {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    opacity: 0.9;
}

.expertise-card {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 300px;
    margin: 0 auto;
}

.expertise-card i {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.expertise-card p {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.expertise-card small {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ----- FOOTER (glass) ----- */
.footer {
    background: var(--gray);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(197,160,89,0.2);
}

.glass-footer {
    background: rgba(15,15,15,0.7);
    backdrop-filter: blur(12px);
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-text {
    font-size: 1.8rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-contact h5, .footer-links h5 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
}

.footer-contact ul {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-contact i {
    color: var(--gold);
    width: 20px;
}

.social-icons {
    display: flex;
    gap: 1.2rem;
}

.social-icons a {
    color: var(--white);
    background: rgba(255,255,255,0.08);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icons a:hover {
    background: var(--gold);
    color: var(--black);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ----- FADE-IN ANIMATION ----- */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

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

/* ----- MEDIA QUERIES (Mobile-first) ----- */
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .expertise-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    h2 { font-size: 3rem; }
    .hero-title { font-size: 5rem; }
    .hero-subtitle { font-size: 1.4rem; }
}

/* ----- AJUSTES RESPONSIVE MENÚ ----- */
@media (max-width: 768px) {
    .header {
        padding: 0.8rem 1.2rem;
        top: 0.5rem;
    }
    .nav-list {
        gap: 1rem;
    }
    .nav-list a { font-size: 0.8rem; }
    .logo-text { font-size: 1.3rem; }
    .section { padding: 4rem 0; }
}

@media (max-width: 480px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
    .nav-list { gap: 0.8rem; }
    .hero-title { font-size: 2.5rem; }
}