/*
Theme Name: Cora Fisioterapia Senior
Description: Tema personalizado para Cora Fisioterapia Senior - Clínica de fisioterapia especializada en atención a personas mayores
Version: 1.0.0
Author: Cora Fisioterapia
Text Domain: cora-fisioterapia
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* CSS Custom Properties */
:root {
  --color-primary: #54cced;
  --color-primary-dark: #277b92;
  --color-secondary: #05394d;
  --color-borders: #d1e3e8;
  --color-card-text: #277b92;
  --color-accent: #4cbbda;
  --color-accent-dark: #000d8a;
  --color-black: 15, 18, 25;
  --color-gray: 96, 115, 159;
  --color-gray-light: 229, 233, 240;
  --color-gray-dark: 34, 41, 57;
  --color-gray-gradient: rgba(var(--color-gray-light), 50%), #fff;
  --box-shadow: 0 2px 6px rgba(var(--color-gray), 25%),
    0 8px 24px rgba(var(--color-gray), 33%),
    0 16px 32px rgba(var(--color-gray), 33%);
}

/* Font Faces */
@font-face {
  font-family: "Avenir";
  src: url("./assets/fonts/AVENIRLTSTD-ROMAN.OTF") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir";
  src: url("./assets/fonts/AVENIRLTSTD-BLACK.OTF") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir";
  src: url("./assets/fonts/AVENIRLTSTD-BOOK.OTF") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ricordo";
  src: url("./assets/fonts/RICORDO-REGULAR.TTF") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ricordo";
  src: url("./assets/fonts/RICORDO-BOLD.TTF") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ricordo";
  src: url("./assets/fonts/RICORDO-THIN.TTF") format("opentype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ricordo";
  src: url("./assets/fonts/RICORDO-EXTRALIGHT.OTF") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ricordo";
  src: url("./assets/fonts/RICORDO-LIGHT.TTF") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ricordo";
  src: url("./assets/fonts/RICORDO-MEDIUM.TTF") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ricordo";
  src: url("./assets/fonts/RICORDO-SEMIBOLD.TTF") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ricordo";
  src: url("./assets/fonts/RICORDO-EXTRABOLD.TTF") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ricordo";
  src: url("./assets/fonts/RICORDO-BLACK.TTF") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Base Styles */
body {
  font-family: "Avenir", sans-serif;
  margin: 0;
  padding: 0;
  text-align: left;
  background: linear-gradient(var(--color-gray-gradient)) no-repeat;
  background-size: 100% 600px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: var(--color-primary-dark);
  font-size: 20px;
  line-height: 1.7;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  min-height: 90dvh;
}

@media (min-width: 1024px) {
  main {
    margin: 2.5rem auto;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Ricordo", serif;
  margin: 0 0 0.5rem 0;
  color: var(--color-secondary);
  line-height: 1.2;
}

h1 {
  font-size: 3.052em;
}

h2 {
  font-size: 2.441em;
}

h3 {
  font-size: 1.953em;
}

h4 {
  font-size: 1.563em;
}

h5 {
  font-size: 1.25em;
}

strong,
b {
  color: var(--color-secondary);
  font-weight: 700;
}

a {
  color: var(--color-accent);
  text-decoration: none !important;
  transition: all 0.3s ease;
}

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

p {
  margin-bottom: 1em;
  font-size: 20px;
  color: var(--color-primary-dark);
}

.prose p {
  margin-bottom: 2em;
}

textarea {
  width: 100%;
  font-size: 16px;
}

input {
  font-size: 16px;
}

table {
  width: 100%;
}

img {
  object-fit: cover;
}

code {
  padding: 2px 5px;
  background-color: rgb(var(--color-gray-light));
  border-radius: 2px;
}

pre {
  padding: 1.5em;
  border-radius: 8px;
}

pre > code {
  all: unset;
}

blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 0 0 0 20px;
  margin: 0px;
  font-size: 1.333em;
}

hr {
  border: none;
  border-top: 1px solid rgb(var(--color-gray-light));
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease-in-out;
  background: #ffffff;
  width: 100dvw;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.header-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0.75rem 2rem;
}

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

/* Logo Styles */
.site-logo--mobile {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.site-logo--mobile img {
  height: 100%;
  width: 50%;
}

.site-logo--desktop {
  display: none;
}

@media (min-width: 1024px) {
  .site-logo--mobile {
    display: none;
  }
  .site-logo--desktop {
    display: block;
  }
}

.site-logo--desktop img {
  height: 3.25rem;
  width: auto;
}

/* Navigation Styles */
.header-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-navigation .main-navigation {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .header-navigation .main-navigation {
    display: flex;
  }
}
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  margin: 0;
}

.main-navigation a {
  color: #ffffff;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-navigation a:hover {
  color: var(--color-secondary);
}

/* WhatsApp Button Styles */
.header-cta--desktop {
  display: none;
}

@media (min-width: 1024px) {
  .header-cta--desktop {
    display: block;
  }
}

.header-cta--desktop .cta-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.5rem;
  justify-content: center;
  background: var(--color-primary);
  color: #ffffff !important;
  font-size: 1.25rem;
  font-weight: 500;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  gap: 0.75rem;
}

.header-cta--desktop .cta-button:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: scale(1.05);
}

.header-cta--desktop .cta-button .whatsapp-icon {
  width: 1.75rem;
  height: 1.75rem;
  margin-right: 0.75rem;
}

/* Mobile Menu Styles */
#mobile-menu-button {
  display: block;
  padding: 0.5rem;
  color: var(--color-secondary);
  transition: color 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  #mobile-menu-button {
    display: none;
  }
}

#mobile-menu-button:hover {
  color: var(--color-primary);
}

#mobile-menu-button > svg {
  width: 24px;
  height: 24px;
}

#mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 40;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

@media (min-width: 1024px) {
  #mobile-menu-drawer {
    display: none;
  }
}

#mobile-menu-drawer.is-open {
  transform: translateX(0);
}

#mobile-menu-drawer.is-closed {
  transform: translateX(100%);
}

#mobile-menu-drawer .mobile-menu-drawer-content {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: #ffffff;
  width: 100dvw;
}

#mobile-menu-drawer .mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  height: 64px;
}

#mobile-menu-drawer .mobile-menu-header button {
  padding: 0.5rem;
  color: var(--color-secondary);
  transition: color 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}
#mobile-menu-drawer .mobile-menu-header button:hover {
  color: var(--color-primary);
}

#mobile-menu-drawer .mobile-menu-header button svg {
  width: 24px;
  height: 24px;
}

#mobile-menu-drawer .site-logo--mobile {
  padding-left: 1rem;
}

#mobile-menu-drawer .main-navigation {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  color: var(--color-secondary);
}

#mobile-menu-drawer .main-navigation ul {
  flex-direction: column;
  justify-content: center;
}

#mobile-menu-drawer .main-navigation li {
  text-align: center;
}

#mobile-menu-drawer .main-navigation a {
  font-size: 1.25rem;
  color: var(--color-secondary);
}

#mobile-menu-drawer .main-navigation a:hover {
  color: var(--color-primary);
}

#mobile-menu-drawer .cta-button-mobile {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background: #ffffff;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

#mobile-menu-drawer .cta-button-mobile a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  width: 100%;
  background: #54cced;
  background: linear-gradient(
    90deg,
    rgba(84, 204, 237, 1) 0%,
    rgba(5, 57, 77, 1) 100%
  );
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 500;
  border-radius: 0.75rem;
}

#mobile-menu-drawer .cta-button-mobile a:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: scale(1.05);
}

#mobile-menu-drawer .cta-button-mobile a svg {
  width: 1.75rem;
  height: 1.75rem;
  margin-right: 0.75rem;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background: var(--color-gray-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2 {
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--color-card-text);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: #ffffff;
}

.contact-form {
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-secondary);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--color-borders);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Footer */
.site-footer {
  background: var(--color-secondary);
  color: #ffffff;
  padding: 30px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-content .footer-section:last-child {
  text-align: right;
}

.footer-section--center {
  text-align: center;
}

.schedule-info {
  margin-top: 1rem;
}

.schedule-info p {
  margin-bottom: 0.5rem;
  color: #bdc3c7;
}

.schedule-info p strong {
  color: #ffffff;
  font-weight: 600;
}

.schedule-note {
  font-size: 0.9em;
  font-style: italic;
  opacity: 0.8;
}

.footer-content-bottom {
  padding: 1.5rem;
}

.footer-content-bottom .social-links {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.footer-section h3 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: #bdc3c7;
  margin-bottom: 0.5rem;
  display: block;
}

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

.footer-logo {
  height: 100px;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 2rem;
  text-align: center;
  color: #bdc3c7;
}

/* Utility Classes */
.gradient-primary-to-secondary {
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
}

@media (min-width: 1024px) {
  .site-header {
    background: #ffffff;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(83, 209, 237, 1) 65%,
      rgba(5, 57, 77, 1) 100%
    );
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
    height: fit-content;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #e8f4fd 0%, #2c5f2d 100%);
    box-shadow: var(--box-shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }

  .menu-wrapper.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .main-navigation li {
    width: 100%;
    text-align: center;
  }

  .main-navigation a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-navigation a:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .logo-title {
    font-size: 1.5rem;
  }

  .logo-subtitle {
    font-size: 0.8rem;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }

  .logo-circle {
    width: 25px;
    height: 25px;
  }

  .logo-arms {
    width: 32px;
    height: 20px;
  }

  .logo-arms::before,
  .logo-arms::after {
    width: 12px;
    height: 12px;
    top: -6px;
  }

  .logo-arms::before {
    left: -4px;
  }

  .logo-arms::after {
    right: -4px;
  }

  .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .whatsapp-icon {
    width: 18px;
    height: 18px;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-content .footer-section:last-child {
    text-align: center;
  }

  .footer-section--center {
    order: -1;
  }

  body {
    font-size: 18px;
  }

  main {
    margin-top: 3rem;
    padding: 1em;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }
}

.home .entry-header {
  display: none;
}

.about-image {
  max-width: 500px;
  position: relative;
  place-self: center;
  width: 12rem;
  margin-top: 3rem !important;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-image::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 3px solid var(--color-primary);
  border-radius: 12px;
  opacity: 0.3;
  z-index: -1;
}

@media (min-width: 768px) {
  .about-image {
    margin-top: 7rem !important;
  }
}

#g-review .swiper .slider-prev-next-wrapper .grwp-swiper-button-next,
#g-review .swiper .slider-prev-next-wrapper .grwp-swiper-button-prev {
  border-color: var(--color-primary);
}

#g-review.layout_style-7 .g-review .gr-inner-header p a {
  color: var(--color-secondary);
}

#g-review .swiper .swiper-wrapper .swiper-slide .g-review {
  border: 2px solid var(--color-borders);
  transition: all 0.3s ease;
}

#g-review .swiper .swiper-wrapper .swiper-slide .g-review:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.svg-inline--fa {
  height: 2rem;
}

.wp-block-buttons .wp-block-button__link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: linear-gradient(
    90deg,
    var(--color-primary, #54cced) 0%,
    var(--color-secondary, #374151) 100%
  );
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px;
}

.wp-block-buttons .wp-block-button__link:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: scale(1.05);
}

/* Screen Reader Only */
.sr-only {
  border: 0;
  padding: 0;
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
}
/* Improve color contrast for better accessibility */
.time,
.gr-stars .time,
span.time {
  color: #666666 !important; /* Improved contrast ratio from 2.09 to 4.5+ */
}

/* Improve focus indicators */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #54cced;
  outline-offset: 2px;
}

/* Ensure interactive elements are keyboard accessible */
button,
a,
input,
textarea,
select {
  min-height: 44px; /* Minimum touch target size */
  min-width: 44px;
}

/* Ensure proper heading hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
}

/* Improve link contrast */
a {
  color: #277b92;
  text-decoration: underline;
}

a:hover,
a:focus {
  color: #54cced;
}

.has-text-align-center {
  text-align: center;
}
