@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --primary: #0F2A44;
    --secundary: #2F5F8F;
    --light: #f8f9fa;
    --gray: #666;
    --border: #e0e0e0;
    --max-width: 1200px;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    background: var(--light);
    color: black;
    line-height: 1.6;
}

/* ====== HEADER ====== */
header {
    background: white;
    padding: 2px 20px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo img {
    height: 90px;
    width: auto;
    object-fit: contain;
}

.desktop-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.desktop-menu a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.desktop-menu a.active {
    color: var(--secundary);
}

.desktop-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--secundary);
}

#menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: white;
    box-shadow: var(--shadow);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 20px;
    gap: 15px;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.3s;
}

.mobile-menu a:hover {
    background: var(--light);
}

.mobile-menu.hidden {
    display: none !important;
}

/* ====== HERO & PAGE HEADER (shared) ====== */
.hero,
.page-header {
    background-color: var(--primary);
    background-image: linear-gradient(rgba(140, 140, 140, 0.45), rgba(140, 140, 140, 0.45)), url('images/hero_background.jpg');
    background-size: 220%;
    background-position: 65% 48%;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
}

.hero {
    height: 400px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header {
    padding: 80px 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1,
.page-header h1 {
    font-weight: 700;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero h2 {
    margin-bottom: 50px;
}

.hero h3 {
    font-size: 35px;
    margin-bottom: 50px;
}

.hero p,
.page-header p {
    opacity: 0.95;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.page-header p {
    font-size: 18px;
}

.link-secondary {
    color: var(--secundary);
    text-decoration: none;
}

/* ====== BUTTONS ====== */
.btn-primary {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-submit {
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
}

.btn-submit:hover {
    background: var(--secundary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.form-success {
    text-align: center;
    padding: 40px 20px;
    font-size: 1.1rem;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
}

/* ====== SECTIONS ====== */
.content-section,
.map-section {
    max-width: var(--max-width);
    margin: 60px auto;
    padding: 0 20px;
}

section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary);
}

/* ====== INTRO SECTION ====== */
.intro-section {
    max-width: var(--max-width);
    margin: 80px auto;
    padding: 0 20px;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.intro-box {
    background-size: 100%;
    background-position: center;
    padding: 80px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.intro-box:nth-child(1) {
    background-image: linear-gradient(rgba(255, 255, 255, 0.33), rgba(255, 255, 255, 0.33)), url('images/image1.png');
}

.intro-box:nth-child(2) {
    background-image: linear-gradient(rgba(255, 255, 255, 0.33), rgba(255, 255, 255, 0.33)), url('images/image2.png');
}

.intro-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.intro-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary);
}

.intro-box h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--primary);
    background-color: rgba(211,211,211,0.6);
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
}

.intro-box p {
    color: var(--gray);
    font-size: 16px;
}

.intro-text {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: center;
}

/* ====== ABOUT PAGE ====== */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text h2 {
    font-size: 28px;
    margin-bottom: 15px;
    text-align: left;
}

.about-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 20px;
}

/* ====== SERVICES ====== */
.section-cta {
    margin-top: 40px;
}

.section-cta .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 18px;
    font-size: 1.6rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    flex: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 8px 0;
    color: var(--gray);
    position: relative;
    padding-left: 25px;
}

.service-features a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.carousel-heading {
    margin-top: 60px;
    margin-bottom: 0;
    text-align: center;
    color: var(--primary);
    font-size: 28px;
}

.services-carousels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.carousel-pane {
    position: relative;
}

.carousel-pane + .carousel-pane {
    border-left: 2px solid var(--light);
}

.carousel-track {
    height: 600px;
    overflow: hidden;
}

.carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.carousel-track img.active {
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 42, 68, 0.7);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
    line-height: 1;
}

.carousel-btn:hover {
    background: var(--primary);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

/* ====== PROCESS ====== */
.process-section {
    max-width: var(--max-width);
    margin: 80px auto;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.step p {
    color: var(--gray);
}

/* ====== GALLERY ====== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    aspect-ratio: 1;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    border-radius: 8px;
}

.gallery-item:hover {
    z-index: 10;
}

.gallery-item:hover img {
    transform: scale(1.6);
}

.gallery-item p {
    text-align: center;
    font-size: 16px;
    color: var(--primary);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* ====== CONTACT ====== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info,
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-info h2,
.contact-form-wrapper h2 {
    text-align: left;
    font-size: 28px;
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 16px;
}

.info-item p {
    color: var(--gray);
    margin: 0;
}

.map-section iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ====== CTA SECTION ====== */
.cta-section {
    max-width: 800px;
    margin: 80px auto;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-section p {
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 30px;
}

/* ====== FOOTER ====== */
footer {
    background: #0F2A44;
    color: white;
    margin-top: 80px;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 50px 20px 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-section a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

    #menu-btn {
        display: block;
    }

    .mobile-menu {
        display: flex;
    }

    .hero h1,
    .page-header h1 {
        font-size: 32px;
    }

    .hero p,
    .page-header p {
        font-size: 16px;
    }

    section h2 {
        font-size: 28px;
    }

    .contact-container,
    .about-content {
        grid-template-columns: 1fr;
    }

    .intro-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 60px 20px;
    }

    .btn-primary,
    .btn-submit {
        padding: 12px 24px;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 25px;
    }
}
