/* 
   Concepción Gasfitería - Premium Modern Style
   Redesing by Antigravity
*/

:root {
    --primary: #fb923c;
    --primary-dark: #f97316;
    --secondary: #ea580c;
    --navy: #000000; /* Restoration to black */
    --navy-light: #0a0a0a;
    --slate: #f26b1d;
    --light: #000000;
    --white: #ffffff;
    --text-main: #ffffff;
    --text-heading: #fb923c;
    --success: #fb923c;
    --glass: rgba(249, 115, 22, 0.1);
    --glass-border: rgba(249, 115, 22, 0.2);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.8);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(14, 165, 233, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header & Navigation */
.top-bar {
    background: #000;
    color: var(--text-main);
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(249, 115, 22, 0.1);
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span {
    margin-right: 1.5rem;
    font-weight: 500;
}

.top-contact a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 1rem;
    font-weight: 600;
}

.top-tel {
    color: var(--secondary) !important;
}

header {
    background: rgba(0, 0, 0, 0.7); /* Translucent black as requested */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(249, 115, 22, 0.1);
    padding: 0.75rem 0;
    transition: all 0.4s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff; /* White logo text looks better on orange subtext */
    line-height: 1;
}

.logo-subtext {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
    background: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh; /* Changed from height: 90vh to min-height */
    padding: 4rem 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(2, 6, 23, 0.5) 0%, rgba(2, 6, 23, 0.9) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    text-align: left;
}

.glow-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 9999px;
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem); /* Slightly smaller to prevent cut-off */
    font-weight: 950;
    line-height: 1.2; /* Improved line height */
    margin-bottom: 1.5rem;
    padding-bottom: 0.2em; /* Ensure gradient isn't cut by overflow */
    background: linear-gradient(to right, var(--text-heading), #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-main);
    opacity: 0.85;
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    margin-bottom: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 950;
    color: var(--text-heading);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    color: #ffffff;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff; /* Improving contrast on button */
    box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.3);
    font-weight: 800;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: var(--glass);
    color: var(--white);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* Services Section */
.services-v2 {
    padding: 4rem 0;
    background: #000000;
}

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

.section-title h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 950;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.section-title p {
    font-size: 1.25rem;
    color: var(--slate);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
    border: 1px solid rgba(249, 115, 22, 0.1);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content {
    padding: 2.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.card-content p {
    color: var(--text-main);
    opacity: 0.8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.3s ease;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.btn-text:hover {
    gap: 1rem;
}

/* Other Services Grid */
.other-services {
    padding: 4rem 0;
    background: #000000;
}

.other-services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.other-service-item {
    background: #0a0a0a;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(249, 115, 22, 0.05);
    transition: all 0.3s ease;
}

.other-service-item:hover {
    background: rgba(249, 115, 22, 0.05);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.other-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.other-service-item p {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff; /* Explicit white for readability */
    line-height: 1.4;
}

/* Coverage Section */
.coverage-section {
    padding: 4rem 0;
    background: #000000;
}

.coverage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.coverage-content h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
}

.coverage-box {
    background: #0a0a0a;
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-left: 8px solid var(--primary);
}

.coverage-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.coverage-list li {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-main);
}

.coverage-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.coverage-image-slot {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.coverage-image-slot.main {
    grid-column: span 2;
    height: 400px;
}

.coverage-image-slot.sub {
    height: 250px;
}

.coverage-image-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Success Stories */
.success-stories {
    padding: 4rem 0;
    background: var(--navy);
    color: var(--white);
}

.stories-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

.story-card-slot {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
    height: 600px;
}

.story-card-slot video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-text h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
}

.story-text p {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.story-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mini-stat {
    background: var(--glass);
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all 0.3s ease;
}

.mini-stat:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.mini-stat strong {
    font-size: 2rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.mini-stat span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0.5;
}

/* Contact Section */
.contact-v2 {
    padding: 4rem 0;
    background: #000000;
}

.contact-v2-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
}

.contact-info-panel h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text-heading);
}

.contact-info-panel p {
    font-size: 1.25rem;
    color: #ffffff;
    opacity: 0.9;
    margin-bottom: 4rem;
}

.method-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(249, 115, 22, 0.05); /* Lighter to distinguish on black */
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(249, 115, 22, 0.1);
}

.method-box:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.method-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0) saturate(100%) invert(67%) sepia(90%) saturate(1800%) hue-rotate(345deg) brightness(98%) contrast(97%);
}

.method-text span {
    display: block;
    font-size: 0.875rem;
    color: var(--slate);
    font-weight: 600;
}

.method-text strong {
    font-size: 1.25rem;
    font-weight: 800;
}

.contact-form-panel {
    background: #0a0a0a;
    padding: 4rem;
    border-radius: 40px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(249, 115, 22, 0.1);
}

.quote-form h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 2.5rem;
    color: var(--text-heading);
}

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

.form-input {
    width: 100%;
    padding: 1.25rem;
    background: #0a0a0a;
    border: 2px solid rgba(249, 115, 22, 0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.form-input:focus {
    background: var(--white);
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.submit-btn {
    width: 100%;
}

/* Footer */
.footer-modern {
    padding: 4rem 0;
    background: #000;
    color: var(--text-main);
}

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

.footer-logo {
    height: 70px;
    margin-bottom: 2rem;
}

.brand-desc {
    opacity: 0.7;
    font-size: 1.1rem;
    max-width: 400px;
    margin-bottom: 3rem;
}

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

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.social-icons img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(67%) sepia(90%) saturate(1800%) hue-rotate(345deg) brightness(98%) contrast(97%);
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 1rem;
}

.footer-links-list a {
    color: var(--text-main);
    opacity: 0.7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links-list a:hover {
    opacity: 1;
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 1rem;
    opacity: 0.7;
}

.footer-contact strong {
    font-size: 1.25rem;
}

.footer-bottom {
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.5;
    font-size: 0.875rem;
}

.sec-badge {
    padding: 0.5rem 1rem;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 8px;
    font-weight: 700;
    color: var(--primary);
}

/* Modal System */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
}

.modal-container {
    background: #000;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 32px;
    position: relative;
    z-index: 10;
    padding: 4rem;
    overflow-y: auto;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.modal.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-heading);
}

.modal-body h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
}

.modal-body img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 3rem;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.modal-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--slate);
    margin-bottom: 3rem;
}

.modal-details h3 {
    margin-bottom: 1.5rem;
}

.modal-steps {
    list-style: none;
}

.modal-steps li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    display: flex;
    gap: 1rem;
}

.modal-steps li span {
    color: var(--primary);
}

/* Floating Elements */
.whatsapp-float {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 1500;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
    border: 2px solid var(--primary);
}

.mobile-action-bar {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .other-services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .top-bar { display: none; }
    .nav { display: none; }
    .header { padding: 0.75rem 0; }
    .hero { height: auto; padding: 12rem 0 6rem; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-subtitle { margin: 0 auto 3rem; }
    .hero-stats { justify-content: center; gap: 2rem; }
    .hero-actions { flex-direction: column; }
    .services-grid { grid-template-columns: 1fr; }
    .coverage-grid, .stories-grid, .contact-v2-wrapper { grid-template-columns: 1fr; gap: 4rem; }
    .coverage-visual { order: -1; }
    .story-card-slot { height: 400px; }
    .story-text { text-align: center; }
    .story-stats-grid { gap: 1rem; }
    .contact-form-panel { padding: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 4rem; }
    .modal-container { padding: 2.5rem; }
    .modal-info-grid { grid-template-columns: 1fr; gap: 3rem; }
    .other-services-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .mobile-action-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        z-index: 1000;
        background: rgba(2, 6, 23, 0.8);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.2);
    }
    .mobile-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-weight: 700;
        color: var(--white);
        transition: background 0.3s ease;
    }
    .call-btn { background: transparent; border-right: 1px solid rgba(255, 255, 255, 0.1); }
    .wa-btn { background: var(--primary); color: var(--navy); }
    body { padding-bottom: 70px; }
}
