/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0A1F44;
    --secondary-color: #C19A4B;
    --background-color: #FFFFFF;
    --dark-color: #2C2C2C;
    --light-gray: #F8F9FA;
    --border-color: #E9ECEF;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

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

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

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

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

.header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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


.navbar-brand .logo {
    display: block;
    max-width: 130px;
}

.navbar-brand .logo img {
    width: 100%;
    height: auto;
    display: block;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

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

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    transition: var(--transition);
}

.hero {
    height: 100vh;
    background: linear-gradient(rgba(10, 31, 68, 0.7), rgba(10, 31, 68, 0.7)),
                url('/images/hero-bg-placeholder.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 1rem auto;
}

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

.services-carousel {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.services-viewport {
    overflow: hidden;
    width: 100%;
}

.services-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.4s ease;
    will-change: transform;
}

.carousel-btn {
    background-color: white;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

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

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    flex: 0 0 100%;
}

.service-card[data-modal-target] {
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon i {
    font-size: 1.5rem;
    color: white;
}

.benefit-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-list a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-list a:hover {
    color: var(--secondary-color);
}

.contact-label {
    font-size: 0.85rem;
    font-weight: 400;
}

.map-preview {
    display: block;
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.map-preview img {
    width: 100%;
    display: block;
}

.map-preview:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.form-disclaimer {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: rgba(44, 44, 44, 0.75);
}

.form-status {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-status.is-success {
    background-color: rgba(37, 211, 102, 0.12);
    color: #0a5a2e;
    border: 1px solid rgba(37, 211, 102, 0.35);
}

.form-status.is-error {
    background-color: rgba(220, 53, 69, 0.12);
    color: #76131d;
    border: 1px solid rgba(220, 53, 69, 0.35);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--secondary-color);
}

body.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
}

.modal.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: min(90%, 960px);
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(10, 31, 68, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem;
}

.modal.is-active .modal-dialog {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(10, 31, 68, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.modal-close:hover {
    background: var(--secondary-color);
    color: #fff;
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

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

.modal-header h3 {
    color: var(--primary-color);
}

.modal-carousel {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.modal-carousel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.modal-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.modal-slide {
    min-width: 100%;
    opacity: 0.6;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-slide.is-active {
    opacity: 1;
}

.modal-slide img {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.modal-carousel-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(10, 31, 68, 0.08);
    color: var(--primary-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.modal-carousel-btn:hover {
    background: var(--secondary-color);
    color: #fff;
}

.modal-subtitle {
    margin-top: 0.75rem;
    font-size: 1rem;
    color: rgba(44, 44, 44, 0.85);
}

.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    width: 100%;
    max-width: 140px;
    margin: 0 auto;
}

.footer-brand img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
    object-fit: contain;
}

.footer h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--secondary-color);
}

.footer-phone-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-phone-list a {
    display: block;
    color: white;
}

.footer-phone-list a:hover {
    color: var(--secondary-color);
}

.footer-phone-list .contact-label {
    color: rgba(255, 255, 255, 0.75);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: white;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1500;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.4);
    color: white;
}

.whatsapp-float i {
    font-size: 1.8rem;
}

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        transform: translateY(-100vh);
        transition: var(--transition);
    }

    .navbar-menu.active {
        transform: translateY(0);
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .navbar-toggle {
        display: flex;
    }

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

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

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .benefit-item {
        flex-direction: column;
        text-align: center;
    }

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

    .services-carousel {
        gap: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .navbar-brand .logo {
        max-width: 100px;
    }

    .footer-brand {
        max-width: 120px;
    }

    .modal-dialog {
        padding: 2rem;
        width: 95%;
        max-height: 95vh;
    }

    .modal-carousel {
        flex-direction: column;
    }

    .modal-carousel-btn {
        width: 44px;
        height: 44px;
        order: 2;
    }

    .modal-carousel-viewport {
        width: 100%;
    }

    .modal-slide img {
        max-height: 320px;
    }
}

@media (min-width: 768px) {
    .service-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (min-width: 1200px) {
    .service-card {
        flex: 0 0 calc(33.333% - 1.333rem);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

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

    .service-card {
        padding: 2rem;
    }

    .services-track {
        gap: 1.5rem;
    }

    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }

    .modal-dialog {
        padding: 1.75rem;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }

    .modal-logo {
        width: 130px;
    }

    .modal-slide {
        padding: 0.75rem;
    }

    .modal-slide img {
        max-height: 240px;
    }
}
