/*
Theme Name:        Porfolio Julián Juan
Version:           1.0.0
Author:            Julián Juan
Author URI:        https://julianjuan.com
Tested up to:      6.4
Requires at least: 6.2
Requires PHP:      7.4
License:           GNU General Public License v2.0 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
*/

/* clases Personalizadas */

header {
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 2px #9c5ce907;
}

.d-flex {
  display: flex !important;
}

.d-flex-column {
  display: flex !important;
  flex-direction: column !important;
}

.j-content-center {
  justify-content: center !important;
}

.margin-none {
  margin: 0px !important;
}

.columns-center {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  text-align: center;
}

.center-link {
  display: block;
  width: max-content;
  margin: 0 auto;
}

.padding-section {
  padding: 10% 10% !important;
}

.gap {
  gap: 5px !important;
}

/** Clases de wordpress pisadas **/
.wp-block-template-part {
  margin: 0 !important;
}

.wp-block-columns {
  align-items: stretch; /* todas las columnas igual de altas */
}

/* Leer mas de "query Loop" */
.read-more {
  transition: color 0.4s ease;
}

.read-more:hover {
  cursor: pointer;
  color: var(--wp--preset--color--accent);
}

/** Tarjeta de proyecto **/

.proyect-card {
  position: relative;
  top: -48px;
  margin-bottom: 48px;
}

/** Tarjeta de servicio **/

.service-card__CTA {
  cursor: pointer;
}

/** Formulario de contacto **/

.contact-form__wrapper {
  display: flex;
  justify-content: center;
  background: #fff;
  padding: 24px 16px;
  margin: 24px 0px;
  border-radius: 4px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70%;
  max-width: 600px;
  gap: 16px;
  box-sizing: border-box;
}

.contact-form__title {
  text-align: center !important;
  color: var(--wp--preset--color--dark-text) !important;
  font-weight: 400 !important;
  font-size: 1.4rem !important;
}

.contact-form__options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
}

.contact-form__option {
  border: 1px solid var(--wp--preset--color--accent);
  color: var(--wp--preset--color--dark-text-light);
  background: #fff;
  padding: 8px 18px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
  text-align: center;
  width: 100%;
}

.contact-form__option--selected {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--light-text);
}

.contact-form__option:focus-visible {
  outline: 2px solid var(--wp--preset--dark-accent);
  outline-offset: 2px;
}

.contact-form__input {
  width: 90% !important;
  border: none;
  font-size: 16px;
  border-bottom: 2px solid var(--wp--preset--color--accent);
  margin: 10px;
}

.contact-form__input:focus {
  outline: none;
  border-bottom: 3px solid var(--wp--preset--color--accent);
}

.contact-form__submit-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.contact-form__submit {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--light-text);
  width: 40%;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.contact-form__message-success {
  padding: 12px;
  font-weight: 600;
  color: var(--wp--preset--color--dark-text-light);
  font-size: 16px;
}

.contact-form__message-error {
  padding: 12px;
  font-weight: 600;
  color: #dd2e44;
  font-size: 16px;
}

/** Responsive **/

/* Teléfonos pequeños (hasta 576px) */
@media (max-width: 575.98px) {
  .hidden-on-mobile {
    display: none !important;
  }
  .gap-proyect-card {
    gap: 5px !important;
  }

  .padding-header {
    padding: 5% !important;
  }

  .contact-section {
    padding: 10% !important;
  }

  .contact-form__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 24px 16px;
    width: 95%;
    border-radius: 4px;
  }

  .contact-form__options {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .blog-container {
    padding: 5% !important;
  }

  .blog-card {
    width: 100% !important;
    padding: 0 5%;
  }

  .hero-container {
    align-items: center !important;
  }

  .hero-intro-mob {
    text-align: center !important;
  }
}

/* Teléfonos medianos a grandes (≥576px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hidden-on-mobile {
    display: none !important;
  }

  .gap-proyect-card {
    gap: 5px !important;
  }

  .padding-header {
    padding: 5% !important;
  }

  .hero-intro-mob {
    text-align: center !important;
  }
}

/* Tablets (≥768px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hidden-on-desktop {
    display: none !important;
  }

  .services-container {
    padding: 10% 12% !important;
  }
}

/* Escritorios pequeños (≥992px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hidden-on-desktop {
    display: none !important;
  }
}

/* Escritorios grandes (≥1200px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .hidden-on-desktop {
    display: none !important;
  }

  .contact-form__wrapper {
    display: flex;
    justify-content: center;
    background: #fff;
    padding: 24px 16px;
    margin: 24px 0px;
    border-radius: 4px;
    max-width: 600px;
  }
}

/* Escritorios extra grandes (≥1400px) */
@media (min-width: 1400px) {
  .hidden-on-desktop {
    display: none !important;
  }

  .padding-header {
    padding: 2% 10% !important;
  }
  .padding-section {
    padding: 5% 20% !important;
  }

  .contact-form__wrapper {
    display: flex;
    justify-content: center;
    background: #fff;
    padding: 24px 16px;
    margin: 24px 0px;
    border-radius: 4px;
    max-width: 600px;
  }
}
