/* Global Styles */
:root {
    --primary-color: #0b1d3a;
    --primary-light: #153260;
    --accent-color: #ffd700;
    --accent-hover: #e6c200;
    --text-color: #333333;
    --text-light: #f4f4f4;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--primary-color);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.logo i {
    font-size: 2rem;
    color: var(--accent-color);
}

.logo-title {
    font-weight: 700;
    font-size: 1.25rem;
    display: block;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: #cccccc;
    font-weight: 400;
}

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

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

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-btn-contact {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 4px;
}

.nav-btn-contact:hover {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
}

.mobile-menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('../assets/images/hero_bg.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 29, 58, 0.9) 0%, rgba(11, 29, 58, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding-top: var(--header-height);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
    color: var(--accent-color);
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #e0e0e0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Trust Bar */
.trust-bar {
    background-color: var(--bg-light);
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.trust-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.trust-item span {
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.3;
}

/* Sections General */
.section {
    padding: 80px 0;
    scroll-margin-top: 80px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Services Section */
.services {
    background-color: var(--white);
}

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

.service-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
    background: var(--white);
}

.service-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Emergency Highlight Section */
.emergency-highlight {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    background-image: linear-gradient(rgba(11, 29, 58, 0.9), rgba(11, 29, 58, 0.9));
    position: relative;
    overflow: hidden;
}

.emergency-content {
    position: relative;
    z-index: 2;
}

.emergency-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.emergency-highlight h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.emergency-highlight p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e0e0e0;
}

.emergency-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

/* How We Work Section */
.how-we-work {
    background-color: var(--bg-light);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    flex: 1;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px var(--bg-light);
}

.step h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.step p {
    font-size: 0.9rem;
    color: #666;
}

.step-connector {
    flex-grow: 1;
    height: 2px;
    background-color: #d1d1d1;
    margin-top: 30px;
    position: relative;
    z-index: 1;
    display: none;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 15%;
    right: 15%;
    height: 2px;
    background-color: #d1d1d1;
    z-index: 1;
}

/* Gallery Carousel */
.gallery-carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 50px;
}

.gallery-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-carousel::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 250px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 180px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

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

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: var(--transition);
}

.carousel-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

/* Service Area */
.service-area {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

.area-content h2 {
    margin-bottom: 20px;
}

.area-content p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: #e0e0e0;
}

/* Footer */
.footer {
    background-color: #050f1f;
    color: #cccccc;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo .logo {
    margin-bottom: 15px;
}

.footer h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 10px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-contact i {
    color: var(--accent-color);
    margin-right: 10px;
}

.footer-bottom {
20px 0;
    text-align: center;
    font-size:     padding: 0.9rem;
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.floating-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .steps-container::before {
        display: none;
    }

    .step {
        margin-bottom: 40px;
        width: 100%;
        max-width: 500px;
    }

    .step-connector {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding: 50px 0;
        scroll-margin-top: 70px;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 30px 20px;
        gap: 25px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        text-align: center;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        gap: 15px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Servicios en carrusel mobile */
    .services-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 0 20px 20px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        grid-template-columns: unset;
    }

    .services-grid::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        flex: 0 0 80vw;
        max-width: 320px;
        scroll-snap-align: center;
    }

    /* Dots navegación servicios */
    .services-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }

    .services-dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #ccc;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .services-dots .dot.active {
        background-color: var(--primary-color);
    }

    /* Galería sin flechas, full width */
    .gallery-carousel-wrapper {
        padding: 0;
    }

    .carousel-btn {
        display: none;
    }

    .gallery-carousel {
        scroll-snap-type: x mandatory;
    }

    .gallery-item {
        flex: 0 0 100%;
        scroll-snap-align: center;
        height: 240px;
    }

    .emergency-highlight h2 {
        font-size: 2.2rem;
    }

    .emergency-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-links ul,
    .footer-contact ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-content {
        padding-top: calc(var(--header-height) + 20px);
    }

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

    .trust-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }

    .gallery-item {
        flex: 0 0 100%;
    }

    .floating-wa {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
}