:root {
    --primary-color: #ff0000;
    --primary-hover: #cc0000;
    --secondary-color: #007bff;
    --secondary-hover: #0056b3;
    --background-light: #f4f4f4;
    --text-dark: #333;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--background-light);
    margin: 0;
}

/* General Header Styling */
.header {
    background: #000000; /* Fondo gris oscuro */
    padding: 10px 20px; /* Espaciado interno del header */
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra suave */
    height: 70px; /* Altura fija */
}

/* Contenedor para alinear elementos */
.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Logo */
.logo img {
    width: 150px; /* Tamaño del logo */
    height: auto;
}

/* Menú de navegación */
.nav ul {
    list-style: none;
    display: flex;
    gap: 20px; /* Espaciado entre los enlaces */
    margin: 0;
    padding: 0;
}

/* Estilo base de los enlaces */
.nav ul li a {
    color: #fff; /* Texto blanco */
    text-decoration: none; /* Sin subrayado */
    font-size: 1rem;
    font-weight: 500;
    padding: 5px 10px;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease; /* Suavidad en las transiciones */
    opacity: 1; /* Los enlaces son totalmente visibles por defecto */
    filter: none; /* Sin desenfoque inicialmente */
}

/* Resaltar el enlace activo */
.nav ul li:hover a {
    transform: scale(1.5); /* Zoom más pronunciado */
    color: #ffd700; /* Cambia a dorado */
    z-index: 1; /* Eleva el enlace activo */
}

/* Desenfocar todos los demás enlaces */
.nav:hover ul li:not(:hover) a {
    filter: blur(2px); /* Aplica desenfoque */
    opacity: 0.6; /* Reduce la opacidad */
}






/* Responsive Design (opcional para móviles) */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .nav ul {
        flex-direction: column;
        gap: 10px;
    }
}



.hero-text {
    text-align: center; /* Centra el contenido */
    background: rgba(0, 0, 0, 0.5); /* Fondo oscuro translúcido */
    padding: 20px;
    border-radius: 10px; /* Bordes redondeados */
    display: inline-block; /* Ajusta el ancho al contenido */
    max-width: 90%; /* Para que no se desborde en pantallas pequeñas */
}

.cta {
    display: inline-block;
    padding: 10px 10px; /* Ajusta el tamaño del botón */
    font-size: 1.1rem; /* Tamaño de fuente más pequeño */
    background-color: #ff0000; /* Fondo rojo */
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Transición suave */
    margin-top: 20px; /* Espaciado superior */
}

.cta:hover {
    background-color: #cc0000; /* Oscurece el color al pasar el mouse */
    transform: scale(1.05); /* Efecto de agrandamiento suave */
}

.hero {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    height: 100vh; /* Ocupa toda la altura de la ventana */
    background: url('tu-imagen-de-fondo.jpg') no-repeat center center/cover; /* Imagen de fondo */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Oscurece el fondo */
    z-index: 1; /* Asegura que esté detrás del texto */
}

.hero-text {
    position: relative;
    z-index: 2; /* Coloca el texto encima del overlay */
}


.section {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
    font-size: 1rem;
    text-align: justify;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.property-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s;
}

.property-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

footer {
    text-align: center;
    padding: 20px;
    background: var(--background-light);
}
/* General Styling */
.section {
    padding: 60px 20px;
    background-color: var(--background-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.section-content {
    max-width: 800px;
    margin: 0 auto 40px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    line-height: 1.8; /* Mejoramos la legibilidad */
}

/* Timeline */
/* Timeline Container */
.timeline {
    max-width: 800px;
    margin: 20px auto;
    position: relative;
    padding: 20px 0;
    border-left: 3px solid var(--secondary-color);
}

.timeline h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--text-dark);
}

/* Timeline Items */
.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Timeline Icon */
.timeline-icon {
    position: absolute;
    left: -22px;
    top: 0;
    background-color: var(--secondary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Timeline Year and Content */
.timeline-content {
    padding: 10px 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
    display: block;
}

.timeline-content p {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
}

/* Values Section */
.values-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%; /* Asegura que el contenido ocupe toda la altura */
}

.card h4 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Añade separación entre los elementos */
}

.card ul li {
    font-size: 1.2rem;
    color: #333;
    font-weight: bold;
}


.no-marker {
    list-style: none; /* Elimina cualquier marcador */
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%; /* Asegura que ocupe toda la altura del contenedor */
}



/* Team Section */
.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.team-member img {
    width: 100%;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team-member h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-member p {
    font-size: 1rem;
    color: var(--text-dark);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.stat-item p {
    font-size: 1rem;
    color: var(--text-dark);
}

.stats {
    text-align: center;
    padding: 40px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 800px;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 150px;
    text-align: center;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1rem;
    color: var(--text-dark);
}

.team {
    padding: 60px 20px;
    background-color: var(--background-light);
    text-align: center;
}

.team h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.team-members {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.team-member {
    text-align: center;
    width: 200px;
    position: relative;
}

.team-photo {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 10px;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease;
}

.team-photo:hover {
    transform: rotateY(180deg);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: rotateY(180deg);
    transition: opacity 0.6s ease, visibility 0.6s;
}

.team-photo:hover .team-overlay {
    opacity: 1;
    visibility: visible;
}

.team-overlay ul {
    list-style: none;
    padding: 0;
}

.team-overlay ul li {
    margin: 5px 0;
}

.team-overlay ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.team-overlay ul li a i {
    margin-right: 5px;
}

.team-member h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.team-member p {
    font-size: 1rem;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('inicio.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* Importante para que el overlay se superponga */
}

/* Overlay opaco */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo negro semitransparente */
    z-index: 1; /* Asegura que esté detrás del texto */
}

/* Texto sobre el overlay */
.hero-text {
    position: relative; /* Permite que el texto esté por encima del overlay */
    z-index: 2; /* Asegura que el texto esté sobre el overlay */
    text-align: center;
    color: #fff;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1); /* Fondo adicional detrás del texto (opcional) */
    border-radius: 10px; /* Bordes redondeados para el texto */
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta {
    padding: 15px 30px;
    font-size: 1rem;
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta:hover {
    background-color: #cc0000;
    transform: scale(1.1); /* Efecto de aumento */
}

/* Contenedor del formulario */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Grupos de entrada */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

/* Labels */
.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

/* Campos de entrada y texto */
.form-group input,
.form-group textarea {
    width: 95%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Botón */
.cta {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2em;
    background-color: #ff0000;
    color: white;
    text-align: center;
    border: none;
    border-radius: 5px;
    text-decoration: none; /* Elimina el subrayado del enlace */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta:hover {
    background-color: #cc0000;
}


@media (max-width: 480px) {
    .form-container {
        padding: 10px; /* Reduce el padding en pantallas pequeñas */
    }

    .form-group label {
        font-size: 0.9rem; /* Ajusta el tamaño de las etiquetas */
    }

    .cta {
        font-size: 0.9rem; /* Ajusta el tamaño del botón */
    }
}

/* Contenedor general */
.values-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap; /* Asegura que los contenedores se adapten en pantallas pequeñas */
    margin-top: 20px;
}

/* Tarjetas individuales */
.value-card {
    flex: 1; /* Distribuye los contenedores proporcionalmente */
    min-width: 300px; /* Ancho mínimo para cada tarjeta */
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra suave */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Suaviza las transiciones */
    text-align: center;
}

/* Efecto hover */
.value-card:hover {
    transform: scale(1.05); /* Efecto de agrandamiento */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada */
}

/* Estilo de los títulos */
.value-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #333;
}

/* Estilo de los textos */
.value-card p,
.value-card ul {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Estilo de la lista dentro de "Valores" */
.value-card ul {
    list-style: none;
    padding: 0;
}

.value-card ul li {
    margin-bottom: 10px;
}

.value-card ul li strong {
    color: #333;
}

@media (max-width: 768px) {
    .values-container {
        flex-direction: column; /* Los contenedores se apilan */
        gap: 15px; /* Espaciado reducido entre tarjetas */
    }
}

/* Contenedor de los miembros del equipo */
.team-members {
    display: flex;
    gap: 20px; /* Espaciado entre los miembros */
    justify-content: center; /* Centra los miembros horizontalmente */
    flex-wrap: wrap; /* Permite que se adapten en pantallas pequeñas */
}

/* Miembro individual */
.team-member {
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 250px; /* Ancho máximo del contenedor */
}

/* Foto del miembro (rectangular) */
.team-photo {
    position: relative;
    width: 100%; /* Ocupa todo el ancho del contenedor */
    height: 300px; /* Altura fija */
    overflow: hidden;
    border-radius: 10px; /* Bordes ligeramente redondeados */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra suave */
    transition: transform 0.3s ease; /* Animación de hover */
}

.team-photo img {
    width: 100%; /* La imagen ocupa todo el ancho */
    height: 100%; /* Ajusta la altura */
    object-fit: cover; /* Recorta para llenar el contenedor */
}

/* Hover: zoom en la foto */
.team-photo:hover {
    transform: scale(1.05); /* Zoom ligero */
}

/* Overlay (redes sociales) */
.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Fondo semitransparente */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease; /* Aparece al hacer hover */
}

.team-photo:hover .team-overlay {
    opacity: 1;
}

/* Lista de redes sociales */
.team-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.team-overlay ul li {
    margin: 10px 0;
}

.team-overlay ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px; /* Espaciado entre el icono y el texto */
    transition: color 0.3s ease;
}

.team-overlay ul li a:hover {
    color: #ffd700; /* Color dorado al pasar el mouse */
}

/* Títulos y descripciones */
.team-member h4 {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #333;
}

.team-member p {
    font-size: 1rem;
    color: #666;
}

/* Contenedor del equipo */
.team {
    text-align: center;
    padding: 40px 20px;
}

.team h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

/* Contenedor de los miembros del equipo */
.team-members {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Miembro individual */
.team-member {
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

/* Tarjeta (contiene frente y reverso) */
.team-card {
    position: relative;
    width: 100%;
    height: 350px;
    perspective: 1000px; /* Necesario para el efecto 3D */
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px; /* Bordes ligeramente redondeados */
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s ease; /* Suaviza el giro */
}

/* Frente de la tarjeta */
.card-front {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen */
}

/* Reverso de la tarjeta */
.card-back {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    transform: rotateY(180deg); /* Oculta el reverso inicialmente */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Enlaces en el reverso */
.card-back ul {
    list-style: none;
    padding: 0;
}

.card-back ul li {
    margin: 10px 0;
}

.card-back ul li a {
    color: #ffd700; /* Color dorado */
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.card-back ul li a:hover {
    color: #fff; /* Cambia a blanco */
}

/* Efecto de giro */
.team-card:hover .card-front {
    transform: rotateY(180deg); /* Gira el frente */
}

.team-card:hover .card-back {
    transform: rotateY(0deg); /* Muestra el reverso */
}

/* Títulos y descripciones */
.team-member h4 {
    margin-top: 15px;
    font-size: 1.3rem;
    color: #333;
}

.team-member p {
    font-size: 1rem;
    color: #666;
}

@media (max-width: 768px) {
    /* Oculta el menú de navegación */
    .nav {
        display: none;
    }

    /* Centra el logo en el header */
    .logo {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .properties-grid {
        display: grid;
        grid-template-columns: 1fr; /* Una columna por fila */
        gap: 20px; /* Espaciado entre las propiedades */
        padding: 10px; /* Espaciado alrededor */
    }

    .property-item {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra para destacar */
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .property-item img {
        width: 100%; /* Imagen ocupa todo el ancho */
        height: auto; /* Ajusta la altura automáticamente */
    }

    .property-item h3 {
        font-size: 1.5rem;
        margin: 15px 0 5px; /* Espaciado para destacar el título */
        color: var(--text-dark);
    }

    .property-item p {
        font-size: 1rem;
        color: var(--text-dark);
        padding: 0 10px 15px; /* Espaciado interno */
        line-height: 1.6;
    }

    .property-item:hover {
        transform: scale(1.03); /* Zoom ligero */
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Resalta en hover */
    }
}

.form-response {
    margin-top: 10px;
    font-size: 1rem;
    text-align: center;
    color: green; /* Color del mensaje de éxito */
    display: none; /* Oculta el mensaje por defecto */
}

.form-response.error {
    color: red; /* Color del mensaje de error */
}

