:root {
    --gris-industrial: #2c3e50;
    --plata-metalico: #bdc3c7;
    --blanco: #ffffff;
    --cian-resalte: #00d4ff;
    --negro-fade: rgba(0, 0, 0, 0.7);
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    color: var(--blanco);
    overflow-x: hidden;
}

.oceano-total {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -10;
    filter: brightness(0.4);
}

.hero {
    height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.nombre-empresa {
    font-family: 'Roboto Slab', serif;
    font-size: 1.2rem;
    letter-spacing: 5px;
    color: var(--cian-resalte);
    text-transform: uppercase;
}

.titulo-principal {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3.2rem;
    margin: 0;
    text-shadow: 3px 3px 15px rgba(0,0,0,0.8);
}

/* --- Tarjetas --- */
.contenedor-info-maritima {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 20px;
    min-height: 500px;
    width: 95%;
    margin: 0 auto;
}

.tarjeta-revelar {
    position: relative;
    width: 300px;  
    height: 220px; 
    border: 3px solid var(--plata-metalico);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(0,0,0,0.6);
    background-color: #000;
}

.posicion-arriba { transform: translateY(0); }
.posicion-abajo { transform: translateY(220px); }

.contenido-frontal {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center;     
    text-align: center;      
    padding: 20px; 
    z-index: 20;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.contenido-frontal h3 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--cian-resalte);
}

.tarjeta-revelar:hover .contenido-frontal {
    transform: translateY(-100%);
}

/* --- EL TRUCO DEL HUMO --- */
.contenido-posterior {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 5;
}

.efecto-hielo {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../image/hielo.gif'); /* TU ARCHIVO */
    background-size: cover;
    background-position: center;
    /* ESTO QUITA EL FONDO NEGRO DEL GIF */
    mix-blend-mode: screen; 
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 10;
    pointer-events: none;
}

.tarjeta-revelar:hover .efecto-hielo {
    opacity: 0.9; /* Aparece al abrir */
}

.texto-oculto {
    background: var(--negro-fade);
    padding: 8px 15px;
    border: 1px solid var(--cian-resalte);
    font-weight: bold;
    z-index: 15;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Carrusel --- */
.seccion-carrusel { display: flex; justify-content: center; margin-top: 100px; padding-bottom: 40px; }
.ventana-carrusel { position: relative; width: 65%; max-width: 800px; height: 320px; border: 4px solid white; border-radius: 20px; overflow: hidden; }
.slide { position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease; }
.slide.activa { opacity: 1; }
.flecha { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.15); border: none; color: white; font-size: 2rem; padding: 10px; cursor: pointer; z-index: 30; }
.izq { left: 0; } .der { right: 0; }
.footer-maritimo { text-align: center; padding: 25px; background: rgba(5, 22, 42, 0.9); }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .contenedor-info-maritima { gap: 40px; }
    .tarjeta-revelar { width: 280px; height: 180px; }
    .posicion-abajo { transform: translateY(100px); }
}

@media (max-width: 768px) {
    .titulo-principal { font-size: 1.8rem; }
    .contenedor-info-maritima { flex-direction: column; align-items: center; gap: 20px; min-height: auto; }
    .posicion-abajo { transform: translateY(0); }
    .tarjeta-revelar { width: 85%; height: 150px; }
    .ventana-carrusel { width: 90%; height: 200px; }
}