/* Reset & base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f1f5f9;
    color: #1e293b;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Sticky top bar */
.topbar {
    background: #1e293b;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar a {
    color: white;
    margin-left: 1.5rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}


.toggle-dark-mode {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #1e293b;
    /* azul oscuro */
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.toggle-dark-mode:hover {
    transform: scale(1.2);
    color: #6366f1;
    /* azul bonito al pasar el mouse */
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 60px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
   
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}
.hero-logo {
    max-width: 170px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* En modo oscuro, cambia el color */
body.dark .toggle-dark-mode {
    color: #facc15;
}
.navbar a:hover {
    color: #38bdf8;
}

/* Main content */
.main-content {
    padding: 2rem;
}

/* Section titles */
h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #0ea5e9;
}


/* Special style for Our Services title */
#services>h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
}
.titulo{
    font-size: 3rem;
        text-align: center;
        margin-bottom: 2rem;   
}
.toggle-dark-mode {
    background: transparent;
    color: #1e293b;
    border: none;
    font-size: 1.2rem;
    margin-left: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.toggle-dark-mode:hover {
    transform: scale(1.2);
    color: #6366f1;
}

body.dark .toggle-dark-mode {
    color: #facc15;
}
/* Hero */
.hero-section {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 1rem;
    animation: fadeIn 1s ease;
}

.hero-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn.primary {
    padding: 0.8rem 1.5rem;
    background: white;
    color: #0ea5e9;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn.primary:hover {
    background: #f1f5f9;
    transform: scale(1.05);
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

/* Service cards with cool hover */
.service-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
}

.service-card:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.4);
}

.appear {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card-content {
    padding: 1rem;
    text-align: center;
}
.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
}
.about {
    padding: 2rem;
    background: linear-gradient(to right, #f0f4f8, #e8f0fe);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem 1rem;
    transition: all 0.3s ease-in-out;
}

.about h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}
#h1t{

    color: #0f172a;
}
.card-content h3 {
    font-size: 1.1rem;
    color: #0f172a;
}

/* Fix images container so images fit well */
.img-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.service-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.icon-card:hover .service-icon {
    transform: scale(1.1);
    color: #6366f1;
    /* Cambia el color en hover si quieres */
}
.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

/* Testimonial section */
.testimonial-section {
    background: #e0f2fe;
    padding: 3rem 2rem;
    border-radius: 1rem;
    margin-top: 4rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    font-size: 1.25rem;
    color: #0369a1;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-section::before {
    content: "“";
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 20px;
    color: #0ea5e9;
    opacity: 0.3;
}

.testimonial-author {
    margin-top: 1.5rem;
    font-weight: 700;
    font-style: normal;
    color: #0c4a6e;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    background: #f8fafc;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.contact-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.contact-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    font-size: 1.8rem;
    color: #2563eb;
    min-width: 30px;
}

.contact-box h4 {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.contact-box a {
    color: #475569;
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-box a:hover {
    text-decoration: underline;
}
/* Contact Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-family: inherit;
}

.contact-info {
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-info p i {
    color: #0ea5e9;
    margin-right: 10px;
}

/* Map container */
#map-container {
    width: 100%;
    height: 400px;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#map-container.appear {
    opacity: 1;
    transform: translateY(0);
}


/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: background 0.3s ease;
    cursor: pointer;
}

.whatsapp-float:hover {
    background: #1ebe57;
}

/* FadeIn animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode styles (optional) */
body.dark {
    background: #0f172a;
    color: #e2e8f0;
}

body.dark .topbar {
    background: #1e293b;
}

body.dark .navbar a {
    color: #cbd5e1;
}

body.dark .navbar a:hover {
    color: #38bdf8;
}

body.dark .service-card,
body.dark .contact-form,
body.dark .testimonial-section {
    background: #1e293b;
    color: #e2e8f0;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    max-width: 500px;
    width: 90%;
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease;
    font-family: 'Poppins', sans-serif;
}

.modal-content h3 {
    margin-top: 0;
    font-size: 1.8rem;
    color: #1e293b;
}

.modal-content p {
    margin: 1rem 0;
    color: #475569;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* Responsive adjustments */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .about p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        text-align: center;
    }

    .sidebar ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding: 1rem;
    }

    .main-content {
        padding: 1rem;
    }

    .grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .about p {
        font-size: 0.95rem;
    }

    .contact form input,
    .contact form textarea {
        font-size: 1rem;
    }

    .contact p {
        font-size: 0.95rem;
    }

    footer {
        text-align: center;
        padding: 1rem;
    }
        .contact-container {
            flex-direction: column;
            align-items: center;
        }
    
        .contact-form,
        .contact-info {
            width: 100%;
            max-width: 500px;
        }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .card p {
        font-size: 0.9rem;
    }

    .contact form input,
    .contact form textarea {
        font-size: 0.9rem;
    }

    footer p {
        font-size: 0.85rem;
    }
}
