body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
}

header {
    background-color: #333;
    color: white;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo img {
    height: 50px;
    margin-left: 20px;
}

header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

/* Inicio */

.hero {
    background-image: url('https://encontrandolavozdetuhijo.com/imagenes/fondo2.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 50px;
    margin: 0;
}

.hero p {
    font-size: 20px;
    margin: 10px 0;
}

.cta-button {
    background-color: #FFA500;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    margin-top: 20px;
}

.services {
    padding: 50px 20px;
    text-align: center;
        
}

.services h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.service-card {
    background-color: #fff;
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: inline-block;
    width: 80%;
    vertical-align: top;
}

.testimonials {
    background-color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.testimonials h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.testimonial {
    background-color: #f8f4f4;
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    max-width: 600px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* redes sociales */

.social-icons {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}
.social-icons li {
    margin: 0 10px;
}
.social-icons a {
    text-decoration: none;
    color: inherit;
}
.social-icons img {
    width: 20px;
    height: 20px;
}

/* nosotros */

.fondonosotros {
    background-image: url('https://encontrandolavozdetuhijo.com/imagenes/nosotros1.jpg');
    background-size: 70%;
    background-position: center; 
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.about h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.team {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.team-member {
    background: #fff;
    border: 1px solid #ddd;
    margin: 10px;
    padding: 20px;
    width: 600px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.team-member2 {
    background: #fff;
    border: 1px solid #ddd;
    margin: 10px;
    padding: 20px;
    width: 500px;
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}  
.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    
}

.team-member h2 {
    color: #333;
    margin-bottom: 5px;
}

.team-member h3 {
    color: #555;
    margin-bottom: 10px;
}

.team-member p {
    color: #666;
}

/* servicios */

.fondoservicios {
    background-image: url('https://encontrandolavozdetuhijo.com/imagenes/servicio.jpg');
    background-size: center;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
}
.services_2 {
    padding: 50px 20px;
    text-align: center;
    background-image: url('https://encontrandolavozdetuhijo.com/background.jpg');
    background-size: cover;
    background-position: center;
}

.services_2 h1 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

.service-card_2 {
    background-color: #fff;
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: inline-block;
    width: 50%;
    vertical-align: top;
    text-align: left;
}

.service-card_2 h2 {
    font-size: 24px;
    color: #333;
}

.service-card_2 p {
    font-size: 16px;
    color: #666;
}

/* testimonio */

.fondotestimonio {
    background-image: url('https://encontrandolavozdetuhijo.com/imagenes/Home.jpg');
    background-size: center;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.mosaico-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}
.mosaico-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}
.mosaico-item:hover {
    transform: scale(1.05);
}
.mosaico-item h3 {
    margin-top: 0;
    color: #333;
}
.mosaico-item p {
    color: #666;
}
.mosaico-item .autor {
    margin-top: 15px;
    font-weight: bold;
    color: #444;
}


/* contacto */

.fondocontacto {
    background-image: url('https://encontrandolavozdetuhijo.com/imagenes/contacto2.jpg');
    background-size: 100%;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
}
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.contact-info {
    flex: 1;
    padding: 20px;
}

.contact-info h1 {
    margin-bottom: 20px;
    color: #333;
}

.contact-info p {
    margin-bottom: 20px;
    color: #666;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info ul li {
    margin-bottom: 10px;
    color: #333;
}

.contact-form {
    flex: 1;
    padding: 20px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

label {
    margin-bottom: 5px;
    color: #333;
}

input, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    border-color: #007BFF;
}

button {
    padding: 15px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.error {
    color: red;
    font-size: 12px;
    display: none;
    position: absolute;
    bottom: -20px;
    left: 0;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

