/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
}

/* Estilos del header */
header {
    background-color: #eed9c4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #0056b3;
}

/* Estilos del main y secciones */
main {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background-image: url('img/fondo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    padding: 0;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
}

.hero, .about, .services, .advisory, .team, .contact {
    background-color: rgba(29.02, 21.57, 15.69, 0.8);
    padding: 50px 20px;
    margin: 0;
    color: #ffffff;
    border-radius: 0;
    text-align: center;
    width: 100%;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn-hero, .btn-more {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #4e403b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-hero:hover, .btn-more:hover {
    background-color: #003d82;
}

.services ul, .team .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.services li, .team .team-member {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    text-align: center;
}

.team .team-member img {
    width: 100%;
    max-width: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.team .team-member h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.team .team-member p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact p {
    font-size: 1.2rem;
    line-height: 1.5;
}

.contact a {
    margin-top: 1rem;
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #4e403b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.contact a:hover {
    background-color: #003d82;
}

/* Estilos del footer */
footer {
    background-color: #222222;
    color: #ffffff;
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #0056b3;
}

.footer-section ul {
    list-style: none;
    text-align: left;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-section ul li i {
    margin-right: 10px;
    color: #0056b3;
    font-size: 1rem;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #0056b3;
}

.social-media {
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.social-icon {
    display: inline-block;
    margin: 0 0.5rem 0 0;
    color: #ffffff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icon:first-child {
    margin-left: 0;
}

.legal {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
}

.legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal a:hover {
    color: #ffffff;
}

/* Media queries */
@media screen and (max-width: 768px) {
    main {
        background-attachment: scroll;
    }
    
    header .container {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 1rem;
        background-color: #eed9c4;
        padding: 1rem;
    }

    nav ul.show {
        display: flex;
    }

    .menu-icon {
        display: block;
        cursor: pointer;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer-section h3::after {
        left: 0;
        transform: none;
    }

    .social-media {
        justify-content: flex-start;
    }

    .team .team-grid {
        grid-template-columns: 1fr;
    }

    .btn-hero, .btn-more {
        padding: 0.8rem 1.5rem;
    }
}

/* Sección de contacto */
.contact-info {
    text-align: center;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(29, 21, 16, 0.9);
    border-radius: 8px;
    color: #ffffff;
}

.contact-info h2 {
    font-size: 1.8rem; /* Reducido ligeramente */
    color: #eed9c4;
    margin-bottom: 1rem;
    border-bottom: 2px solid #eed9c4;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.info-container {
    display: flex;
    justify-content: space-between; /* Distribuir horizontalmente */
    flex-wrap: wrap; /* Permitir ajuste si el espacio es limitado */
    gap: 0rem;
    text-align: left;
}

.info-item {
    flex: 1; /* Permitir flexibilidad en el ancho */
    min-width: 200px; /* Asegurar que sean legibles */
    margin: 0.5rem;
    padding: 1rem;
    background-color: rgba(78, 64, 59, 0.8);
    border-radius: 8px;
}

.info-item h3 {
    font-size: 1rem; /* Tamaño más pequeño */
    color: #eed9c4;
    margin-bottom: 0.5rem;
}

.info-item p {
    font-size: 0.8rem; /* Fuente más pequeña */
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.info-item i {
    margin-right: 0.5rem;
    color: #eed9c4;
}

/* Estilos para el formulario */
.contact-form {
    max-width: 800px;
    margin: 2rem auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 5px;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #eed9c4;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #4e403b;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #003d82;
}

/* Estilos para las alertas */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    text-align: left;
}

.alert-success {
    background-color: rgba(78, 64, 59, 0.8);
    color: #ffffff;
    border: 1px solid #eed9c4;
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.8);
    color: #ffffff;
    border: 1px solid #dc3545;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Previene el zoom en iOS */
    }
    
    .btn-submit {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }
}

/* Estilos para el mapa */
.map-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

#map {
    width: 100%;
    height: 400px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.address-info {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-top: 1rem;
    color: #ffffff;
}

.address-info p {
    margin: 0.5rem 0;
}

.address-info strong {
    color: #eed9c4;
}

@media screen and (max-width: 768px) {
    .map-container {
        margin: 1rem;
        padding: 0.5rem;
    }
    
    .address-info {
        padding: 0.8rem;
    }
}

/* Estilos para la sección de servicios */
.service-area {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.service-area h2 {
    color: #eed9c4;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-area h2 i {
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.area-description {
    margin-bottom: 2rem;
    color: #ffffff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    padding: 1.5rem;
    background-color: rgba(78, 64, 59, 0.8);
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #eed9c4;
    margin-bottom: 1rem;
}

.service-card p {
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media screen and (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .service-area {
        padding: 1rem;
        margin: 1rem;
    }
}

/* Estilos de la sección advisory */
.advisory {
    background-color: rgba(29.02, 21.57, 15.69, 0.8);
    padding: 30px 20px;
    margin: 0;
    color: #ffffff;
    border-radius: 0;
    text-align: center;
    width: 100%;
    position: relative;
}

.advisory h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.advisory p {
    font-size: 1.2rem;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
}

/* Estilos adicionales para la sección de equipo */
.team-member .titles {
    color: #eed9c4;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.team-member .description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.team-member .areas {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    border-top: 1px solid rgba(238, 217, 196, 0.2);
    padding-top: 0.5rem;
    margin-top: 1rem;
}

.team-member .areas strong {
    color: #eed9c4;
}

/* Estilos para asesoria */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85em;
}