:root {
  color-scheme: light;
  color: #161a29;
  background: #fcfcfd;
  font: 1.0625rem/1.65 "Instrument Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
nav, main, footer { max-width: 72rem; margin: auto; padding: 1.25rem clamp(1rem, 4vw, 3rem); }
header { border-bottom: 1px solid #e8e9ef; background: white; }
nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
a { color: #334cb7; text-underline-offset: .2em; }
a:focus-visible { outline: .16rem solid #334cb7; outline-offset: .25rem; }
.brand { font-weight: bold; text-decoration: none; letter-spacing: .12em; margin-right: auto; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .6em; }
h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: normal; font-size: clamp(2.65rem, 6vw, 5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; color: #505568; }
.intro { font-size: 1.25rem; }
.hero { min-height: 75svh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem 0; text-align: center; }
.hero h1 { margin: .85rem 0 1.3rem; font: 500 clamp(1.8rem, 4.5vw, 3rem)/1.12 "Instrument Sans", Arial, sans-serif; letter-spacing: -.035em; }
.hero h1 span { display: block; color: #245cf2; }
.cofi-mark { position: relative; width: 3rem; height: 3rem; }
.cofi-mark span { position: absolute; inset: 0; transform: rotate(var(--angle)); }
.cofi-mark span::before { content: ""; position: absolute; left: 1.23rem; top: .06rem; width: .54rem; height: .92rem; border-radius: 65%; background: var(--color); transform: rotate(24deg); }
.cofi-mark span:nth-child(1) { --angle: 0deg; --color: #8c51fc; }
.cofi-mark span:nth-child(2) { --angle: 60deg; --color: #6359fc; }
.cofi-mark span:nth-child(3) { --angle: 120deg; --color: #6255fb; }
.cofi-mark span:nth-child(4) { --angle: 180deg; --color: #9854fa; }
.cofi-mark span:nth-child(5) { --angle: 240deg; --color: #c24cf5; }
.cofi-mark span:nth-child(6) { --angle: 300deg; --color: #d354f4; }
.cofi-chat { width: min(100%, 35rem); text-align: left; background: white; border: 1px solid #e8e9f0; border-radius: 1.15rem; box-shadow: 0 .4rem 1.5rem #262d5010; }
.cofi-chat-header { padding: .95rem 1.15rem; border-radius: 1.15rem 1.15rem 0 0; }
.cofi-chat-header h2 { margin: 0; font-size: 1rem; }
.cofi-chat-body { min-height: 8rem; padding: 1.15rem; }
.cofi-message { display: inline-block; max-width: 29rem; margin: 0; padding: .75rem 1rem; background: #f0f2fb; border-radius: .2rem 1rem 1rem; color: #22283d; }
.cofi-composer { margin: 0 1.15rem 1.15rem; }
.cofi-composer label { display: block; margin-bottom: .3rem; font-size: .9rem; font-weight: 600; }
.cofi-composer textarea { display: block; width: 100%; min-height: 4.5rem; padding: .7rem .85rem; resize: vertical; font: inherit; color: inherit; background: #fcfcfd; border: 1px solid #c9cddd; border-radius: .75rem; }
.cofi-composer textarea:focus-visible { outline: .16rem solid #334cb7; outline-offset: .15rem; }
.cofi-note { margin: .6rem 0 0; font-size: .85rem; }
.cta { display: inline-block; padding: .65rem 1rem; background: #245cf2; color: white; border-radius: .4rem; font-weight: bold; }
main > section, .detail > section { margin: 2.25rem 0; }
.services-banner { position: relative; isolation: isolate; display: flex; align-items: end; min-height: 13rem; padding: clamp(1.25rem, 4vw, 2.75rem); overflow: hidden; border-radius: .6rem; background: #eae5de; }
.services-banner::before { content: ""; position: absolute; inset: 0 0 0 auto; width: min(100%, 25rem); background: url("fotografias-servicios.png") 100% 100% / 400% 200%; opacity: .57; mask-image: linear-gradient(to right, transparent, #000 55%); z-index: -1; }
.services-banner h2 { margin: 0; color: #211b1b; font: 700 clamp(2.1rem, 6vw, 3.7rem)/1 "Archivo Narrow", "Arial Narrow", Arial, sans-serif; }
.services-intro { max-width: 40rem; padding: 1.4rem 0 .25rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.service-card h3 { margin: 0 0 .65rem; }
.service-card h3 a { display: flex; flex-direction: column; overflow: hidden; border-radius: .55rem; color: white; text-decoration: none; }
.service-photo { display: block; aspect-ratio: 1; background: #eae5de url("fotografias-servicios.png") no-repeat; background-size: 400% 200%; }
.service-name { display: flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .55rem .75rem; background: #730e1a; text-align: center; }
.service-card a:hover .service-name { background: #59101a; text-decoration: underline; }
.service-card p { font-size: .92rem; }
.detail { max-width: 48rem; margin: 1rem auto; }
.detail h1 { margin-top: .5em; }
footer { color: #505568; border-top: 1px solid #e8e9ef; }
@media (max-width: 45rem) { .hero { min-height: 67svh; } }
@media (max-width: 45rem) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
@media (max-width: 28rem) { .cards { grid-template-columns: 1fr; } }
