* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* General */
h1, h2, h3, h4 {
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

/* Header */
header {
    width: 100%;
    height: 600px;
    background: linear-gradient(to right, rgba(128, 0, 128, 0.5), rgba(255, 0, 255, 0.5)), url(../assets/images/portada\ foto.jpg);
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    padding: 20px 0;
}

header .textos-header {
    display: flex;
    height: 430px;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
}

.textos-header h1 {
    font-size: 50px;
    color: #fff;
    margin-bottom: 15px;
}

.textos-header h2 {
    font-size: 30px;
    font-weight: 300;
    color: #fff;
}

.wave {
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* Navegación */
ul {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    padding: 10px 0;
    background-color: #800080;
}

ul li {
    list-style: none;
    margin: 0 20px;
}

ul a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

ul a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Sección Sobre Nosotros */
.sobre-nosotros {
    padding: 60px 20px;
    background-color: #fff;
}

.contenedor-sobre-nosotros {
    display: flex;
    align-items: center; /* Centrar verticalmente */
    justify-content: space-between; /* Separar imagen y textos */
    gap: 20px; /* Espaciado entre imagen y texto */
    margin: 0 auto; /* Centrar el contenedor horizontalmente */
    max-width: 1200px; /* Limitar el ancho máximo */
    padding: 0 20px; /* Espaciado interno horizontal */
}

.imagen-about-us {
    width: 150px; /* Tamaño de la imagen */
    height: 150px; /* Hacerla cuadrada */
    border-radius: 50%; /* Bordes redondeados para hacerla circular */
    object-fit: cover; /* Ajustar la imagen dentro del contenedor */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

.contenido-textos {
    flex: 1; /* Toma el espacio restante para los textos */
    padding-left: 20px; /* Espaciado adicional entre la imagen y los textos */
}

.contenido-textos h3 {
    margin-bottom: 15px;
}

.contenido-textos h3 span {
    background: #4d0686;
    color: #fff;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    width: 30px;
    height: 30px;
    padding: 2px;
    box-shadow: 0 0 6px rgba(0, 0, 0, .5);
    margin-right: 5px;
}

.contenido-textos p {
    padding-left: 15px;
    font-weight: 300;
    text-align: justify;
}

/* Sección de Clientes */
.clientes {
    padding: 60px 20px;
}

.cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.card {
    background: #f8d7e3;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
    flex: 1;
    max-width: 400px;
}

.card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 50%;
}

.card .contenido-texto-card h4 {
    margin-bottom: 10px;
}

.card .contenido-texto-card p {
    font-weight: 300;
}

.contenido-texto-card {
    background-color: #f8d7e3; /* Color de fondo más suave */
    color: #333; /* Color del texto para buen contraste */
    padding: 15px; /* Espaciado interno */
    border-radius: 8px; /* Bordes redondeados */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}


/* Sección de Servicios */

.about-services {
    background: linear-gradient(to right, #f9f9f9, #ffffff);
    padding: 60px 20px;
    text-align: center;
}

.about-services .contenedor {
    max-width: 1200px;
    margin: 0 auto;
}

.about-services .titulo {
    font-size: 2.5rem;
    color: #642a73;
    margin-bottom: 40px;
    position: relative;
}

.about-services .titulo::after {
    content: "";
    width: 100px;
    height: 4px;
    background: #df0c8a;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.servicio-cont {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.servicio-ind {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 30%;
    flex: 1 1 calc(30% - 20px);
    text-align: center;
}

.servicio-ind:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.servicio-icono {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.servicio-icono img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.servicio-ind h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.servicio-ind p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    padding: 0 10px;
}


/* Preguntas Frecuentes */
.questions {
    text-align: center;
    padding: 60px 20px;
}

.questions__container {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.questions__padding {
    padding: 20px;
    border: 1px solid #5454D4;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.questions__padding:hover {
    transform: scale(1.02);
}

.questions__title {
    font-size: 20px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.questions__arrow {
    width: 25px;
    height: 25px;
}

.questions__show {
    text-align: left;
    padding-top: 15px;
    display: none;
}

.questions__offer {
    margin-top: 40px;
}

.questions__copy {
    margin: 20px auto;
    text-align: center;
}

/* Estilo del footer */
/* General del footer */
footer {
    background: linear-gradient(to right, #4d0686, #800080); /* Fondo gradiente */
    color: #fff;
    padding: 40px 20px; /* Espaciado general del footer */
    text-align: center;
}

/* Contenedor principal */
.contenedor-footer {
    display: flex;
    justify-content: space-around; /* Espaciado entre los bloques */
    flex-wrap: wrap; /* Asegura que sea responsivo */
    margin-bottom: 20px;
}

/* Bloques de información */
.content-foo {
    margin: 20px; /* Separación entre bloques */
    text-align: left; /* Alineación del texto dentro del bloque */
    flex: 1 1 200px; /* Bloques flexibles con ancho mínimo */
}

/* Títulos de los bloques */
.content-foo h4 {
    font-size: 1.2rem;
    margin-bottom: 10px; /* Separación del título con el texto */
    text-transform: uppercase;
    font-weight: bold;
}

/* Texto dentro de los bloques */
.content-foo p {
    margin: 0; /* Elimina márgenes innecesarios */
    padding: 5px 0; /* Añade separación interna */
    font-size: 1rem;
    line-height: 1.5; /* Espaciado entre líneas */
}

/* Redes sociales */
.social {
    margin: 20px 0;
}

.social a {
    margin: 0 10px;
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social a:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.social img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1); /* Asegura que los iconos sean blancos */
}

/* Derechos reservados */
.footer-bottom {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}


/* Ajustes Generales */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: black;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.titulo {
    font-size: 2.5rem; /* Tamaño grande para destacar */
    text-align: center;
    color: #642a73; /* Color principal */
    text-transform: uppercase; /* Letras en mayúscula */
    letter-spacing: 2px; /* Espaciado entre letras */
    margin-bottom: 40px; /* Espacio debajo del título */
    position: relative;
    font-weight: bold;
}

.titulo::after {
    content: "";
    width: 80px; /* Línea decorativa debajo del título */
    height: 4px;
    background: #df0c8a; /* Color de la línea */
    position: absolute;
    bottom: -10px; /* Separación de la línea respecto al texto */
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px; /* Bordes redondeados */
}

.titulo:hover {
    color: #df0c8a; /* Cambio de color en hover */
    transition: color 0.3s ease;
}

.questions__show {
    display: none; /* Ocultar respuesta por defecto */
    padding-top: 10px;
    font-size: 16px;
    color: #555;
    text-align: justify;
}

.questions__arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.questions__arrow--rotate {
    transform: rotate(180deg); /* Rotar flecha al expandir */
}
.slide-contenedor {
    position: relative;
    max-width: 70%; /* Reduce el ancho del slider al 90% del contenedor */
    margin: 20px auto; /* Centra el slider y añade un margen arriba y abajo */
    overflow: hidden;
    border-radius: 10px; /* Bordes redondeados para un diseño más elegante */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra para destacar el slider */
}

.miSlider {
    display: none; /* Ocultamos inicialmente todas las imágenes */
    width: 100%;
}

.miSlider img {
    width: 100%;
    vertical-align: middle;
    border-radius: 10px; /* Asegura que las imágenes también tengan bordes redondeados */
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Controles de navegación */
.direcciones a {
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    cursor: pointer;
}

.direcciones a.atras {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.direcciones a.adelante {
    right: 0;
    border-radius: 0 3px 3px 0;
}

.direcciones a:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Indicadores */
.barras {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.barra {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.6s ease;
}

.barra.active {
    background-color: #fff;
}

/* Formulario */
form {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Estructura de los campos */
fieldset {
    border: none;
    margin: 0;
    padding: 0;
    grid-column: 1 / -1; /* Ocupa todo el ancho */
}

fieldset legend {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2575fc;
    font-weight: bold;
}

form label {
    font-size: 1rem;
    display: block;
    margin-bottom: 5px;
    color: #555;
}

/* Campos en horizontal */
form .horizontal-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

form input[type="text"],
form input[type="tel"],
form input[type="email"],
form input[type="number"],
form select,
form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
form input[type="tel"]:focus,
form input[type="email"]:focus,
form input[type="number"]:focus,
form select:focus,
form textarea:focus {
    border-color: #2575fc;
    outline: none;
    box-shadow: 0 0 5px rgba(37, 117, 252, 0.5);
}

/* Botones */
form button[type="submit"],
form button[type="reset"] {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    color: white;
    background: #2575fc;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button[type="submit"]:hover,
form button[type="reset"]:hover {
    background: #1a5bbf;
}
