body {
    font-family: Inter, sans-serif;
    margin: 0;
}

.navbar {
    display: flex;
    justify-content: space-between; /* Espacia los grupos: izquierda, centro y derecha */
    align-items: center;
    padding: 1.5rem 3rem; /* Puedes ajustar esto como gustes */
    background-color: #fff;
}

.navbar-left,
.navbar-center,
.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Logo */
#flip-logo {
    height: 4em;
}

/* Links */
.navbar a {
    text-decoration: none;
    padding: 2em;
    font-weight: 600;
    color: #748E54;
    font-size: 1rem;
}

.navbar a:hover {
    color: #53613e;
    transition: color 0.3s ease;
}

/* Botones */
#register-button, #login-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: filter 0.3s ease;
}

#register-button {
    color: #748E54;
    background-color: #eeeeee;
}

#login-button {
    color: white;
    background-color: #748E54;
}

#register-button:hover,
#login-button:hover {
    filter: brightness(80%);
}

.hero-section {
    width: 100%;
    height: 110vh;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    color: #fff;
    position: relative;
    object-fit: contain;
}

.slider {
    display: flex;
    width: calc(100% * 2); /* Ajusta el ancho según el número de slides */
    height: 100%;
    transition: transform 1s ease-in-out;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110vh;
    object-fit: cover;
    z-index: -1; /* Para que se quede al fondo */
}

.slide {
    position: relative; /* Necesario para que el z-index del fondo funcione */
    width: 100%;
    height: 110vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.h1-container {
    display: flex;
    justify-items: center;
    align-items: center;
    flex-direction: column;
    font-size: 30px;
    & h1 {
        margin: 0; /* elimina los márgenes por defecto */
        line-height: 1.5; /* comp ensa el espacio entre líneas */
        background: linear-gradient(to right, #00E5FF, #FFFFFF); /* blanco a plomo */
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.orbit-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    animation: rotate 10s linear infinite;
    z-index: 1;
}

.orbiter {
    position: absolute;
    width: 0;
    height: 0;
    transform: rotate(calc(var(--i) * 90deg));
}

.orbiter .planet {
    position: absolute;
    width: 60px;
    height: 60px;
    object-fit: contain;
    top: -50%;
    left: -50%;
    transform: translateX(150px) scaleY(1.0); /* Elipse horizontal */
}

.ellipse-container {
    position: relative;
    width: 600px;
    height: 400px;
    margin: 4rem auto;
    display: flex; /* Asegura que los elementos se centren */
    justify-content: center; /* Centra la imagen horizontalmente */
    left: 20%; /* Mueve el contenedor al borde derecho */
    top: 30%; /* Centra verticalmente */
    transform: translateY(-50%); /* Ajusta el centrado vertical */
    flex-direction: column; /* Asegura que los elementos dentro estén en columna */
    align-items: flex-start; /* Alinea los elementos dentro del contenedor */
}

.ellipse {
    position: relative;
    top: 0;
    left: 0;
    width: 70%;
    height: 70%;
    align-self: center;
}

.planet {
    height: 115px;
    object-fit: contain;
}

.planet-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    text-align: center;
    pointer-events: none; /* para evitar que el mouse interfiera */
}

.planet-label {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    pointer-events: none;
}

.screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.content {
    font-size: 1.2rem;
    color: #333;
}

.warren-buffet {
    align-items: center;
    justify-content: space-between;
    padding: 2rem 4rem;
    gap: 2rem;
}

.text-container {
    flex: 1;
    text-align: left; /* ← Esto alinea todo el texto a la izquierda */
}


.prev-slider {
    padding: 2rem;
    flex: 0.1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #000;
}

.image-container {
    flex: 0.9;
    width: 100%;
    height: 100%; /* asegúrate de que hereda el alto del padre */
    position: relative;
}


.slide-image {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* ← evita recorte */
    object-position: 5% center; /* o left center, según lo que quieres mostrar */
}

.first-phrase-prev-slider {
    font-size: 2em;
    font-weight: 700;
    text-align: left;
}

.second-phrase-prev-slider {
    font-weight: 500;
    font-size: 1em;
    line-height: 1.5;
    color: #575151;
    text-align: left;
    margin-bottom: 0;
}


.first-phrase {
    font-weight: 500;
    font-size: 35px;
    line-height: 1.5;
    text-align: left; /* ← por si acaso también aquí */
}

.second-phrase {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.5;
    color: #575151;
    text-align: left;
    & .highlight4 {
        color: black;
    }
}

.warren-phrase {
    width: 500px;
    height: auto;
}

.highlight1 {
    color: #0DB7D4; /* primer color, por ejemplo azul */
    font-weight: bold;
}

.highlight2 {
    color: black; /* segundo color, por ejemplo naranja */
}

.text-container {
    margin: 5rem 10rem;
}

.warren-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.animal-phrase {
    font-weight: 400;
    font-size: 35px;
    line-height: 1.5;
    text-align: left;
    padding: 4rem 15rem 2rem 15rem;
}

#animals {
    background-color: #f5f4ea;
    padding: 0 0 10rem 0;
}

.animal-highlight {
    color: #0DB7D4; /* primer color, por ejemplo azul */
}

.animal-highlight-2 {
    color: #000000;
}

.animals-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.animal-button-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

#animal-button {
    color: white;
    padding: 0.5rem 2rem;
    line-height: 1.5;
    width: 20rem;
    background-color: #748E54;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: filter 0.3s ease;
}

#animal-button:hover {
    filter: brightness(80%);
}

.flip-animals {
    width: 40rem;
    padding-left: 1.8rem;
}

.nav-actions {
    background-color: #f8f9fa;
    padding: 2rem 4rem;
}

.investment-nav {
    margin-bottom: 2rem;
}

.main-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.main-menu > li {
    position: relative;
}

.nav-item {
    display: block;
    padding: 0.75rem 1.5rem;
    background-color: #748E54;
    color: white;
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    background-color: #53613e;
}

.has-submenu .nav-item.active + .submenu {
    display: block;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
    min-width: 200px;
}

.submenu-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.submenu-item:hover {
    background-color: #f0f0f0;
    color: #748E54;
}

.content-display {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-height: 200px;
}

.content-item {
    display: none;
}

.content-item.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilos para el contenedor de tres columnas */
.depositos-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    align-items: start;
}

.depositos-column {
    background: white;
    padding: 2rem;
    border-radius: 8px;
}

/* Columna de iPhone */
.iphone-placeholder {
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: #888;
    font-style: italic;
}

/* Estilos específicos para columnas */
.risks-column {
    grid-column: 1;
}

.benefits-column {
    grid-column: 3;
}

/* Mantener los estilos existentes para listas, tablas, etc. */
.risks-list, .benefits-list {
    padding-left: 1.5rem;
    line-height: 1.6;
}

.risks-list li, .benefits-list li {
    margin-bottom: 0.8rem;
}

.deposit-details {
    margin-top: 2rem;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.table-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 0.8rem 0;
}

.table-row.header {
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}

.table-row.amount {
    font-size: 1.2rem;
    font-weight: bold;
    color: #004B58;
}

.cell {
    flex: 1;
    padding: 0.3rem;
}

.reminder {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: #fff8e1;
    border-left: 3px solid #ffc107;
}

/* Estilos para botones y elementos de tiempo */
.time-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.time, .number {
    font-size: 0.9rem;
    color: #666;
}

.deposit-button {
    background-color: #748E54;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.deposit-button:hover {
    background-color: #53613e;
}

.despositos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5rem;
}

li {
    font-weight: 500;
    color: #666666;
}

.titles {
    color: black;
}

.depositos-header {
    padding-bottom: 30px;
}

.depositos-header p {
    font-weight: 500;
    color: #666666;
}

.light-blue {
    color: #0DB7D4;
}

.depositos-footer {
    margin-top: 0.3rem;
    font-size: 2rem;
    font-weight: 500;
    padding: 0 2rem;
}

.content-item .turn-gray {
    font-weight: 500;
    color: #666666;
}

/* Ensure submenus are hidden by default */
.submenu {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    border-radius: 4px;
    z-index: 100;
}

/* Show submenu on hover */
.has-submenu:hover .submenu {
    display: block;
}

/* Style submenu items */
.submenu-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.submenu-item:hover {
    background-color: #f0f0f0;
    color: #748E54;
}

.image-acciones {
    width: 60%;
    height: auto;
    margin: 0 auto; /* Centrar horizontalmente */
    transition: transform 0.5s ease; /* Transición suave para rotación y escalado */
}

.layout-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.layout-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.layout-button.vertical {
    background-color: #f0f0f0;
    color: #333;
    border-radius: 20px;
}

.layout-button.horizontal {
    background-color: #f0f0f0;
    color: #333;
    border-radius: 20px;
}

.layout-button.active {
    background-color: #53613e;
    color: white;
}

.iphone-placeholder.horizontal-layout img {
    transition: transform 0.5s ease;
    transform: rotate(-90deg);
}

.risks-column, .benefits-column {
    transition: opacity 0.5s ease;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.iphone-image {
    position: relative;
    width: 100%;
    height: 90%;
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;    /* Centra verticalmente */
}

.first-image, .second-image {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
}

.first-image {
    z-index: 2;
    opacity: 1;
    transform: rotate(0deg);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.second-image {
    z-index: 1;
    opacity: 0;
    transition: transform 0.5s ease, opacity 1s ease;
}
.first-image.hidden {
    opacity: 0;
    z-index: 1;
}

.second-image.show {
    opacity: 1;
    z-index: 2;
    transform: rotate(0deg);
}


.slider-buttons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-buttons button {
    background-color: #53613e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.slider-buttons button:hover {
    background-color: #748E54;
}

#prev-slide, #next-slide  {
    border-radius: 20px;
    width: 10%;
}

.main-background {
    background: linear-gradient(180deg, #004B58 0%, #004B58 100%);
    color: #f6f6f9;
    /* Reemplazamos height:100% por min-height */
    min-height: 140vh;
    padding: 0 2rem;
}
.flex-panel {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}
.flex-panel-2 {
    padding: 3em 0;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}
.take-note-container {
    font-size: small;
    color: #FFE699;
}
.take-note-text{
    font-size: 1.2rem;
    font-weight: 300;
}
.panel-right {
    flex: 5;
    background-color: transparent;
}
.panel-left {
    flex: 6;
    background-color: transparent;
}


.std-padding-sides {
    padding-left: 5vh;
}

.std-padding-sides2 {
    padding-right: 5vh;
}

.main-title {
    font-size: 3rem;
    font-weight: 8000;             /* letras finas */
    line-height: 1.2;
    text-align: left;             /* alineado a la izquierda */
    /* fallback sólido para navegadores sin soporte */
    color: #bbb;                  /* plateado suave */
    padding-top: 10vh;
    padding-right: 5vh;
    padding-left: 5vh;
    padding-bottom: 6vh;
}
/* Sólo navegadores que entienden background-clip:text aplican degradado */
@supports (background-clip: text) {
    .main-title {
        background: linear-gradient(90deg,
        #ffffff 0%,
        #e4e4e4 15%,
        #8c8c8c 50%,
        #cfcfcf 100%
        );
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;         /* hace transparente el texto para ver el fondo */
    }
}

.line-spacer {
    height: 2vh;
}

.compara-text {
    padding-right: 5vw;
    font-size:1.5rem;
    color:#ffffff;
    width: 10vw;
}

.selector{
    position:relative;
    border:2px solid #30d2d6;
    border-radius:40px;
    background:linear-gradient(180deg, #004B58 0%, #004B58 100%);
    color:#fff;
    min-width:260px;
}
.selected{
    padding:14px 52px 10px 24px;     /* space for arrow */
    cursor:pointer;
}
.title{font-weight:600;font-size:16px;display:block;}
.subtitle{font-size:12px;opacity:.8;display:block;margin-top:2px;}


.arrow{
    pointer-events:none;
    position:absolute;
    right:16px;top:50%;
    transform:translateY(-50%) rotate(45deg);
    width:18px;height:18px;
    stroke:#000;stroke-width:4;fill:none;
    transition:transform .25s;
}
.selector.open .arrow{transform:translateY(-50%) rotate(-135deg);}

/* — dropdown list — */
.options{
    list-style:none;
    margin:0;padding:6px 0;
    position:absolute;
    left:0;right:0;top:100%;
    background:#fff;
    color:#000;
    border-radius:20px;
    display:none;
    box-shadow:0 8px 18px rgba(0,0,0,.15);
    z-index:10;
}
.selector.open .options{display:block;}
.options li{
    padding:10px 24px;
    cursor:pointer;
    border-radius:14px;
}
.options li:hover{background:#e8e8e8;}

.wt1-container {
    font-size: 1rem;
    line-height: 1.6;
    padding-bottom: 3vh;
}

.wt1-editable {
    display: inline-block;
    border-bottom: 2px solid white;
    padding: 0 5px;
    background: transparent;
    color: white;
    font-size: 18px;
    min-width: 50px;
    text-align: center;
}

.wt1-editable:focus {
    outline: none;
    border-bottom: 2px solid #30d2d6;
}

#compararBtn {
    display: grid;
}

/* Slide principal (hero) */
.slide-hero {
  background: #7b8c4a;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.slide-hero-content {
  width: 100%;
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slide-hero-logo {
  height: 48px;
  margin-bottom: 10px;
}

.slide-hero-title {
  color: #fff;
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  letter-spacing: -1px;
}

.slide-hero-subtitle {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 30px;
}

.slide-hero-laptop {
  max-width: 150em;
  width: 100%;
  border-radius: 18px;
  margin-bottom: 30px;
}

.slide-hero-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.slide-hero-action-text {
  color: #fff;
  font-size: 1.2rem;
}

.slide-hero-action-link {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
}


