/* ==========================================================================
   PetroInvestigaciones Lux - Custom Styles
   ========================================================================== */

/* Custom Colors
   ========================================================================== */
:root {
    --custom-dark: #111827;
    --custom-dark-secondary: #1F2937;
    --custom-gold: #B7935A;
    --custom-copper: #CD7F32;
    --custom-teal: #34D399;
    --custom-dark-blue: #0D111A;
    --text-light: #F3F4F6;
    --text-muted: #9CA3AF;
}

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

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

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

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

/* Base Styles
   ========================================================================== */
body {
    background-color: var(--custom-dark);
    color: var(--text-light);
    font-family: 'Rubik', sans-serif;
}

.font-rubik {
    font-family: 'Rubik', sans-serif;
}

.container {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    line-height: 1.6;
}

/* Links & Buttons
   ========================================================================== */
a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-gold {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--custom-gold), var(--custom-copper));
    color: var(--custom-dark);
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--custom-gold);
    font-weight: 500;
    border: 1px solid var(--custom-gold);
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: rgba(183, 147, 90, 0.1);
    transform: translateY(-2px);
}

/* Header & Navigation
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 30;
    background-color: var(--custom-dark);
    border-bottom: 1px solid rgba(156, 163, 175, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--custom-gold);
}

.nav-link.active {
    color: var(--custom-gold);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0.5rem;
    right: 0.5rem;
    height: 2px;
    background-color: var(--custom-gold);
    border-radius: 1px;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--custom-gold);
}

/* Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    height: calc(100vh - 5rem);
    min-height: 500px;
    max-height: 800px;
}

/* Diagonal Divider
   ========================================================================== */
.diagonal-divider {
    position: relative;
    height: 5rem;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 25%);
    margin-top: -5rem;
    z-index: 5;
}

/* Service Cards
   ========================================================================== */
.service-card {
    background-color: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(156, 163, 175, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(183, 147, 90, 0.4);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--custom-gold), var(--custom-copper));
    color: var(--custom-dark);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* About Image Grid
   ========================================================================== */
.about-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    height: 100%;
}

.about-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image-container:hover .about-image {
    transform: scale(1.05);
}

/* Research Cards
   ========================================================================== */
.research-card {
    display: flex;
    flex-direction: column;
    background-color: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(156, 163, 175, 0.2);
    border-radius: 0.5rem;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(183, 147, 90, 0.4);
}

.research-image-container {
    height: 240px;
    overflow: hidden;
}

.research-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.research-card:hover .research-image {
    transform: scale(1.05);
}

.research-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.research-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

.research-date::before {
    content: '\f073';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    color: var(--custom-gold);
}

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

.research-category::before {
    content: '\f5fd';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    color: var(--custom-gold);
}

/* Stats Cards
   ========================================================================== */
.stat-card {
    background-color: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(156, 163, 175, 0.2);
    border-radius: 0.5rem;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(183, 147, 90, 0.4);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--custom-gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
}

/* Contact Form
   ========================================================================== */
.contact-form-container {
    background-color: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(156, 163, 175, 0.2);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-light);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(156, 163, 175, 0.3);
    border-radius: 0.375rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--custom-gold);
    box-shadow: 0 0 0 2px rgba(183, 147, 90, 0.2);
}

.contact-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--custom-gold), var(--custom-copper));
    color: var(--custom-dark);
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Timeline
   ========================================================================== */
.timeline {
    position: relative;
    padding-left: 3rem;
    margin-left: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--custom-gold), var(--custom-copper));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -3rem;
    width: 1.5rem;
    height: 1.5rem;
    background: linear-gradient(135deg, var(--custom-gold), var(--custom-copper));
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.timeline-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 2rem;
    height: 2px;
    background-color: var(--custom-gold);
    transform: translateY(-50%);
}

.timeline-date {
    display: inline-block;
    background-color: var(--custom-gold);
    color: var(--custom-dark);
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    margin-bottom: 0.75rem;
}

/* Challenge Cards
   ========================================================================== */
.challenge-card {
    background-color: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(156, 163, 175, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(183, 147, 90, 0.4);
}

.challenge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--custom-gold), var(--custom-copper));
    color: var(--custom-dark);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Trend Cards
   ========================================================================== */
.trend-card {
    background-color: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(156, 163, 175, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.trend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(183, 147, 90, 0.4);
}

.trend-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--custom-gold), var(--custom-copper));
    color: var(--custom-dark);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.trend-content {
    padding: 1rem;
}

/* Hexagon Grid
   ========================================================================== */
.hexagon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 120px;
    grid-gap: 15px;
    margin: 0 auto;
    max-width: 100%;
}

.hexagon-item {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 41, 55, 0.6);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    transition: all 0.3s ease;
}

.hexagon-item:hover {
    transform: translateY(-5px);
    background-color: rgba(183, 147, 90, 0.2);
}

.hexagon-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
}

.hexagon-icon {
    color: var(--custom-gold);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Methodology Cards
   ========================================================================== */
.methodology-card {
    background-color: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(156, 163, 175, 0.2);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.methodology-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(183, 147, 90, 0.4);
}

.methodology-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background-color: rgba(13, 17, 26, 0.5);
    border-bottom: 1px solid rgba(156, 163, 175, 0.2);
}

.methodology-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--custom-gold), var(--custom-copper));
    color: var(--custom-dark);
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.methodology-content {
    padding: 1.5rem;
}

.methodology-list {
    list-style-type: none;
    padding-left: 0;
    margin: 1rem 0;
}

.methodology-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.methodology-list li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--custom-gold);
}

/* Technology Cards
   ========================================================================== */
.technology-card {
    background-color: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(156, 163, 175, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.technology-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(183, 147, 90, 0.4);
}

.technology-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--custom-gold), var(--custom-copper));
    color: var(--custom-dark);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.technology-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.technology-features span {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(13, 17, 26, 0.5);
    border: 1px solid rgba(183, 147, 90, 0.3);
    border-radius: 1rem;
    font-size: 0.75rem;
    color: var(--custom-gold);
}

/* Application Cases
   ========================================================================== */
.application-case {
    background-color: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(156, 163, 175, 0.2);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.application-case:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(183, 147, 90, 0.4);
}

.application-header {
    padding: 1.5rem;
    background-color: rgba(13, 17, 26, 0.5);
    border-bottom: 1px solid rgba(156, 163, 175, 0.2);
}

.application-content {
    padding: 1.5rem;
}

.application-list {
    list-style-type: none;
    padding-left: 0;
    margin: 1rem 0;
}

.application-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.application-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--custom-gold);
}

.application-result {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: rgba(13, 17, 26, 0.5);
    border-radius: 0.375rem;
}

/* Process Timeline
   ========================================================================== */
.process-timeline {
    position: relative;
    max-width: 48rem;
    margin: 0 auto;
    padding: 2rem 0;
}

.process-step {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 3rem;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 3rem;
    bottom: -3rem;
    width: 2px;
    background-color: rgba(183, 147, 90, 0.3);
}

.process-step:last-child::before {
    display: none;
}

.process-number {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--custom-gold), var(--custom-copper));
    color: var(--custom-dark);
    border-radius: 50%;
    font-weight: 700;
    z-index: 5;
}

/* Contact Page Styles
   ========================================================================== */
.contact-form-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.specialty-tag {
    display: inline-block;
    padding: 0.75rem 1rem;
    background-color: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(183, 147, 90, 0.3);
    border-radius: 0.375rem;
    text-align: center;
    transition: all 0.3s ease;
}

.specialty-tag:hover {
    background-color: rgba(183, 147, 90, 0.1);
    transform: translateY(-2px);
}

.faq-item {
    background-color: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(156, 163, 175, 0.2);
    border-radius: 0.375rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(13, 17, 26, 0.5);
}

.faq-answer {
    padding: 0 1.5rem 1rem 1.5rem;
    border-top: 1px solid rgba(156, 163, 175, 0.2);
}

.location-map-container {
    position: relative;
    height: 400px;
    background-color: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(156, 163, 175, 0.2);
    border-radius: 0.5rem;
    overflow: hidden;
}

.location-map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(13, 17, 26, 0.5);
}

.location-details {
    height: 100%;
    background-color: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(156, 163, 175, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

/* Policy Pages
   ========================================================================== */
.policy-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(156, 163, 175, 0.2);
}

.policy-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.policy-content p {
    margin-bottom: 1rem;
}

.policy-content ul {
    margin-bottom: 1rem;
}

/* Thank You Page
   ========================================================================== */
.thank-you-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8rem;
    height: 8rem;
    background-color: rgba(31, 41, 55, 0.6);
    border: 2px solid var(--custom-gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(183, 147, 90, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(183, 147, 90, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(183, 147, 90, 0);
    }
}

.info-card {
    background-color: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(156, 163, 175, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(183, 147, 90, 0.4);
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--custom-gold), var(--custom-copper));
    color: var(--custom-dark);
    border-radius: 50%;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* International Telephone Input
   ========================================================================== */
.iti {
    width: 100%;
}

.iti__flag {
    background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.1/build/img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.1/build/img/flags@2x.png");
    }
}

/* Utility Classes
   ========================================================================== */
.h-screen-80 {
    height: 80vh;
}

/* Aspect Ratio Classes
   ========================================================================== */
.aspect-w-4 {
    position: relative;
    padding-bottom: calc(var(--tw-aspect-h) / var(--tw-aspect-w) * 100%);
    --tw-aspect-w: 4;
}

.aspect-h-5 {
    --tw-aspect-h: 5;
}

.aspect-w-4 > * {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Responsive Adjustments
   ========================================================================== */
@media (max-width: 640px) {
    .hexagon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step {
        padding-left: 2.5rem;
    }
    
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline-marker {
        left: -2rem;
    }
}

@media (max-width: 480px) {
    .hexagon-grid {
        grid-template-columns: 1fr;
    }
}