body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #faf8f8;
    color: #333;
}

/* Evitar scroll horizontal y desbordes */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.navbar {
    background-color: #ab0909;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    color: #f8f7f7;
    font-size: 1.8rem;
    font-weight: bold;
}

.navbar-nav .nav-link {
    color: #f9f9f9;
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link:hover {
    color: #d20707;
}

.hero {
    background: url('../img/1.jpg') no-repeat center center/cover;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f6f6f4;
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    max-width: 100%;
    word-wrap: break-word;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.section {
    padding: 60px 0;
}

.section h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    text-align: center;
    margin-bottom: 40px;
    max-width: 100%;
    word-wrap: break-word;
}

/* En pantallas grandes (escritorio) */
.about-content {
    display: flex;
    flex-direction: row; /* fila */
    align-items: center;
    gap: 30px; /* espacio entre imagen y texto */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.about-content img {
    flex: 1 1 50%; /* ocupa el 50% aprox */
    max-width: 50%;
    height: auto;
    border-radius: 10px;
}

.about-content > div {
    flex: 1 1 50%; /* ocupa el 50% aprox */
    max-width: 50%;
}

/* Ajustar párrafo dentro del div para que no se comprima demasiado */
.about-content p {
    margin: 0;
    line-height: 1.5;
    font-size: 1.1rem;
}
.btn-call {
    background-color: #0622ae;
    color: #fdfdfd;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
}

.btn-call:hover {
    background-color: #ae0606;
}

.contact-info i {
    font-size: 1.5rem;
    color: #f4f3f3;
    margin-right: 10px;
}

.social-icons a {
    color:#030302;
    font-size: 1.5rem;
    margin-right: 15px;
    text-decoration: none;
}

.social-icons a:hover {
    color: #eeeff0;
}

footer {
    background-color: #f8fafb;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer a {
    color: #f3f2ee;
    text-decoration: none;
}

.icon-box i {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #111111;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.icon-box:hover i {
    transform: scale(1.1);
}

.icon-box h3 {
    font-size: 1.5rem;
    margin-top: 10px;
}

.icon-box p {
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 10px;
}

/* Botones de traducción y llamar */
.translate-button {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.red-button {
    background-color: #ff4d4d;
}
.red-button:hover {
    background-color: #e03c3c;
}

.green-button {
    background-color: #28a745;
}
.green-button:hover {
    background-color: #218838;
}

.blue-button {
    background-color: #007bff;
}
.blue-button:hover {
    background-color: #0056b3;
}

/* Botón WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 5vh;
    width: 60px;
    height: 60px;
    background-color: #ce0f0f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-button i {
    font-size: 2rem;
}

/* Gallery Lightbox */
.gallery-img {
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}

.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    margin-bottom: 20px;
}

.lightbox-overlay .close-btn {
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: #ff4d4d;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.lightbox-overlay .close-btn:hover {
    background: #e03c3c;
}

.navbar-toggler-icon {
    color: #fffdfd;
}

/* Botón hamburguesa personalizado */
.custom-toggler {
    background-color: #00008B;
    border-color: #00008B;
}
.custom-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 139, 0.5);
}
.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Contenedor principal para que todo quede centrado y no se desborde */
.container, .content-wrapper, .about-content > div {
    max-width: 1200px; /* Máximo ancho para contenido principal */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Títulos responsivos y que no se desborden */
h1, h2, h3, h4 {
    max-width: 100%;
    word-wrap: break-word; /* Que rompa línea si es necesario */
    font-size: clamp(1.5rem, 4vw, 2.5rem); /* Tamaño adaptativo */
}

/* Inputs, selects, textareas y botones responsivos */
input, select, textarea, button {
    max-width: 100%;
    box-sizing: border-box; /* Para que padding no agrande el ancho */
    font-size: 1rem;
}

/* Iconos escalables para que no se salgan */
.icon-box i {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

/* Formulario o cualquier sección que tenga inputs */
.form-section, form {
    max-width: 600px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
    box-sizing: border-box;
}

/* En caso de que tengas etiquetas label o texto cerca de inputs */
label {
    display: block;
    max-width: 100%;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

/* Para que los iconos dentro de botones o formularios no generen desborde */
button i, .btn-call i {
    max-width: 100%;
    font-size: 1.5rem;
}

/* Para pantallas muy grandes (más de 1440px), mantener centrado el contenido */
@media screen and (min-width: 1440px) {
    .container, .content-wrapper, .about-content > div {
        max-width: 1300px;
    }
}

/* Para inputs en móvil, que se ajusten al ancho completo */
@media screen and (max-width: 768px) {
    /* Hero */
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    .hero p {
        font-size: 1rem;
    }

    /* Navbar Brand */
    .navbar-brand {
        font-size: 1.5rem;
    }

    /* About Us Section */
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .about-content img {
        max-width: 90%;
        width: 100%;
        height: auto;
        order: -1;
        margin-bottom: 0;
        float: none;
    }
    .about-content > div {
        width: 90%;
    }
    .about-content p {
        font-size: 1rem;
        text-align: justify;
        padding: 0 5%;
    }
    .btn-call {
        width: 80%;
        margin-top: 15px;
    }

    /* Ajustes botón WhatsApp */
    .whatsapp-button {
        bottom: 15px;
        right: 18px;
        width: 55px;
        height: 55px;
    }
    .whatsapp-button i {
        font-size: 1.8rem;
    }

    /* Secciones padding */
    .section {
        padding: 40px 15px;
    }
    .section h2 {
        font-size: 2rem;
        margin-bottom: 25px;
    }

    /* Iconos tamaño */
    .icon-box i {
        font-size: 3rem;
    }

    /* Galería: para ajustar si usas grid */
    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }

    /* Inputs y botones que ocupen 100% */
    input, select, textarea, button {
        font-size: 1rem;
        width: 100%;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    /* Tablets */
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .about-content {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
    }
    .about-content img {
        max-width: 50%;
        order: 0;
        float: none;
    }
    .about-content > div {
        width: auto;
    }
    .about-content p {
        font-size: 1rem;
        text-align: left;
        padding: 0;
    }
    .btn-call {
        width: auto;
        margin-top: 0;
    }
    .icon-box i {
        font-size: 3.5rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .navbar-brand {
        font-size: 1.6rem;
    }
}
