/* === ESTILOS GENERALES === */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #333;
    color: white;
}

header {
    text-align: center;
    padding: 20px;
    background-color: #222;
    position: relative;
}

.logo img {
    width: 50px;
    height: 50px;
}

.logo-circular {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid white;
    display: block;
    margin: 0 auto 10px;
}

.logo {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

h1 {
    font-size: 32px;
    margin: 10px 0;
    color: black;
    text-shadow:
        -1px -1px 0 white,
        1px -1px 0 white,
        -1px 1px 0 white,
        1px 1px 0 white;
}

/* Menú fijo en pantallas grandes */
nav {
    background-color: #555151f1;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Asegura que el menú ocupe todo el ancho de la pantalla */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    /* Centra los elementos de la lista */
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

nav ul li a.active {
    border-bottom: 2px solid red;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

main section {
    scroll-margin-top: 120px;
    padding: 50px;
    margin-top: 60px;
    /* Ajusta según el tamaño de tu menú */
}

main section:last-of-type {
    border-bottom: none;
}

/* === SECCIÓN INICIO === */
#inicio {
    position: relative;
    text-align: center;
    overflow: hidden;
    padding: 0;
    /* Quita espacio interno */
    margin: 0;
    /* Quita espacio externo */
}

#inicio img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    margin-top: 0rem
}

#inicio img,
#sobre-nosotros img {
    max-width: 100%;
    /* Asegura que las imágenes no se sobrepasen del ancho disponible */
    height: auto;
    /* Mantiene las proporciones de las imágenes */
    position: relative;
    top: -40px;
}

#sobre-nosotros {
    padding: 57px 22px;
    text-align: center;
}

.Frase-nosotros h1 {
    margin-bottom: 30px;
    font-size: 2em;
    position: relative;
    top: -4rem;
}

.contenido-nosotros {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    /* Espacio entre imagen y texto */
    flex-wrap: wrap;
    /* Si la pantalla es pequeña, se acomoda en dos líneas */
}

.contenido-nosotros img {
    width: 40%;
    max-width: 400px;
    /* Máximo tamaño para no deformar en pantallas grandes */
    height: auto;
    border-radius: 10px;
    /* Opcional: esquinas redondeadas */
}

.contenido-nosotros ul {
    width: 50%;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    /* Alinea el texto del párrafo a la izquierda */
    font-size: 1.7rem;
}

.contenido-nosotros li {
    margin: 0;
    position: relative;
    top: -3rem;
}

/* Asegúrate de que las imágenes en otras secciones también se ajusten correctamente */

main {
    padding: 0;
    margin: 0;
}

main img {
    width: 50%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    /* Elimina espacios de imagenes en linea */
    margin: 0 auto;
    /* Centra la imagen */
}


.frases-superpuestas {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 1rem;
    text-align: center;
    width: 90%;
}

.frases-superpuestas h1 {
    color: black;
    font-size: 3.5rem;
    text-shadow:
        -1px -1px 0 white,
        1px -1px 0 white,
        -1px 1px 0 white,
        1px 1px 0 white;
    margin: 0.5rem 0;
}


.frases-superpuestas ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.frases-superpuestas li {
    color: black;
    font-size: 1.5rem;
    text-shadow:
        -1px -1px 0 rgb(255, 255, 255),
        1px -1px 0 white,
        -1px 1px 0 white,
        1px 1px 0 white;
    margin-top: 0.5rem;
}

/* Adaptaciones para pantallas pequeñas */
@media (max-width: 768px) {
    #inicio .frases-superpuestas {
        top: 10%;
    }
    #inicio h1 {
        font-size: 1.5rem;
    }
    #inicio ul li {
        font-size: 1rem;
    }
}

/* === HAMBURGUESA RESPONSIVE === */
.hamburger {
    display: none;
    font-size: 28px;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        /* Mostrar la hamburguesa en pantallas pequeñas */
    }

    nav {
        display: none;
        /* Ocultar el menú de navegación por defecto en móviles */
        background-color: #555151f1;
        position: absolute;
        top: 70px;
        /* Ajuste según la altura del menú */
        left: 0;
        width: 100%;
        padding: 10px 0;
        z-index: 999;
    }

    nav.active {
        display: block;
        /* Mostrar el menú cuando la hamburguesa está activa */
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        color: white;
        font-size: 18px;
        padding: 10px 0;
    }

    .frases-superpuestas h1 {
        font-size: 1.8rem;
    }

    .frases-superpuestas li {
        font-size: 1rem;
    }
}

/*servicios*/

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #111;
    /* Fondo oscuro */
    color: white;
}

.services-section {
    padding: 50px 20px;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    margin-top: -111px;
}

.services-left img {
    width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.services-right {
    flex: 1;
    max-width: 700px;
}

.service-card {
    background-color: #222;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
    text-align: center;
}

.service-card h2,
.service-card h3 {
    margin-top: 0;
}

.divider {
    width: 50px;
    height: 2px;
    background-color: #888;
    margin: 10px auto 20px;
}

.divider-small {
    width: 30px;
    height: 1px;
    background-color: #888;
    margin: 10px auto;
}

.service-button {
    background-color: #6a82fb;
    /* Color azul como el ejemplo */
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.service-icon {
    width: 50px;
    margin-bottom: 10px;
}

/*canal de contacto*/
.btn-youtube {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FF0000;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-youtube:hover {
    background-color: #cc0000;
}

.btn-social {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px 5px 0 0;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s;
}

.youtube {
    background-color: #FF0000;
}

.youtube:hover {
    background-color: #cc0000;
}

.twitter {
    background-color: #1DA1F2;
}

.twitter:hover {
    background-color: #0d8ddb;
}

.facebook {
    background-color: #3b5998;
}

.facebook:hover {
    background-color: #2d4373;
}

.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.instagram:hover {
    opacity: 0.8;
}

/*footer*/

.footer {
    background-color: #111;
    color: #ccc;
    text-align: center;
    padding: 40px 20px;
    font-family: 'Arial', sans-serif;
    margin-top: 192px;
}

.footer-content h2 {
    color: #fff;
    margin-bottom: 10px;
}

.footer-content p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-email {
    display: inline-block;
    margin: 10px 0;
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

.footer-email:hover {
    text-decoration: underline;
}

.footer-socials a {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    color: #00acee;
    /* Cambia de color al pasar el mouse (ejemplo: azul) */
}

.copyright {
    margin-top: 20px;
    font-size: 12px;
    color: #666;
}

/*servicio*/

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
    position: relative;
    top: -10rem;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitulo {
    font-size: 20px;
    color: #cccccc;
    margin-bottom: 50px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.card {
    background-color: transparent;
    text-align: left;
}

.card h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95em;
    color: #cccccc;
    line-height: 1.6;
}

/**Testimonio*/
h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.intro {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 50px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    text-align: left;
}

.testimonial {
    background-color: transparent;
}

.testimonial p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #cccccc;
}

.testimonial strong {
    display: block;
    margin-top: 10px;
    font-size: 1em;
    font-weight: 600;
    color: #ffffff;
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/*Contacto-correo*/

header {
    text-align: center;
    padding: 20px;
    background-color: #222;
    color: white;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background-color: #0073e6;
    color: white;
    text-align: center;
}

.info-item h3 {
    margin: 0;
}

.map-form {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.map {
    flex: 1;
}

.form {
    flex: 1;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form input, form textarea {
    margin: 10px 0;
    padding: 10px;
    font-size: 16px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background: #0073e6;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
}

form button:hover {
    background: #005bb5;
}

label, input, textarea {
    display: block;
    margin-bottom: 10px;
    width: 100%;
    max-width: 400px;
}

#spinner, #respuesta, #error-message {
    margin-top: 10px;
}

.formc {
    margin: 0 auto;
    display: block;
    max-width: 500px;
    margin-top: -12rem;
    position: relative;
    top: 6rem;
}

/* Nueva sección de info de contacto con íconos */
.info-contacto {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0;
    text-align: center;
    flex-wrap: wrap;
}

.info-item {
    flex: 1;
    min-width: 150px;
}

.info-item i {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.info-item span {
    display: block;
    font-size: 16px;
    color: #444;
}

.data {
    margin: 0 auto;
    display: block;
    max-width: 500px;
    margin-right: -3rem;

}

.contactoh2 {
    margin-top: 3rem;
    margin-left: 7rem;
    position: relative;
    top: 0rem;
    font-size: 28px;
}
/* Estilos para pantallas pequeñas */
@media (max-width: 600px) {
    form {
        padding: 15px;
    }

    input, textarea {
        padding: 10px;
        font-size: 14px;
    }

    button {
        padding: 12px;
        font-size: 14px;
    }

    .info-contacto {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 450px) {
    form {
        padding: 15px;
    }

    input, textarea {
        padding: 10px;
        font-size: 14px;
    }

    button {
        padding: 12px;
        font-size: 14px;
    }

    .info-contacto {
        flex-direction: column;
        align-items: center;
    }
}

/* Estilos para pantallas medianas */
@media (max-width: 1024px) and (min-width: 601px) {
    form {
        padding: 20px;
    }

    input, textarea {
        padding: 12px;
        font-size: 16px;
    }

    button {
        padding: 14px;
        font-size: 16px;
    }
}
