/*
Theme Name: Christoph Mica Theme
Author: Tu Nombre
Description: Un tema personalizado para el fotgrafo Christoph Mica, con contenido dinmico gestionado por Pods y galeras de NextGEN.
Version: 1.0
Text Domain: christoph-mica-theme
*/

/* Variables CSS */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #666666;
  --accent-color: #c9a961;
  --accent-color-low: #c9aa618a;
  --background-color: #fafafa;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --border-color: #e8e8e8;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 10px 40px rgba(0, 0, 0, 0.15);
  --transition-speed: 0.3s;
}

/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--primary-color);
  background-color: var(--background-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--secondary-color);
}

.container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes slideIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }

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

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

.slide-in {
  animation: slideIn 0.6s ease-out;
}

/* Header */
header {
  background-color: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-light);
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  position: relative;
  transition: var(--transition-speed);
}

.logo a {
  text-decoration: none;
  color: inherit;
}

.logo::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-speed);
}

.logo:hover::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Selector de idioma */
.language-selector {
  display: flex;
  gap: 5px;
  padding: 5px;
  background-color: var(--light-gray);
  border-radius: 30px;
}

.language-btn {
  background: none;
  border: none;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary-color);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all var(--transition-speed);
  letter-spacing: 0.5px;
}

.language-btn.active {
  background-color: var(--white);
  color: var(--primary-color);
  box-shadow: var(--shadow-light);
  font-weight: 600;
}

.language-btn:hover:not(.active) {
  color: var(--primary-color);
}

/* Iconos de redes sociales */
.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons a {
  color: var(--secondary-color);
  font-size: 18px;
  transition: all var(--transition-speed);
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.social-icons a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--accent-color);
  transform: scale(0);
  transition: transform var(--transition-speed);
  z-index: -1;
}

.social-icons a:hover {
  color: var(--white);
  transform: translateY(-3px);
}

.social-icons a:hover::before {
  transform: scale(1);
}

.social-icons button {
  border: none;
  color: var(--secondary-color);
  font-size: 18px;
  transition: all var(--transition-speed);
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.social-icons button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--accent-color);
  transform: scale(0);
  transition: transform var(--transition-speed);
  z-index: -1;
}

.social-icons button:hover {
  color: var(--white);
  transform: translateY(-3px);
}

.social-icons button:hover::before {
  transform: scale(1);
}

/* Pestañas */
.tabs {
  display: flex;
  justify-content: center;
  margin: 24px 0 40px;
  position: relative;
}

.tabs::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background-color: var(--border-color);
}

.tab-button {
  background: none;
  border: none;
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--secondary-color);
  cursor: pointer;
  padding: 15px 30px;
  margin: 0 10px;
  position: relative;
  transition: all var(--transition-speed);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 14px;
}

.tab-button.active {
  color: var(--primary-color);
}

.tab-button.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
}

.tab-button:hover {
  color: var(--primary-color);
}

/* Contenido de las pestañas */
.tab-content {
  display: none;
  padding: 40px 0;
  min-height: 500px;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.6s ease-out;
}

/* Presentación */
.presentation {
  display: flex;
  gap: 80px;
  align-items: center;
  /* max-width: 1000px; */
  /* margin: 0 auto; */
}

/* Sección de Contacto */
.contact-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.contact-title {
  font-size: 36px;
  margin-bottom: 30px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 20px;
  text-align: center;
}

.contact-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

.contact-content {
  text-align: center;
}

.contact-content p {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--secondary-color);
  margin-bottom: 40px;
}

.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background-color: var(--white);
  border-radius: 5px;
  box-shadow: var(--shadow-medium);
}

/* Estilos para Contact Form 7 */
.contact-form-container .wpcf7 {
  margin: 0;
}

.contact-form-container .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form-container .wpcf7-form-control-wrap {
  margin-bottom: 0;
}

.contact-form-container .wpcf7-text,
.contact-form-container .wpcf7-email,
.contact-form-container .wpcf7-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  transition: border-color var(--transition-speed);
}

.contact-form-container .wpcf7-text:focus,
.contact-form-container .wpcf7-email:focus,
.contact-form-container .wpcf7-textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.contact-form-container .wpcf7-textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form-container .wpcf7-submit {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-speed);
  align-self: center;
}

.contact-form-container .wpcf7-submit:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.contact-form-container .wpcf7-response-output {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
}

.contact-form-container .wpcf7-mail-sent-ok {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.contact-form-container .wpcf7-validation-errors {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.profile-image {
  flex: 0 0 350px;
  position: relative;
}

.profile-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: var(--shadow-heavy);
  transition: transform var(--transition-speed);
}

.profile-image:hover img {
  transform: scale(1.02);
}

/* .profile-image::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 2px solid var(--accent-color);
  border-radius: 5px;
  z-index: -1;
  opacity: 0.5;
} */

.bio {
  flex: 1;
}

.bio h2 {
  font-size: 36px;
  margin-bottom: 30px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 20px;
}

.bio h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

.bio p {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--secondary-color);
  margin-bottom: 25px;
}

.bio-highlight {
  font-size: 20px;
  font-weight: 500;
  color: var(--primary-color);
  font-style: italic;
  margin: 30px 0;
  padding-left: 20px;
  border-left: 3px solid var(--accent-color);
}

/* Galerías - Estilo Mosaico Desordenado */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 200px;
  gap: 20px;
  margin-top: 40px;
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  /* box-shadow: var(--shadow-medium); */
  cursor: pointer;
  transition: all var(--transition-speed);
  background-color: transparent;
}

/* Tamaños variables para crear efecto desordenado */
.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.big {
  grid-row: span 2;
  grid-column: span 2;
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  /* box-shadow: var(--shadow-heavy); */
  z-index: 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-speed);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  padding: 30px 20px 20px;
  font-size: 14px;
  transform: translateY(100%);
  transition: transform var(--transition-speed);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-caption h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.gallery-caption p {
  font-size: 13px;
  opacity: 0.8;
  margin: 0;
}

/* Modal para imágenes */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-speed);
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-speed);
}

.modal.show .modal-content {
  transform: scale(1);
}

.modal-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: var(--shadow-heavy);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 40px;
  color: var(--white);
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: all var(--transition-speed);
  z-index: 1001;
}

.close-modal:hover {
  transform: rotate(90deg);
  color: var(--accent-color);
}

/* Footer */
footer {
  margin-top: 100px;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  background-color: var(--white);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer a {
  color: var(--secondary-color);
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-speed);
  position: relative;
}

footer a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: width var(--transition-speed);
}

footer a:hover {
  color: var(--primary-color);
}

footer a:hover::after {
  width: 100%;
}

.copyright {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: var(--secondary-color);
  font-weight: 400;
}

/* Impressum */
.impressum {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 0;
}

.impressum h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 20px;
  text-align: center;
}

.impressum h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

.impressum-section {
  margin-bottom: 40px;
}

.impressum-section h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.impressum-section p {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--secondary-color);
}

.impressum a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.impressum a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.back-button {
  display: block;
  margin: 50px auto 0;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  cursor: pointer;
  border-radius: 30px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
}

.back-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--accent-color);
  transition: left var(--transition-speed);
  z-index: -1;
}

.back-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.back-button:hover::before {
  left: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .presentation {
    flex-direction: column;
    gap: 50px;
    text-align: center;
  }

  .profile-image {
    flex: none;
    max-width: 400px;
  }

  .bio h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .bio-highlight {
    border-left: none;
    border-top: 2px solid var(--accent-color);
    padding-left: 0;
    padding-top: 20px;
  }

  /* Ajustes para galería en tablets */
  .gallery-item.wide {
    grid-column: span 1;
  }

  .gallery-item.big {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .header-content {
    flex-direction: column;
    gap: 20px;
  }

  .header-right {
    gap: 30px;
  }

  .tabs {
    flex-wrap: wrap;
    margin: 40px 0 30px;
  }

  .tab-button {
    padding: 10px 20px;
    font-size: 13px;
    margin: 5px;
  }

  /* Galería móvil más simple */
  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
    gap: 15px;
  }

  .gallery-item.tall,
  .gallery-item.wide,
  .gallery-item.big {
    grid-column: span 1;
    grid-row: span 1;
  }

  .footer-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .close-modal {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 28px;
  }

  .bio h2 {
    font-size: 28px;
  }

  .bio p {
    font-size: 16px;
  }

  .gallery {
    grid-auto-rows: 200px;
  }
}

/* --- Masonry Grid for Pods Galleries --- */
.masonry-grid {
  column-count: 3;
  column-gap: 1.5em;
}

.masonry-grid .gallery-item {
  background-color: transparent;
  display: inline-block;
  margin: 0 0 1.5em;
  width: 100%;
  break-inside: avoid; /* This is key for preventing items from breaking across columns */
}

.masonry-grid .gallery-item img {
  width: 100%;
  height: auto; /* Height must be auto for masonry to work */
  display: block;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.masonry-grid .gallery-item img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for masonry grid */
@media (max-width: 1000px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .masonry-grid {
    column-count: 1;
  }
}
/* --- Modal for Art Detail View --- */
.art-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.art-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.art-modal-content {
  position: relative;
  background-color: #fff;
  margin: auto;
  padding: 0;
  border-radius: 5px;
  max-width: 90%;
  width: 1100px; /* Max width of the modal */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.4s ease;
}

.art-modal.show .art-modal-content {
  transform: scale(1);
}

.art-modal-image-container {
  flex: 2; /* Image takes more space */
  background-color: #f0f0f0;
}

.art-modal-image-container img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 90vh; /* Max height relative to viewport */
  object-fit: contain;
}

.art-modal-info {
  flex: 1; /* Info takes less space */
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.art-modal-info h2 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  margin-bottom: 15px;
}

.art-modal-info p {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  color: #666;
  margin-bottom: 10px;
}

.art-modal-info .art-price {
  font-size: 18px;
  color: var(--primary-color);
  margin-top: 20px;
  margin-bottom: 30px;
}

.close-modal-button {
  color: #fff;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  z-index: 1001;
}

.close-modal-button:hover,
.close-modal-button:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

#modal-contact-button {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.3s ease;
}

#modal-contact-button:hover {
  background-color: var(--accent-color);
  cursor: pointer;
}

/* CV Button */
.cv-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  font-size: 15px;
  margin-top: 25px;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-light);
}

.cv-button:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.cv-button i {
  font-size: 18px;
}

.disabled:hover {
  background-color: var(--accent-color-low) !important;
  cursor: not-allowed !important;
}

/* Responsive adjustments for modal */
@media (max-width: 900px) {
  .art-modal-content {
    flex-direction: column;
    width: 80%;
    max-height: 85vh;
    overflow-y: auto;
  }
  .art-modal-image-container img {
    max-height: 50vh;
  }
  .art-modal-info {
    padding: 30px;
  }
}

@media (max-width: 600px) {
  .art-modal-content {
    width: 95%;
  }
}

/* Fix for galleries with two items */
.gallery--two-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Fix for galleries with three images */
.gallery--three-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Styles for the reintegrated contact form section */
.contact-section-container {
  display: none; /* Oculto por defecto */
  padding: 80px 0;
  background-color: var(--light-gray);
}

.contact-section-container.visible,
.contact-section-container .tab-content.active {
  display: block;
}

.contact-section-container .tab-content {
  display: none;
}

.contact-section-container .tab-content.active {
  display: block;
  animation: fadeIn 0.6s ease-out;
}
