/* Estilos generales */
body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
}
@font-face {
    font-family: 'Roboto';
    src: url('media/fuentes/roboto-regular.woff2') format('woff2'),
         url('media/fuentes/roboto-regular.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('media/fuentes/roboto-bold.woff2') format('woff2'),
         url('media/fuentes/roboto-bold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}
html {
    scroll-behavior: smooth;
}

/* Header Styles */
.main-header {
    display: flex; /* Distribuye los elementos en fila */
    justify-content: space-between; /* Logo a la izquierda, enlaces a la derecha */
    align-items: center; /* Centra verticalmente el logo y los enlaces */
    padding: 10px 20px; /* Espaciado interior */
    background: #333; /* Fondo oscuro */
    height: 60px; /* Altura fija del header */
    box-sizing: border-box;
}

.main-header .logo {
    display: flex; /* Evita que el div tenga espacio adicional */
    align-items: center; /* Centra verticalmente el logo */
}

.main-header img {
    display: block; /* Elimina cualquier espacio extra en la imagen */
    height: 50px; /* Tamaño del logo */
    width: auto; /* Mantiene proporciones */
}

.main-header nav {
    display: flex; /* Organiza los enlaces en una fila */
    gap: 20px; /* Espaciado horizontal entre enlaces */
    align-items: center; /* Centra verticalmente los enlaces */
}

.main-header nav a {
    color: #2ddfff; /* Color amarillo */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    font-size: 1rem;
    line-height: 30px; /* Hace que los enlaces tengan la misma altura que el logo */
}

.main-header nav a:hover {
    color: #fff; /* Color blanco al pasar el ratón */
}


/* Hero Section */
.hero {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: url('media/remodelaciones-heredia.webp') center/cover no-repeat;
    height: calc(100vh - 50px); /* Ajusta para que el formulario aparezca 50px antes del final */
    color: white;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 50%; /* Reducido para equilibrar espacio */
    margin-right: 10px; /* Ajusta separación con el formulario */
    margin-left: 2%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left; /* Alineación izquierda */
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-buttons {
    margin-top: 20px;
}

.cta-buttons a {
    display: block;
    margin: 10px auto;
    width: 70%;
    text-align: center;
    padding: 12px 20px;
    background-color: #2ddfff; /* Fondo amarillo */
    color: #000; /* Texto negro */
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.cta-buttons a:hover {
    background-color: #2ddfff; /* Fondo amarillo */
    color: #000; /* Texto negro */
}
.cta-button-container {
    margin-top: 20px;
    text-align: center;
}

/* Campos de entrada */
.form-container input[type="text"],
.form-container input[type="tel"],
.form-container textarea {
    width: 100%; /* Ocupa todo el ancho */
    padding: 12px; /* Espaciado interno más amplio */
    margin-bottom: 15px; /* Espaciado entre campos */
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho */
    font-size: 1rem;
    color: #333;
    transition: border 0.3s ease-in-out;
}

/* Ajuste del formulario en PC */
.form-container {
    position: absolute;
    top: 20%; /* Ajusta la posición vertical */
    right: 5%; /* Espacio desde la derecha */
    transform: translateY(0); /* Centrado vertical opcional */
    width: 100%;
    max-width: 400px;
    padding: 20px 25px;
    color: #333;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    box-sizing: border-box;
}

.form-container .cta-button {
    display: block;
    width: calc(100% - 10px); /* Asegura que no esté pegado al borde */
    margin-top: 10px;
    padding: 12px 20px;
    text-align: center;
    background-color: #000;
    color: #2ddfff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    height: 3rem;
    transition: background 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.form-container .cta-button:hover {
    background-color: #2ddfff;
    color: #000;
}

/* Ajustes Responsivos para Móviles */
@media (max-width: 768px) {
    .form-container {
        position: relative; /* Elimina la superposición */
        top: auto;
        right: auto;
        transform: none; /* Asegura que no haya desplazamientos */
        margin: 20px auto; /* Margen para centrar el formulario */
        width: 95%; /* Aprovecha todo el ancho */
        max-width: 95%;
        padding: 15px; /* Espaciado interno ajustado */
        background: rgba(255, 255, 255, 0.95); /* Fondo ligeramente menos transparente */
    }

    .form-container input[type="text"],
    .form-container input[type="tel"],
    .form-container textarea {
        padding: 10px;
        font-size: 1rem;
    }

    .form-container .cta-button {
        padding: 10px;
        font-size: 1rem;
    }
}


/* Contenedor general */
.container {
    position: relative; /* Asegura que el contenido quede posicionado */
    z-index: 2; /* Eleva el contenido por encima del fondo */
    max-width: 1200px;
    padding: 1.25rem;
    margin: 0 auto;
    display: flex; /* Mantén flex aquí para contenido interno */
    gap: 20px;
}

.text-content, .image-content {
    flex: 1 1 50%;
}

.text-content h2 {
    color: #FFF; /* Texto blanco para mejor contraste */
}

.image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
.image-content {
flex: 1 1 40%;
text-align: center;
}

ul {
list-style: none;
padding: 0;
}

ul li {
margin-bottom: 10px;
}

/* Contenedor general */
.container {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
margin: 0 auto;
max-width: 1200px;
padding: 1.25rem;
}

/* Secciones */
.section {
padding: 60px 20px;
}
/* Contenido */
.text-content {
flex: 1 1 50%;
padding: 1.25rem;
}

.image-content {
flex: 1 1 40%;
text-align: center;
}

.image-content img {
max-width: 100%;
height: auto;
border-radius: 10px;
}

ul {
list-style: none;
padding: 0;
}

ul li {
margin-bottom: 10px;
}

.section.overlay {
    background: url('media/remodelacion-cocina.webp') center/cover no-repeat;
    background-color: rgba(0, 0, 0, 0.6);
    background-blend-mode: overlay;
    color: #fff;
}

/* Sección Servicios */
#servicios {
background: url('media/cocina-remodelada.webp') center/cover no-repeat;
background-color: rgba(0, 0, 0, 0.7);
background-blend-mode: overlay;
color: #fff;
}

/* Sección Tipos de Cámaras */
#fondoblanco {
background-color: #f4f4f4;
color: #333 !important;
}
#fondoblanco h2 {
color: #000;
}

/* Sección Marcas y Tecnologías */
#marcas-tecnologias {
background-color: #ffffff;
color: #333 !important;
}
#marcas-tecnologias h2 {
color: #000;
}

/* Sección Contacto */
.contact {
background-color: #00a859;
color: #FFF;
text-align: center;
}

.contact ul li {
font-size: 1.2em;
font-weight: bold;
}

.contact p {
margin: 10px 0;
}

/* Footer */
.footer {
background-color: #333;
color: #fff;
padding: 20px 0;
text-align: center;
}

.footer a {
color: #a2f1ff;
text-decoration: none;
}

.footer a:hover {
text-decoration: underline;
}
        .map-container {
            position: relative;
            width: 100%;
            height: 450px;
        }

        iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

.contact-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #000;
    padding: 10px 5px; /* Reducir padding en pantallas pequeñas */
    color: white;
    font-family: 'Roboto', Arial, sans-serif;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 999;
    flex-wrap: wrap; /* Permitir que los elementos se envuelvan */
}

.contact-bar a {
    display: flex;
    align-items: center;
    gap: 5px; /* Reducir el espacio entre el icono y el texto */
    text-decoration: none;
    color: black;
    font-weight: bold;
    transition: transform 0.3s ease;
    background-color: #2ddfff;
    padding: 8px 12px; /* Reducir padding del botón */
    border-radius: 5px;
    margin: 5px; /* Añadir margen entre botones */
    flex: 1 1 auto; /* Permitir que los botones ocupen espacio proporcional */
    text-align: center;
    min-width: 100px; /* Evitar botones extremadamente pequeños */
}

.contact-bar a:hover {
    transform: scale(1.05);
    background-color: #000;
    color: #2ddfff;
}

.contact-bar img {
    width: 20px; /* Tamaño reducido del icono */
    height: 20px;
    filter: invert(0); /* Asegura colores originales */
}

.contact-bar span {
    font-size: 12px; /* Reducir el tamaño del texto en pantallas pequeñas */
    text-transform: uppercase;
    white-space: nowrap; /* Evitar que el texto se divida */
}

/* Ajuste de botones en pantallas pequeñas */
@media (max-width: 768px) {
    .contact-bar {
        flex-wrap: wrap; /* Permite que los elementos pasen a la siguiente fila */
        justify-content: center; /* Centra los botones */
        padding: 5px 0;
    }

    .contact-bar a {
        flex: 0 0 48%; /* Cada botón ocupa casi la mitad del ancho */
        max-width: 48%; /* Límite máximo */
        margin: 5px 1%; /* Espaciado uniforme entre botones */
        padding: 11px; /* Botones más altos */
        font-size: 1rem; /* Texto más grande */
        justify-content: center; /* Centra ícono y texto */
        box-sizing: border-box; /* Incluye padding en el ancho */
    }

    .contact-bar a:nth-child(3) {
        flex: 0 0 98%; /* El tercer botón ocupa toda la fila */
        max-width: 98%; /* Límite para aprovechar el ancho */
    }

    .contact-bar img {
        width: 24px;
        height: 24px;
    }

    .contact-bar span {
        font-size: 14px;
    }
}

/* Responsivo */
@media (max-width: 768px) {
.text-content, .image-content {
    flex: 1 1 100% !important;
    margin-bottom: 20px !important;
}

.hero {
    flex-direction: column !important;
    height: auto !important;
}
.hero-content {
    max-width: 98% !important;
}
.main-header {
    flex-direction: row; /* Mantén los elementos en una fila */
    justify-content: space-between;
    height: auto; /* Ajuste de altura */
}

.main-header nav {
    flex: 1; /* Usa el espacio disponible */
    justify-content: space-between; /* Distribuye los enlaces */
    margin-top: 0; /* Elimina el margen superior */
        margin-left: 10%;
}

.main-header nav a {
    font-size: 0.9rem; /* Ajusta el tamaño del texto */
}


.cta-buttons a {
    display: block;
    margin: 10px auto;
    width: 90%;
    text-align: center;
}

 .form-container {
                width: 95%;
                position: relative;
                right: auto;
                top: auto;
                margin: 20px auto;
                z-index: 2;
            }
}
/* linea de tiempo como comprar */
/* Estilos para la línea de tiempo moderna */
.timeline-modern {
    padding: 60px 20px;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
}

.timeline-modern h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2em;
    color: #333;
}

.timeline-modern p {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    font-size: 1.1em;
}

.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, #2DDFFF, #2DDFFF 50%, #ddd 50%);
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    text-align: center;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(to bottom, #2DDFFF, #82EFFF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.timeline-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 80%;
    position: relative;
    z-index: 1;
}

.timeline-content h3 {
    margin: 0 0 10px;
    font-size: 1.5em;
    color: #2DDFFF;
}

.timeline-content p {
    margin: 0;
    color: #555;
}

.timeline-item:nth-child(odd) .timeline-content {
    align-self: flex-start;
}

.timeline-item:nth-child(even) .timeline-content {
    align-self: flex-end;
}

