/* Base Variables & Reset */
:root {
    --navy: #0B1F3A;
    --steel: #1D3A5C;
    --accent: #E8520A;
    --accent-light: #F07030;
    --off-white: #F5F2EC;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-mid: #4A5568;
    --border-subtle: rgba(11, 31, 58, 0.12);

    /* Mapeo de variables anteriores a la nueva paleta */
    --primary-color: var(--accent);
    --primary-hover: var(--accent-light);
    --dark-bg: var(--navy);
    --dark-gray: var(--steel);
    --gray-bg: var(--off-white);
    --text-light: var(--white);
    --text-muted: var(--text-mid);

    --transition: all 0.3s ease;
    --shadow: 0 5px 15px var(--border-subtle);
    --shadow-hover: 0 10px 25px rgba(11, 31, 58, 0.2);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Layout Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

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

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

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Typography elements */
.divider {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin-bottom: 25px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 40px;
}

.bg-dark .section-header p {
    color: #cccccc;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-bg);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(11, 31, 58, 0.08);
    border-bottom: 1px solid rgba(11, 31, 58, 0.10);
    transition: var(--transition);
}

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

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 4px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: var(--navy);
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:not(.btn):hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--navy);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 31, 58, 0.4) 0%, rgba(11, 31, 58, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: #e0e0e0;
    max-width: 650px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Tarjetas (Necesidades) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: var(--steel);
    color: var(--white);
    padding: 40px 30px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    border-top: 3px solid transparent;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-4px);
    background: var(--navy);
    border-top-color: var(--accent);
    box-shadow: 0 12px 28px rgba(11, 31, 58, 0.18);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
    transition: var(--transition);
}

.card:hover .card-icon {
    color: var(--accent);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--white);
}

.card p {
    color: var(--white);
    opacity: 0.82;
    font-size: 0.95rem;
}

/* La Empresa */
.empresa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.empresa-text p {
    margin-bottom: 20px;
    color: #cccccc;
}

.check-list {
    margin-top: 30px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.check-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.empresa-image img {
    border-radius: 4px;
    box-shadow: 20px 20px 0 var(--steel);
}

/* Seguridad Stats */
.seguridad-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
}

.stat-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.stat-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.stat-item p {
    color: #666;
    font-size: 0.95rem;
}

/* Timeline / Proceso */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.timeline-item {
    background: var(--white);
    padding: 40px 30px;
    position: relative;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.timeline-number {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.timeline-content h3 {
    margin-top: 15px;
    font-size: 1.2rem;
}

.timeline-content p {
    color: #666;
    font-size: 0.95rem;
}

/* Galería */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(11, 31, 58, 0.9), transparent);
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay span {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 30px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-bg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 30px 20px;
    color: #666;
}

/* Contacto */
.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contacto-info p {
    color: #ccc;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-item span {
    display: block;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.contact-item strong {
    color: var(--white);
    font-size: 1.1rem;
}

.contacto-form-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.file-upload {
    background-color: #f9f9f9;
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload label {
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.file-upload small {
    color: #888;
}

/* Footer */
.footer {
    background-color: var(--navy);
    color: var(--off-white);
    padding: 30px 0;
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #888;
    margin-left: 20px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Botón WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
    color: white;
}

/* Animaciones de Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 1024px) {
    .timeline {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .empresa-grid,
    .contacto-wrapper {
        grid-template-columns: 1fr;
    }

    .empresa-image img {
        box-shadow: 10px 10px 0 var(--primary-color);
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--dark-bg);
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .main-nav ul li a {
        font-size: 1.2rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 120px 0 80px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        margin-top: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links a {
        margin: 0 10px;
    }
}