/*stylesheet con metodología BEM*/

/* Import Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

html {
    box-sizing: border-box;
    text-align: center;
    font-family: Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

.cursor {
  position: absolute;
  --c: rgb(255, 155, 222);
  aspect-ratio: 1;
  background:
    /* 1 */ radial-gradient(circle at 60% 65%, var(--c) 64%, #0000 65%) top left/50% 50%,
    /* 2 */ radial-gradient(circle at 40% 65%, var(--c) 64%, #0000 65%) top right/50% 50%,
    /* 3 */ conic-gradient(from -45deg at 50% 85.5%, var(--c) 90deg, #0000 0) bottom/100% 50%;
  background-repeat: no-repeat;
  width: 20px;
  height: 20px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: fadeOut 0.5s forwards;
  filter: drop-shadow(0 0 10px #ff0080a9) drop-shadow(0 0 20px #ff0080a9);
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(2);
    }
}


/* ===== LAYOUT BASE ===== */
.page {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    margin-top: 30px;
    padding: 20px;
    background: content-box linear-gradient(#ffcffc, #c7ecfd);
    color: #333;
    font-family: 'JetBrains Mono', Arial, sans-serif;
}

/* ===== ZONA ACTIVA - VISUALIZACIÓN DE RECUERDOS ===== */
.zone {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Iconos inline para reemplazar emojis */
.inline-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

/* Iconos para memorias */
.memory-icon {
    width: 24px;
    height: 24px;
    display: block;
}

/* Tamaños específicos para tipos de memoria */
.memory-item--audio .memory-icon {
    width: 28px;
    height: 28px;
}

.memory-item--video .memory-icon {
    width: 24px;
    height: 24px;
}

.memory-item--location .memory-icon {
    width: 22px;
    height: 22px;
}

.memory-item--text .memory-icon {
    width: 28px;
    height: 28px;
}

.loading-icon, .empty-icon {
    width: 32px;
    height: 32px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.type-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.placeholder-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.location-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.memory-preview-image {
    width: 55px;
    height: 55px;
    border:2px solid black;
    border-radius: 50%;
    object-fit: cover;
}

.zone__grass {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 1px, transparent 1px);
    border-radius: 20px;
    border: 3px solid #16a34a;
    overflow: hidden;
    box-shadow: 
        inset 0 0 50px rgba(0,0,0,0.1),
        0 10px 30px rgba(0,0,0,0.2);
}

.zone__grass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0; 
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.1; }
}

/* ===== RECUERDOS EN LA ZONA ===== */
.memory-item {
    position: absolute;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-origin: center;
}

.memory-item:hover {
    transform: scale(1.1);
    z-index: 20;
    filter: brightness(1.1);
}

.memory-item--text {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

/*
.memory-item--text .memory-emoji {
    font-size: 24px;
    line-height: 1;
}
*/

.memory-item--photo {
    width: 80px;
    /* height: 80px; */
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.memory-item--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memory-item--audio {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    position: relative;
}

.memory-item--video {
    width: 90px;
    height: 60px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    position: relative;
}

.memory-item--location {
    width: 50px;
    height: 65px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border-radius: 25px 25px 25px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    position: relative;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.05);
        opacity: 1;
    }
}

/* ===== TOOLTIP PARA RECUERDOS ===== */
.memory-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: 8px;
}

.memory-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.9);
}

.memory-item:hover .memory-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ===== ESTADOS DE CARGA ===== */
.zone__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #16a34a;
    font-size: 1.2rem;
}

.zone__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #16a34a;
    text-align: center;
    padding: 20px;
}

.zone__empty-icon {
    font-size: 4rem;
    display: block;
}

.zone__empty-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: center;
}

.zone__empty-hint {
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
}


/* ===== GRID DE RECUERDOS (SECCIÓN RECUERDOS) ===== */
.memories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estado vacío para la grid de memorias */
.memories-grid .zone__empty {
    grid-column: 1 / -1;
    min-height: 400px;
    text-align: center;
    padding: 40px 20px;
}

/* Estado vacío para jardines */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #16a34a;
    opacity: 0.7;
    text-align: center;
    padding: 40px 20px;
    grid-column: 1 / -1;
}

.empty-state__icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.empty-state__title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: center;
    color: #16a34a;
}

.empty-state__description {
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
    color: #16a34a;
    max-width: 400px;
    margin: 0 auto;
}

.memory-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.memory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #ff4da3;
}

.memory-card--text {
    border-left: 5px solid #fbbf24;
}

.memory-card--photo {
    border-left: 5px solid #10b981;
}

.memory-card--audio {
    border-left: 5px solid #8b5cf6;
}

.memory-card--video {
    border-left: 5px solid #ef4444;
}

.memory-card--location {
    border-left: 5px solid #06b6d4;
}

.memory-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.memory-card__type-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.memory-card__type-icon--text { background: #fbbf24; }
.memory-card__type-icon--photo { background: #10b981; }
.memory-card__type-icon--audio { background: #8b5cf6; }
.memory-card__type-icon--video { background: #ef4444; }
.memory-card__type-icon--location { background: #06b6d4; }

.memory-card__date {
    font-size: 0.85rem;
    color: #666;
}

.memory-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.memory-card__content {
    margin-bottom: 15px;
}

.memory-card__description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.memory-card__media {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.memory-card__media img,
.memory-card__media video {
    width: 100%;
    height: auto;
    display: block;
}

.memory-card__audio {
    width: 100%;
    height: 40px;
    border-radius: 20px;
}

.memory-card__location-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f0f9ff;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #0891b2;
}

.memory-card__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.memory-card__action {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.memory-card__action--edit {
    background: #f3f4f6;
    color: #374151;
}

.memory-card__action--edit:hover {
    background: #e5e7eb;
}

.memory-card__action--delete {
    background: #fee2e2;
    color: #dc2626;
}

.memory-card__action--delete:hover {
    background: #fecaca;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .zone__grass {
        min-height: 400px;
    }
    
    .memory-item {
        transform: scale(0.9);
    }
    
    .memory-item:hover {
        transform: scale(1);
    }
    
    .memories-grid {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 15px;
    }
    
    .memory-card {
        padding: 15px;
    }
}

/* ===== ICONOS ===== */
.icon {
    font-size: 5em;
    color: #ff4da3;
}

.icon--small {
    width: 30px;
    height: 30px;
    padding: 5px;
}

.icon--medium {
    width: 40px;
    height: 40px;
}

.icon--heart {
    width: 40px;
    height: 40px;
}

/* ===== TIPOGRAFÍA ===== */
.heading {
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    background: linear-gradient(90deg, #FF0080 10.76%, #F600A1 55.51%, #D0F 96.87%);
    background-clip: text;
    margin-top: 20px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Scada', sans-serif;
}

.heading--large {
    font-size: 48px;
}

.heading--medium {
    padding: 0;
    margin: 0;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    background: linear-gradient(90deg, #FF0080 10.76%, #F600A1 55.51%, #D0F 96.87%);
    background-clip: text;
    margin-top: 20px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Scada', sans-serif;
}

.heading--small {
    padding: 0;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.text {
    display: block;
    font-size: 1.2em;
    text-align: center;
}

.text--description {
    text-align: left;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.3;
}

.text--guide {
    display: flex;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 550;
    color: rgb(136, 136, 136);
}

.text--stats {
    font-size: 2rem;
    margin: 0;
}

.text--stats-label {
    color: rgb(122, 122, 122);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    padding-top: 30px;
    margin: 0;
}

.text--access {
    width: 350px;
    color: grey;
    font-size: 1rem;
    text-align: left;
    padding-top: 10px;
    margin: 0;
}

.text--garden-description {
    color: rgb(94, 94, 94);
    font-size: 0.9rem;
    text-align: left;
    padding-top: 10px;
    margin: 0;
}

.text--music-description {
    margin: 0;
    padding: 0;
    text-align: left;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.3;
}

.text--author {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    text-align: left;
}

.text--music-name {
    text-align: left;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #666;
}

/* ===== BOTONES ===== */
.button {
    border: none;
    border-radius: 8px;
    padding: 5px 15px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button--primary {
    background: linear-gradient(111deg, #FF0080 10.49%, #D0F 95.51%);
    color: white;
    width: 360px;
    height: 40px;
}

.button--secondary {
    border: 3px solid #ff4da3;
    background-color: #fff;
    color: #333;
    width: 360px;
    height: 40px;
}

.button--access {
    background: linear-gradient(111deg, #FF0080 10.49%, #D0F 95.51%);
    color: white;
    width: 100%;
    height: 40px;
}

.button--view {
    border: 3px solid #ff4da3;
    background-color: #fff;
    color: #333;
    width: 100%;
    height: 40px;
}

.button--recent {
    width: 100px;
    height: 35px;
    border-radius: 5px;
    border: 1px solid rgb(213, 213, 213);
    background: white;
    color: black;
    font-weight: 600;
}

.button--theme {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 40px;
    height: 40px;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 4px solid #ffbcdc;
    background-color: #fff;
    color: #7a6c7d;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.button--save {
    width:120px;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid #e2e2e2;
    background:white;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing:border-box
}

.button--share {
    width:120px;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid #e2e2e2;
    background:white;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing:border-box
}


.button--add-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 250px;
    max-height: 170px;
    padding: 2rem;
    background: white;
    border: 2px solid #e2e2e2;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.button--add-option:hover {
    border-color: #FF0080;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 0, 128, 0.15);
}

/* Botones con iconos */
.button--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    margin: 0 4px;
    border-radius: 8px;
    background: linear-gradient(111deg, #FF0080 10.49%, #D0F 95.51%);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button--icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.3);
}

.button--icon.button--danger {
    background: linear-gradient(111deg, #ff4444 10.49%, #ff6666 95.51%);
}

.button--icon.button--danger:hover {
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.icon--button {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1); /* Convierte los iconos a blanco */
}

/* Animación de carga */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estados de los botones */
.button:hover {
    opacity: 0.9;
}

.button:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
    opacity: 0.85;
}

#theme-default:hover{
    background-color: #ffe7f3;
    border: 3px solid #ff0080;
    box-shadow: 0 2px 10px rgba(255, 0, 128, 0.514);
    color: #ff0080;
}

#theme-blue:hover{
    background-color: #e7f3ff;
    border: 3px solid #007bff;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.514);
    color: #007bff;
}

#theme-green:hover{
    background-color: #e7ffe7;
    border: 3px solid #28a745;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.514);
    color: #28a745;
}

/* ===== FORMULARIOS ===== */
.form {
    display: flex;
    flex-direction: column;
    width: min(90%, 600px);
    padding: 20px;
    gap: 10px;
    margin: 10px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(239, 177, 239, 0.1);
    background-color: #fff;
    text-align: left;
}

.form--garden {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(90%, 600px);
    max-width: 600px;
    padding: 30px;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(239, 177, 239, 0.15);
    background-color: #fff;
    margin: 20px auto;
}


.form--garden form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form__textarea--details {
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    background-color: #f8f9fa;
    font-size: 0.9rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    resize: vertical;
    min-height: 100px;
}

.form__select--details {
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    background-color: #f8f9fa;
    font-size: 0.9rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    cursor: pointer;
}

.form--modal {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    gap: 1rem;
}

.form__fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.form__legend {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    font-weight: 500;
    color: #FF0080;
    margin: 0;
    padding: 0;
    width: 100%;
}

.form__label {
    font-size: 0.9rem;
    font-weight: 550;
    color: rgb(37, 37, 37);
    padding: .5rem 0;
}

.form__label--modal {
    margin: 0;
    padding:0;
    font-size: 0.9rem;
    font-weight: 550;
    color: #333;
}

.form__input {
    width: 100%;
    height: 35px;
    margin-top: 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    background-color: #f1f1f1;
    font-size: 16px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-align: center;
}

.form__input--details {
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    background-color: #f8f9fa;
    font-size: 0.9rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    width: 100%;
    height: auto;
    margin: 5px 0 15px 0;
    text-align: left;
}

.form__input--modal {
    width: 100%;
    margin: 0;
    padding: 0.5rem;
    border: 1px solid #e2e2e2;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.9rem;
}

.form__input--modal:focus {
    outline: none;
    border-color: #FF0080;
    box-shadow: 0 0 0 3px rgba(255, 0, 128, 0.1);
}

.form__textarea {
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    background-color: #f8f9fa;
    font-size: 0.9rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    width: 100%;
    margin: 5px 0 15px 0;
    resize: vertical;
}

.form__textarea--modal {
    width: 100%;
    margin: 0;
    padding: 0.75rem;
    border: 1px solid #e2e2e2;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
}

.form__textarea--modal:focus {
    outline: none;
    border-color: #FF0080;
    box-shadow: 0 0 0 3px rgba(255, 0, 128, 0.1);
}

.form__select {
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    background-color: #f8f9fa;
    font-size: 0.9rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    width: 100%;
    margin: 5px 0 15px 0;
    cursor: pointer;
}

.form__select--modal {
    width: 100%;
    margin: 0;
    padding: 0.75rem;
    border: 1px solid #e2e2e2;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 0.9rem;
}

.form__select--modal:focus {
    outline: none;
    border-color: #FF0080;
    box-shadow: 0 0 0 3px rgba(255, 0, 128, 0.1);
}

/* ===== CONTENEDORES DE BOTONES ===== */
.button-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
}

.button-group--vertical {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.button-group--container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 10px;
    width: 100%;
}

.button-group__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

/* ===== NAVEGACIÓN ===== */
.nav {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: white;
    border: none;
    border-radius: 1.5rem;
    margin: 0;
}

.nav__item {
    display: flex;
    align-items: center;
    width:150px;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: #666;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing:border-box
}

.nav__item:hover {
    background-color: #FF0080;
    color: rgb(255, 255, 255);

    .nav__icon {
        filter: brightness(0) invert(1);    
    }
}



.nav__item--active {
    background-color: #ff008029;
    color: #000000;

}

.nav__icon {
    font-size: 1rem;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

/* Header específico para ver-jardin con navegación - SOLO el elemento header, no el div.header */
.page > header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-bottom: 30px;
}


.header__brand {
    display: flex;
    flex-direction: column;
    justify-content: content;
    align-items: center;
    gap: 0.5rem;
}

.header__brand .icon {
    font-size: 1.5em;
}

.header__brand .heading {
    font-size: 3rem;
    margin: 0;
}

.header__right {
    display: flex;
    justify-content: flex-end;
}

.header__link {
    display: inline-block;
    align-content: center;
    color: #FF0080;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0px 15px;
    margin: 0;
    background-color: transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ===== LINKS DE RETORNO ===== */
.back-link {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 20px;
}

.back-link__item {
    display: inline-block;
    align-content: center;
    color: #FF0080;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0px 15px;
    margin: 0;
    background-color: transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ===== ZONAS ===== */
.zone {
    display: relative;
    width: 1500px;   
    height: 600px;
    padding: 20px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(239, 177, 239, 0.1);
    background-color: #fff;
    margin: 10px 0;
}

.zone__grass{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 550px;
    background: linear-gradient(185deg, #ecffdd, rgb(159, 255, 168));
}


/* ===== CARDS ===== */
.card {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    gap: 30px;
    padding: 10px 100px;
    margin: 10px;
}

.gardens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

.card--garden {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-height: 280px;
    padding: 20px 22px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(239, 177, 239, 0.1);
    background-color: #fff;
    text-align: left;
    position: relative;
}

.card--garden .button-group {
    margin-top: auto;
    margin-bottom: 0;
    justify-content: center;
    gap: 8px;
}

.card--memory {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 300px;
    height: 270px;
    padding: 20px 20px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(239, 177, 239, 0.1);
    background-color: #fff;
    text-align: left;
}

.card--stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 900px;
    padding: 30px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(239, 177, 239, 0.1);
    background-color: #fff;
    text-align: left;
    margin: 0 auto;
}

.card--recent {
    display: flex;
    padding: 20px;
    margin: 10px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(239, 177, 239, 0.1);
    background-color: #fff4f4;
    text-align: left;
}

.card--music {
    display: flex;
    padding: 20px;
    margin: 10px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(239, 177, 239, 0.1);
    background-color: #fff4f4;
    text-align: left;
}


.card__header {
    display: flex;
    justify-content: right;
    align-items: center;
    gap:5px;
    text-align: center;
}


.card__header__calendar {
    display: flex;
    align-items: center;
    justify-content: right;
    text-align: center;
    width: 20px;
    height: 20px;
    margin:0 0 10px 10px;
}

.card__title {
    padding-bottom: 10px;
}

.card__content {
    padding: 0;
    margin: 0;
}

.card__left {
    flex: 1;
    flex-direction: column;
    justify-content: left;
    padding-bottom:10px;
}

.card__right {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
}

/* ===== MINI CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 20px;
    padding: 0 20px;
}

.mini-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    min-height: 80px;
}

/* ===== SECCIONES ===== */
.section {
    display: flex;
    flex-direction: column;
    justify-content:center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.section--stats {
    display: flex;
    flex-direction: column;
    justify-content:center;
    align-items: center;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.section__left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.section__right {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    padding: 0;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== SECCIONES DE PÁGINA ===== */
.page-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.page-section--active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.page-section__title {
    margin-bottom: 2rem;
    text-align: center;
}

/* ===== OPCIONES DE TEMA ===== */
.theme-options {
    display: flex;
    flex-direction: column;
    width: 800px;
    padding: 20px;
    gap: 10px;
    margin: 10px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(239, 177, 239, 0.1);
    background-color: #fff;
    text-align: left;
}

.theme-options__left {
    flex: 1;
    flex-direction: column;
    justify-content: left;
}

.theme-options__right {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

/* ===== REPRODUCTOR DE MÚSICA ===== */
.music-player {
    display: flex;
    flex-direction: column;
    width: 800px;
    padding: 20px;
    gap: 10px;
    margin: 10px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(239, 177, 239, 0.1);
    background-color: #fff;
    text-align: left;
}

.music-player__inner {
    display: flex;
    padding: 20px;
    margin: 10px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(239, 177, 239, 0.1);
    background-color: #fff4fc;
    text-align: left;
}

.music-player__audio {
    flex: 1;
    flex-direction: column;
    justify-content: left;
}

.music-player__playlist {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

/* ===== REPRODUCTOR DE AUDIO DE CODEPIN===== */

.audio-player {
    background: linear-gradient(135deg, #ff7abc, rgb(238, 127, 255));
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.3);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
}

.play-pause-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.play-pause-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.time-display {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    min-width: 80px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.volume-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.volume-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1); /* Hace la imagen blanca */
    transition: all 0.3s ease;
}

.volume-btn:hover .volume-icon {
    transform: scale(1.1);
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Estado activo del reproductor */
.audio-player.playing .play-icon {
    display: none;
}

.audio-player.playing .pause-icon {
    display: inline !important;
}


/* ===== OPCIONES DE AGREGAR ===== */
.add-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin: 2rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.add-option__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
}

.add-option__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.add-option__desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal--active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.modal__content {
    background: white;
    border-radius: 1rem;
    width: min(90%, 500px);
    max-height: 100vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e2e2;
}

.modal__title {
    margin: 0;
    color: #333;
}

.modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.modal__body {
    padding: 1.5rem;
    text-align: left;
    gap: 5px;
}

.modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e2e2e2;
}

/* ===== UPLOAD DE ARCHIVOS ===== */
.file-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.file-upload__input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload__button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.file-upload:hover .file-upload__button {
    border-color: #FF0080;
    color: #FF0080;
}

/* ===== ANIMACIONES ===== */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== MODAL DE COMPARTIR JARDÍN ===== */


.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.share-modal--active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.share-modal__backdrop {
    background: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.share-modal__content {
    background: white;
    border-radius: 1rem;
    width: min(90%, 550px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

.share-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e2e2;
}

.share-modal__header__left {
    display: flex;
    flex-direction:space-between;
    align-items: center;
    gap: 10px;
}

.share-modal__header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.share-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.share-modal__close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.share-modal__body {
    padding: 1.5rem;
    text-align: left;
}

.share-modal__body p {
    margin: 0 0 1.5rem 0;
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

.share-modal__body__left{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e2e2;
}

/* Pestañas del modal */
.share-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.share-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-tab:hover {
    color: #FF0080;
}

.share-tab--active {
    color: #FF0080;
    border-bottom-color: #FF0080;
    font-weight: 600;
}

/* Contenido de las pestañas */
.share-tab-content {
    display: none;
}

.share-tab-content--active {
    display: block;
}

/* Sección de enlace directo */
.share-link-section {
    text-align: center;
    padding: 1rem 0;
}

.share-access-code {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.share-access-code h4 {
    text-align:left;
    padding:0 0..5rem;
    margin: 0 0 0.5rem 0;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
}

.share-code-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF0080;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    margin: 0.5rem 0;
}

.share-generate-link {
    display: inline-block;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    transition: color 0.2s ease;
}

.share-generate-link:hover {
    color: #FF0080;
    text-decoration: underline;
}

.share-direct-link {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.share-direct-link h4 {
    margin: 0 0 0.5rem 0;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
}

.share-url-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    background: white;
    color: #666;
}

.share-url-input:focus {
    outline: none;
    border-color: #FF0080;
    box-shadow: 0 0 0 3px rgba(255, 0, 128, 0.1);
}

/* Sección de código QR */
.share-qr-section {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.share-qr-section h4 {
    margin: 0 0 0.5rem 0;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
}

#qr-container {
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #ddd;
}

#qr-container img {
    border: 1px solid #ddd;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: white;
    margin: 0.5rem 0;
}

/* Sección de estadísticas */
.share-stats {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.share-stats h4 {
    margin: 0 0 0.5rem 0;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
}

.share-stats-content {
    margin-top: 0.5rem;
}

.share-stats-content p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

#qr-container p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 0.85rem;
}

/* Botones del modal */
.share-buttons {
    display: flex;
    gap: 0.75rem;
    margin: 0;
    justify-content: center;
}

.share-button {
    flex: 1;
    max-width: 200px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e2e2;
    border-radius: 0.5rem;
    background: white;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.share-button:hover {
    border-color: #FF0080;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 128, 0.15);
}

.share-button--primary {
    background: linear-gradient(111deg, #FF0080 10.49%, #D0F 95.51%);
    color: white;
    border: none;
}

.share-button--primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 128, 0.3);
}

/* Sección de compartir vía */
.share-via-section {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.share-via-section h4 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.share-via-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.share-via-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e2e2;
    border-radius: 0.5rem;
    background: white;
    color: #666;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-via-button:hover {
    border-color: #FF0080;
    color: #FF0080;
    transform: translateY(-1px);
}

/* Modal de notificación de importación */
.import-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 2px solid #4CAF50;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 10000;
    max-width: 320px;
    animation: slideInRight 0.3s ease;
}

.notification-content h3 {
    margin: 0 0 0.75rem 0;
    color: #4CAF50;
    font-size: 1.1rem;
    font-weight: 600;
}

.notification-content p {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-close {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: #45a049;
    transform: translateY(-1px);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ===== BOTÓN DE CERRAR SESIÓN ===== */
.logout-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.button-logout {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button-logout:hover {
    background: rgba(220, 38, 38, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.button-logout:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===================================================================================== */
/* ===================================================================================== */
/* ===================================================================================== */

/* Tema Azul */

body.theme-blue {
    background: linear-gradient(to bottom, #b3c6ff 0%, #e6f0ff 100%);
}
body.theme-blue .button--theme[data-theme="blue"] {
    background: #0f73ff;
    color: #fff;
    border-color: #00558e;
}

/* Navegación - azul */
body.theme-blue .nav {
    border: 2px solid rgba(34, 87, 122, 0.2);
}

body.theme-blue .nav__item {
    color: #22577a;
}

body.theme-blue .nav__item:hover {
    background-color: #0f73ff;
    color: white;
}

body.theme-blue .nav__item--active {
    background-color: rgba(34, 87, 122, 0.2);
    color: #22577a;
    font-weight: 600;
}

/* ===================================================================================== */
/* ===================================================================================== */
/* ===================================================================================== */

/* Tema Verde */

body.theme-green {
    background: linear-gradient(to bottom, #b2f7c1 0%, #e6ffe6 100%);
}
body.theme-green .button--theme[data-theme="green"] {
    background: #1abc1a;
    color: #fff;
    border-color: #388e3c;
}

/* Navegación - verde */
body.theme-green .nav {
    border: 2px solid rgba(56, 142, 60, 0.2);
}

body.theme-green .nav__item {
    color: #388e3c;
}

body.theme-green .nav__item:hover {
    background-color: #1abc1a;
    color: white;
}

body.theme-green .nav__item--active {
    background-color: rgba(56, 142, 60, 0.2);
    color: #388e3c;
    font-weight: 600;
}

/* ===================================================================================== */
/* ===================================================================================== */
/* ===================================================================================== */

/* Tema Rosado */

body.theme-default {
    background: linear-gradient(to bottom, #ffd1eb 0%, #e0eaff 100%);
}
body.theme-default .button--theme[data-theme="default"] {
    background: #ff4b81;
    color: #fff;
    border-color: #e75480;
}

/* Navegación - rosa (default) */
body.theme-default .nav {
    border: 2px solid rgba(231, 84, 128, 0.2);
}

body.theme-default .nav__item {
    color: #e75480;
}

body.theme-default .nav__item:hover {
    background-color: #ff4b81;
    color: white;
}

body.theme-default .nav__item--active {
    background-color: rgba(231, 84, 128, 0.2);
    color: #e75480;
    font-weight: 600;
}

/* Responsive para modales de compartir */
@media (max-width: 768px) {
    .share-modal__content {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
    }
    
    .share-tabs {
        flex-wrap: wrap;
    }
    
    .share-tab {
        min-width: 50%;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-button {
        max-width: none;
    }
    
    .share-via-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .import-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .share-code-display {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 780px) {
    .page {
        margin-top: 60px;
        padding: 10px;
    }

    .heading--large {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .icon {
        font-size: 3em;
    }

    .form--garden {
        width: 95%;
        max-width: none;
        margin: 10px;
        padding: 20px;
    }

    .form {
        width: 95%;
        padding: 15px;
    }

    .form__input {
        height: 45px;
        font-size: 16px;
    }

    .button-group,
    .button-group--container {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }

    .button--primary,
    .button--secondary {
        width: 100%;
        min-width: auto;
        height: 45px;
        font-size: 16px;
    }

    .form__legend {
        font-size: 1.1em;
        margin-bottom: 15px;
    }
}

@media (max-width: 1024px) and (min-width: 780px) {
    .form--garden {
        width: 90%;
    }

    .form {
        width: 60%;
    }

    .button--primary,
    .button--secondary {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .add-options {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .button--add-option {
        padding: 1rem;
    }

    .add-option__icon {
        font-size: 2rem;
    }

    .modal__content {
        width: 95%;
        margin: 1rem;
    }

    .modal__footer {
        flex-direction: column-reverse;
    }

    .modal__footer .button {
        width: 100%;
    }

    .nav {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .nav__item {
        flex-direction: column;
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .nav__icon {
        font-size: 1.2rem;
    }
}
