/* ==== ESTRUCTURA GENERAL ==== */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    background-color: #f5c96c; /* Fondo más suave */
}

/* ==== BARRA SUPERIOR Y REDES ==== */
.barra-superior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.redes-sociales {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    padding: 10px 20px;
}

.redes-sociales a i {
    font-size: 32px;
    color: black;
    transition: transform 0.3s, color 0.3s;
}

.redes-sociales a i:hover,
a i:hover {
    color: #e1306c;
    transform: scale(1.2);
}

/* ==== MENÚ HAMBURGUESA ==== */
.menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin: 20px;
    position: relative;
}

.hamburguesa {
    width: 30px;
    height: 4px;
    background-color: black;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.texto-menu {
    font-family: sans-serif;
    font-size: 22px;
    margin-top: 5px;
    color: black;
}

/* ==== MENÚ FLOTANTE ==== */
.menu-flotante {
    display: none;  /* El menú está oculto inicialmente */
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 20px;
    background-color: white;
    border: 2px solid black;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 999;
    gap: 10px;
}

.menu-flotante.mostrar {
    display: flex; /* Muestra el menú cuando la clase 'mostrar' se aplica */
}

.menu-flotante a {
    font-family: 'Courier New', Courier, monospace;
    text-decoration: none;
    color: black;
    font-size: 18px;
    transition: color 0.3s;
}

.menu-flotante a:hover {
    color: #e1306c;
}

/* ==== CONTENIDO PRINCIPAL ==== */
.presentacion {
    text-align: center;
    height: 16.666vh;
    font-size: 1.7rem;
}

.contenedor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding: 20px;
    background-color: #f5c96c;
    justify-items: center;
    margin-top: 80px;
}

.grupo-caja {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.caja {
    width: 220px;
    height: 180px;
    overflow: hidden;
    border: 3px solid black;
    border-radius: 10px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s;
    text-decoration: none;
}

.caja img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.caja:hover {
    transform: scale(1.05);
}

.titulo-caja {
    margin-top: 5px;
    font-weight: bold;
    text-align: center;
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

/* ==== SECCIONES ==== */
section {
    display: none;
}

section.active {
    display: block;
}

section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

section.active h2 {
    font-size: 36px;
    color: #4CAF50;
    transition: font-size 0.3s ease;
}

section p {
    font-size: 16px;
    line-height: 1.6;
}

section.active p {
    font-size: 22px;
    color: #333;
    transition: font-size 0.3s ease, color 0.3s ease;
}

/* ==== GALERÍA DE VENTA ==== */
.galeria-venta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.galeria-venta .cuadro {
    text-align: center;
}

.galeria-venta img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.galeria-venta img:hover {
    transform: scale(1.05);
}

.titulo-cuadro {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* ==== BOTONES Y EFECTOS ==== */
.boton {
    display: inline-block;
    background-color: black;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    transition: background-color 0.3s, transform 0.2s;
    margin-right: 10px;
}

.boton:hover {
    background-color: #e1306c;
    transform: scale(1.05);
}

/* Enlaces */
a {
    text-decoration: none;
    color: blue;
    display: inline-block;
    padding: 5px;
    border-radius: 5px;
}

a:hover {
    background-color: lightblue;
}

/* Accesibilidad */
a:focus,
.boton:focus {
    outline: 2px dashed #e1306c;
    outline-offset: 2px;
}

/* ==== ANIMACIÓN ==== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

/* ==== CONTACTO ==== */
.botones-contacto {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.botones-contacto a {
    display: block;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.botones-contacto a:hover {
    background-color: #45a049;
}

/* ==== CLASES UTILITARIAS ==== */
.oculto {
    display: none !important;
}

.contenido-oculto {
    display: none;
    margin-top: 15px;
    width: 100%;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 600px) {
    .presentacion {
        font-size: 1.2rem;
    }

    .titulo-cuadro {
        font-size: 16px;
    }

    .menu-flotante {
        left: 10px;
        right: 10px;
    }

    .menu-toggle {
        margin: 10px;
    }
}

.footer-guia {
  background-color: #f5c96c;
  padding: 15px;
  font-size: 0.9em;
  text-align: center;
  color: #333;
  border-top: 1px solid #ddd;
}

.footer-guia strong {
  color: #000;
}

/* === ÚLTIMOS CAMBIOS 17/11/2025 ===*/

#galeria-servicios img {
    transition: transform 0.3s;
}

#galeria-servicios img:hover {
    transform: scale(1.05);
}

#galeria-servicios button {
    background-color: black;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#galeria-servicios button:hover {
    background-color: #e1306c;
}

/*crm vivienda*/
.producto-crm{
    max-width:600px;
    margin:60px auto;
    padding:30px;
    text-align:center;
    border:1px solid #ddd;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    background:white;
}

.producto-crm img{
    width:100%;
    max-width:500px;
    margin:20px 0;
    border-radius:6px;
}

.precio{
    font-size:22px;
    font-weight:bold;
    margin:15px 0;
}

.boton-descarga{
    display:inline-block;
    padding:12px 25px;
    background:#2c7be5;
    color:white;
    text-decoration:none;
    border-radius:6px;
    font-weight:bold;
}

.boton-descarga:hover{
    background:#1a5dc9;
}

.producto-crm{
    max-width:900px;
    margin:80px auto;
    text-align:center;
}

.producto-crm img{
    max-width:100%;
    border-radius:8px;
    margin:20px 0;
}

.lista-crm{
    list-style:none;
    padding:0;
    margin:20px 0;
}

.lista-crm li{
    margin:6px 0;
}

.subtitulo-crm{
    font-size:18px;
    opacity:0.8;
}

.licencia-crm{
    margin-top:15px;
    font-size:14px;
    opacity:0.8;
}

.titulo-crm{
font-size:18px;
line-height:1.3;
}

/* Estilo para el subtítulo del CRM en el menú */
.subtitulo-crm-menu {
    font-size: 14px;
    font-weight: normal;
    display: block;
    line-height: 1.3;
    opacity: 0.8;
}