/*
Theme Name: Codeswift
Author: Codeswift
Description: Landing responsive para consultoría IT, desarrollo de software y transformación digital. Contenido editable en el Personalizador y formulario de contacto integrado.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: codeswift
Tags: custom-logo, custom-menu, featured-images, translation-ready, one-column
*/

    :root { --ink: #080b13; --blue: #17536b; --green: #4c9e50; --paper: #f5f9fb; --contact: #adb1b4; }
    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { margin: 0; color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
    button, input, textarea { font: inherit; }
    button, a { -webkit-tap-highlight-color: transparent; }
    button { cursor: pointer; }
    a { color: inherit; }
    :focus-visible { outline: 3px solid #146e8c; outline-offset: 5px; }
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
    .container { width: min(520px, calc(100% - 40px)); margin-inline: auto; }
    main { min-height: calc(100svh - 48px); display: flex; flex-direction: column; }
    .hero { position: relative; min-height: 344px; background: var(--paper); isolation: isolate; overflow: hidden; }
    .header { position: relative; z-index: 2; display: flex; align-items: center; gap: 45px; height: 58px; }
    .brand { display: inline-flex; align-items: center; text-decoration: none; font-size: 21px; letter-spacing: -.7px; }
    .brand svg { width: 33px; height: 37px; margin-right: 2px; }
    .nav-home { color: var(--blue); font-size: 10px; font-weight: 700; text-decoration: none; padding: 12px 0; }
    .hero-copy { position: relative; z-index: 1; width: min(660px, calc(100% - 32px)); margin: 52px auto 0; text-align: center; }
    h1 { margin: 0; font-size: 34px; line-height: 1.02; font-weight: 800; letter-spacing: -.35px; }
    .hero-copy p { margin: 8px 0 15px; font-size: 13px; line-height: 1.2; }
    .button { display: inline-flex; justify-content: center; align-items: center; min-height: 30px; padding: 7px 12px; border: 0; border-radius: 4px; background: linear-gradient(110deg, #58a354, #459c55); color: white; font-size: 12px; line-height: 1.3; font-weight: 700; text-decoration: none; box-shadow: 0 1px 3px #264b3120; }
    .button:hover { background: #3c8543; }
    .hero-bird { position: absolute; z-index: -1; width: 284px; height: 273px; top: 41px; left: calc(50% + 0px); overflow: visible; }
    .circuit { position: absolute; z-index: -2; width: 355px; height: 230px; color: #b8c5cf; opacity: .73; pointer-events: none; }
    .circuit-left { left: -4px; bottom: -5px; }
    .circuit-right { right: -8px; top: -13px; transform: rotate(180deg); }
    .services { position: relative; z-index: 2; margin-top: -40px; padding-bottom: 79px; flex: 1; }
    .service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .service-card { min-height: 160px; padding: 12px 11px 13px; text-align: center; background: #fff; border: 1px solid #f4f4f4; border-radius: 6px; box-shadow: 0 4px 8px #00000024; display: flex; flex-direction: column; align-items: center; }
    .service-icon { width: 51px; height: 50px; margin-bottom: 6px; }
    .service-card h2 { margin: 0 0 5px; font-size: 13px; line-height: 1.1; font-weight: 700; }
    .service-card p { margin: 0 0 7px; font-size: 9px; line-height: 1.25; }
    .learn-more { margin-top: auto; padding: 3px 5px 0; border: 0; background: none; color: var(--blue); font-size: 10px; line-height: 1.4; }
    .learn-more span { font-size: 14px; vertical-align: -1px; }
    .service-card:nth-child(2) .learn-more { color: #48763f; }
    .learn-more:hover { text-decoration: underline; }
    .contact { position: relative; isolation: isolate; overflow: hidden; background: var(--contact); padding: 28px 0; }
    .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
    .contact-copy h2 { margin: 0 0 7px; font-size: 23px; letter-spacing: -.4px; line-height: 1.05; font-weight: 800; }
    .contact-copy p { margin: 0; font-size: 11.5px; line-height: 1.2; }
    .contact-form { display: grid; gap: 7px; }
    .input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
    input, textarea { display: block; width: 100%; min-width: 0; border: 1px solid #e5e5e5; border-radius: 4px; padding: 6px 7px; background: white; color: var(--ink); font-size: 10px; }
    input { height: 25px; }
    textarea { min-height: 73px; resize: vertical; }
    input::placeholder, textarea::placeholder { color: #666; opacity: 1; }
    .contact-form .button { width: 100%; }
    .contact .circuit { width: 155px; height: 145px; left: -13px; bottom: -29px; color: #778b92; opacity: .6; }
    .sparkle { position: absolute; width: 47px; height: 47px; right: 8.3%; bottom: 37px; fill: #ffffff45; z-index: -1; }
    .form-status { margin: 0; font-size: 11px; line-height: 1.5; }
    .form-status:empty { display: none; }
    footer { min-height: 48px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: #f7f9fb; text-align: center; padding: 9px 20px; font-size: 8px; }
    footer p { margin: 0; }
    .footer-links { display: flex; align-items: center; gap: 3px; }
    dialog { width: min(460px, calc(100% - 32px)); padding: 32px; border: 0; border-radius: 8px; color: var(--ink); box-shadow: 0 16px 80px #0003; }
    dialog::backdrop { background: #132c3e80; }
    dialog h2 { margin: 0 24px 16px 0; color: var(--blue); font-size: 24px; }
    dialog p { line-height: 1.6; }
    .dialog-close { position: absolute; right: 12px; top: 8px; background: none; border: 0; font-size: 26px; padding: 4px 8px; }
    @media (min-width: 1280px) {
      .container { width: min(650px, calc(100% - 48px)); }
      .hero { min-height: 410px; }
      .header { height: 74px; }
      .hero-copy { margin-top: 54px; }
      h1 { font-size: 41px; }
      .hero-copy p { font-size: 15px; margin-top: 12px; margin-bottom: 20px; }
      .hero-bird { width: 340px; height: 330px; top: 43px; }
      .circuit { width: 440px; height: 280px; }
      .button { min-height: 36px; font-size: 13px; padding-inline: 16px; }
      .service-card { min-height: 193px; padding: 16px 15px; }
      .service-icon { width: 58px; height: 58px; margin-bottom: 9px; }
      .service-card h2 { font-size: 16px; }
      .service-card p { font-size: 11px; }
      .learn-more { font-size: 12px; }
      .contact { padding: 34px 0; }
      .contact-copy h2 { font-size: 28px; }
      .contact-copy p { font-size: 14px; }
      input, textarea { font-size: 12px; padding: 8px; }
      input { height: 31px; }
      textarea { min-height: 90px; }
      footer { min-height: 58px; font-size: 10px; }
      main { min-height: calc(100svh - 58px); }
    }
    @media (max-width: 600px) {
      .header { justify-content: space-between; height: 68px; }
      .hero { min-height: 370px; }
      .hero-copy { margin-top: 48px; }
      h1 { font-size: clamp(25px, 6.6vw, 34px); line-height: 1.08; }
      .hero-copy p { max-width: 335px; margin: 13px auto 20px; font-size: 13px; line-height: 1.4; }
      .hero-copy p br { display: none; }
      .hero-bird { left: calc(50% - 20px); top: 65px; opacity: .55; }
      .circuit { opacity: .4; width: 240px; }
      .service-grid { grid-template-columns: 1fr; gap: 16px; max-width: 335px; }
      .services { margin-top: -27px; padding-bottom: 44px; }
      .service-card { min-height: 195px; padding: 19px 24px; }
      .service-card h2 { font-size: 17px; line-height: 1.2; }
      .service-card p { max-width: 235px; font-size: 12px; line-height: 1.4; margin-bottom: 10px; }
      .learn-more { font-size: 12px; }
      .contact { padding: 35px 0; }
      .contact-grid { grid-template-columns: 1fr; gap: 23px; max-width: 335px; }
      .contact-copy h2 { font-size: 27px; }
      .contact-copy p { font-size: 13px; line-height: 1.4; }
      input { height: 38px; }
      input, textarea { font-size: 16px; padding: 9px; }
      textarea { min-height: 100px; }
      .button { min-height: 39px; }
      .sparkle { right: -9px; bottom: 12px; }
      footer { font-size: 10px; min-height: 64px; }
    }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  
/* WordPress integration. */
.hero { padding-bottom: 80px; }
input[type="hidden"] { display: none; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 100000; background: white; color: #17536b; padding: 12px 16px; }
.skip-link:focus { top: 12px; }
.site-logo img { display: block; width: auto; max-width: 170px; max-height: 42px; }
.primary-menu { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.primary-menu a { color: var(--blue); text-decoration: none; font-size: 11px; font-weight: 700; }
.primary-menu a:hover { text-decoration: underline; }
.header nav { min-width: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.service-card { min-width: 0; overflow-wrap: anywhere; }
.contact-copy { min-width: 0; overflow-wrap: anywhere; }
.hero-copy h1 { overflow-wrap: anywhere; }
#dialog-description { white-space: pre-line; }
.codeswift-content { background: var(--paper); }
.codeswift-content .header { width: min(900px, calc(100% - 40px)); }
.codeswift-content .content-shell { display: block; width: min(900px, calc(100% - 40px)); margin-inline: auto; padding: 40px 0 64px; min-height: calc(100svh - 106px); }
.content-article { padding-bottom: 32px; margin-bottom: 32px; }
.content-article h1 { margin-bottom: 24px; text-transform: none; }
.content-article h2 { font-size: 25px; }
.entry-content, .content-article p { font-size: 16px; line-height: 1.65; }
.entry-content img, .content-article img { max-width: 100%; height: auto; }
.entry-content .alignwide { width: 100%; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 13px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.screen-reader-text:focus { position: static; width: auto; height: auto; clip-path: none; }
.comment-list { padding-left: 20px; }
.comments-area input { height: auto; padding: 9px; max-width: 500px; font-size: 16px; }
.comments-area textarea { font-size: 16px; min-height: 120px; }
.comments-area label { display: block; margin-bottom: 6px; }
.comments-area input[type="checkbox"] { display: inline; width: auto; }
@media (max-width: 600px) {
    .header { gap: 16px; height: auto; min-height: 68px; padding-block: 12px; flex-wrap: wrap; }
    .hero-copy { margin-top: 48px; }
    .site-logo img { max-width: 155px; }
}
