

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f4f8; /* Un fondo suave */
}
.content-section {
    display: none; /* Ocultar secciones por defecto */
    animation: fadeIn 0.5s ease-in-out;
}
.content-section.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.nav-button {
    transition: all 0.3s ease;
}
.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Active Navigation Button Styles */
.nav-button.nav-button-active {
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transform: translateY(-1px) scale(1.02);
    color: white !important; /* Ensure text remains white */
}
.nav-button[data-target="intro"].nav-button-active, 
.nav-button[data-target="intro"].nav-button-active:hover { 
    background-color: #047857 !important; /* emerald-700 darker */
}
.nav-button[data-target="fauna"].nav-button-active,
.nav-button[data-target="fauna"].nav-button-active:hover { 
    background-color: #0284c7 !important; /* sky-700 darker */
}
.nav-button[data-target="ganaderia"].nav-button-active,
.nav-button[data-target="ganaderia"].nav-button-active:hover { 
    background-color: #b45309 !important; /* amber-700 darker */
}
.nav-button[data-target="suelos"].nav-button-active,
.nav-button[data-target="suelos"].nav-button-active:hover { 
    background-color: #4d7c0f !important; /* lime-800 darker */
}
.nav-button[data-target="mapa"].nav-button-active,
.nav-button[data-target="mapa"].nav-button-active:hover { 
    background-color: #4338ca !important; /* indigo-700 darker */
}


.map-container svg path, .map-container svg rect { 
    transition: fill 0.3s ease, transform 0.3s ease; 
}

/* Estilos para el modal del mapa y el modal de zoom de imagen */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7); /* Slightly darker overlay for better focus */
    animation: fadeInModal 0.3s ease-in-out;
}
.modal[aria-hidden="true"] {
    display: none;
}
.modal[aria-hidden="false"] {
    display: flex; /* Use flex to center content for zoom modal */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: auto; /* Default margin for info modal */
    padding: 25px;
    border-radius: 12px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideInModal 0.3s ease-in-out;
    position: relative; /* Needed for absolute positioning of close button */
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInModal {
    from { transform: translateY(-50px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.close-button {
    color: #aaa;
    position: absolute; /* Position close button within modal-content */
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.2s ease;
    z-index: 1010; /* Ensure it's above other modal content */
}
.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

/* Styles for Image Zoom Modal */
.image-zoom-modal-content {
    background-color: transparent; /* No background for the content wrapper itself */
    padding: 0; /* No padding for wrapper, image will fill */
    width: auto; /* Adjust width to content (image) */
    max-width: 90vw; /* Max width of viewport */
    max-height: 90vh; /* Max height of viewport */
    box-shadow: none; /* No card shadow for image zoom */
    display: flex; /* To center the image if it's smaller than max-width/height */
    align-items: center;
    justify-content: center;
}

#zoomedImage {
    display: block;
    max-width: 100%;
    max-height: 100%; /* Image takes full height of its parent */
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); /* Shadow for the image itself */
}

.zoom-close-button {
    color: #fff;
    background-color: rgba(0,0,0,0.4);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1; /* For better vertical centering of '×' */
    font-size: 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    top: 15px; /* Adjust position to be outside image typically */
    right: 15px;
}
.zoom-close-button:hover,
.zoom-close-button:focus {
    background-color: rgba(0,0,0,0.6);
    color: #eee;
}

.sr-only { /* Screen-reader only */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


.card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.card h3 {
    color: #1a535c; 
}
.gemini-button {
    background-color: #ff69b4; 
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.gemini-button:hover {
    background-color: #ff85c4;
}
.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #1a535c; 
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.gemini-output {
    margin-top: 15px;
    padding: 12px;
    background-color: #f3f4f6; 
    border-left-width: 4px;
    border-left-style: solid;
    border-radius: 6px;
    color: #1f2937; 
    font-style: normal; 
    white-space: pre-wrap; 
    line-height: 1.6; 
}

 #introImageContainer {
    width: 100%;
    height: 20rem; 
    margin-top: 1.5rem; 
    border-radius: 0.5rem; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); 
    background-color: #e5e7eb; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; 
    overflow: hidden; 
}
#introImage {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 0.5rem; 
}

.zoomable-image {
    cursor: zoom-in;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.zoomable-image:hover, .zoomable-image:focus {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    outline: 2px solid #3b82f6; /* Focus indicator */
    outline-offset: 2px;
}
