@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,800;1,600&family=Inter:wght@400;600&display=swap');

:root {
  --azul-elegante: #1e40af; 
  --texto-oscuro: #1e293b; /* Texto un poco más oscuro para mejor contraste */
  --gris-claro: #f1f5f9;
  --amarillo-suave: #fef08a;
}

html {
    font-size: 62.5%;
    line-height: 1.6; 
    font-family: 'Inter', Arial, sans-serif;
    padding: 0 20px;
    color: var(--texto-oscuro);
}

::-moz-selection { background: var(--amarillo-suave); color: #000; }
::selection { background: var(--amarillo-suave); color: #000; }

hr { display: block; height: 1px; border: 0; border-top: 1px solid #cbd5e1; margin: 4em 0; padding: 0; }
audio, canvas, iframe, img, svg, video { vertical-align: middle; }
fieldset { border: 0; margin: 0; padding: 0; }
textarea { resize: vertical; }

.browserupgrade { margin: 0.2em 0; background: #ccc; color: #000; padding: 0.2em 0; }
.show-desktop { display: none; }
@media (min-width: 600px) { .show-mobile { display: none; } .show-desktop { display: inline; } }

html * { box-sizing: border-box; }
body { margin: 0 auto; max-width: 1080px; width: 100%; background-color:#ffffff; }
main { margin: 80px 0 0; }

h1 {
  font-family: 'Playfair Display', serif; 
  font-size: 7rem;
  font-weight: 800;
  color: var(--azul-elegante);
  line-height: 1.1;
  letter-spacing: -0.1rem;
  margin-bottom: 0.2em;
}

/* "Sánchez" ahora es azul */
h1 em { font-style: italic; color: var(--azul-elegante); }

h2 { 
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; 
  font-weight: 600; 
  color: var(--azul-elegante);
  line-height: 1.3;
}

p { font-size: 1.6rem; font-weight: 400; color: var(--texto-oscuro); }

a { color: var(--azul-elegante); text-decoration: none; transition: color 0.2s; }
a:hover { color: #000; }
a p { color: var(--texto-oscuro); }

@media (min-width: 600px) { h1 { font-size: 8.5rem; } }

p.lead { font-size: 1.8rem; margin: 1em 0; color: var(--texto-oscuro); font-weight: 600; } /* Letra de bajada más gruesa */

/* Botón Read More estilo pastilla */
button.read-more {
  background-color: var(--gris-claro);
  border: none;
  border-radius: 20px;
  color: var(--azul-elegante);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  margin: 3rem auto;
  padding: 0.6em 1.6em;
  display: block;
  transition: background-color 0.2s;
}

button.read-more:hover {
  background-color: var(--amarillo-suave);
  color: var(--azul-elegante);
}

.more-text { display: none; flex-direction: column; flex: 1; width: 100%; max-width: none; }
.more-text.is-open { max-height: 300vh; overflow: hidden; }
.more-text__block { max-width: 700px; margin: 0 auto; text-align: left; padding: 0 1rem; }
.more-text__block p { text-align: left; }

.more-text ul { font-size: 1.6rem; padding-left: 0em; list-style-type: none; }
.more-text li { font-size: 1.6rem; color: var(--texto-oscuro); margin-bottom: 0.5em; }
.more-text ul li::before { content: "• "; color: var(--azul-elegante); font-weight: bold; }

.contacts { margin-top: 1rem; margin-bottom: 3rem; }
.contacts p {
  display: inline-block;
  margin: 4px;
  padding: 0.4em 1.2em;
  background-color: var(--gris-claro);
  border-radius: 20px;
  font-size: 1.4rem;
  font-weight: 600;
  transition: background-color 0.2s;
}

.contacts p a { color: var(--azul-elegante); }
.contacts p:hover { background-color: var(--amarillo-suave); }

@media (min-width: 600px) {
  .more-text { flex-direction: row; }
  .more-text__block { flex: 100% 0 0; }
}

main { 
  display: grid; 
  grid-template-columns: 1fr;
  gap: 5rem 3rem; 
}

@media (min-width: 600px) {
   main { grid-template-columns: 1fr 1fr; }
}

main article { display: flex; flex-direction: column; }
main article a { display: flex; flex-direction: column; }

main article a figure {
   order: 1; 
   border: 1px solid var(--azul-elegante); /* Marco azul sutil */
   border-radius: 12px; 
   box-shadow: 0 4px 20px rgba(0,0,0,0.06); 
   margin: 0;
   padding: 0; 
   background-color: #ffffff;
   overflow: hidden; 
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}

main article a:hover figure {
   transform: translateY(-5px);
   box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

main article a h2 { order: 2; margin-top: 1.5rem; margin-bottom: 0.5rem; }
main article p { order: 3; margin-top: 0; color: var(--texto-oscuro); font-weight: 400; } /* Textos más oscuros y firmes */

main article figure.autoscroll { width: 100%; height: 0; padding-bottom: 58.33333%; overflow: hidden; background-color: white; }
main article figure img { max-width: 100%; height: auto; display: block; }
main article figure.autoscroll img { animation: slide-top 8s infinite; }
main article video { border-radius: 12px; border: 1px solid var(--azul-elegante); width: 100%; height: auto; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }

/* La animación de la manito */
.wave {
  display: inline-block;
  animation: wave-animation 2.5s infinite;
  transform-origin: 70% 70%;
}
@keyframes wave-animation {
  0% { transform: rotate( 0.0deg) }
  10% { transform: rotate(14.0deg) }
  20% { transform: rotate(-8.0deg) }
  30% { transform: rotate(14.0deg) }
  40% { transform: rotate(-4.0deg) }
  50% { transform: rotate(10.0deg) }
  60% { transform: rotate( 0.0deg) }
  100% { transform: rotate( 0.0deg) }
}

@-webkit-keyframes slide-top {
 0% { -webkit-transform: translateY(300px); transform: translateY(300px); }
 18%, 20% { -webkit-transform: translateY(0); transform: translateY(0); }
 38%, 40% { -webkit-transform: translateY(-25%); transform: translateY(-25%); }
 58%, 60% { -webkit-transform: translateY(-50%); transform: translateY(-50%); }
 78%, 80% { -webkit-transform: translateY(-75%); transform: translateY(-75%); }
 98%, 100% { -webkit-transform: translateY(-100%); transform: translateY(-100%); }
}

@keyframes slide-top {
 0% { transform: translateY(300px); }
 18%, 20% { transform: translateY(0); }
 38%, 40% { transform: translateY(-25%); }
 58%, 60% { transform: translateY(-50%); }
 78%, 80% { transform: translateY(-75%); }
 98%, 100% { transform: translateY(-100%); }
}

.hidden { display: none !important; }
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; white-space: nowrap; }
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; white-space: inherit; }
.invisible { visibility: hidden; }
.clearfix:before, .clearfix:after { content: " "; display: table; }
.clearfix:after { clear: both; }

@media print {
    *, *:before, *:after { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
    a, a:visited { text-decoration: underline; }
    a[href]:after { content: " (" attr(href) ")"; }
    abbr[title]:after { content: " (" attr(title) ")"; }
    a[href^="#"]:after, a[href^="javascript:"]:after { content: ""; }
    pre { white-space: pre-wrap !important; }
    pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
    thead { display: table-header-group; }
    tr, img { page-break-inside: avoid; }
    p, h2, h3 { orphans: 3; widows: 3; }
    h2, h3 { page-break-after: avoid; }
}