/* Estilo rammaheshwari.com - Steban Martínez */
:root {
  --color-bg: #f5f5f5;
  --color-bg-pattern: #e8e8e8;
  --color-surface: #ffffff;
  --color-text: #181818;
  --color-text-muted: #4a4a4a;
  --color-accent: #6f2cf5;
  --color-accent-hover: #5a24c4;
  --color-footer: #0d0d0d;
  --font: "DM Sans", system-ui, sans-serif;
  --header-height: 70px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 112.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: var(--color-surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  z-index: 100;
}

.header__logo {
  text-decoration: none;
  color: var(--color-text);
}

.header__name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header__nav {
  display: flex;
  gap: 2rem;
}

.header__link {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.header__link:hover {
  color: var(--color-accent);
}

.header__lang {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text);
  cursor: pointer;
  transition: color 0.2s ease;
}

.header__lang:hover {
  color: var(--color-accent);
}

.header__menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.header__menu span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    background: var(--color-surface);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  .header__nav--open {
    display: flex;
  }
  .header__nav .header__link,
  .header__nav .header__lang {
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-bg-pattern);
  }
  .header__nav .header__lang {
    text-align: left;
    width: 100%;
  }
  .header__menu {
    display: flex;
  }
}

/* Sidebar social */
.social-sidebar {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 50;
}

.social-sidebar__link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.social-sidebar__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-sidebar__link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .social-sidebar {
    display: none;
  }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 3rem) 1.5rem 3rem;
  background: var(--color-bg);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='%23e0e0e0' fill-opacity='0.3' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.hero__tagline {
  max-width: 800px; /* Dale aire para que no se vea como una columna estrecha */
  font-size: 1.2rem; /* Sube un poco el tamaño */
}

.hero__title {
  font-size: clamp(
    2.5rem,
    6vw,
    4.5rem
  ); /* Hará que el título sea más imponente */
}

.hero__meta {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
  opacity: 0.9;
}

/* Botón */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

/* Títulos de sección */
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--color-accent);
  margin: 0.5rem auto 1rem;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* About */
.about {
  padding: 4rem 1.5rem;
  background: var(--color-surface);
}

.about__grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Make panorama span full width of the about grid and center it */
.about__col--skills {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0 2rem 0;
}

.about__heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1.25rem;
}

.about__text {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  line-height: 1.7;
}

.about__text a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.about__text a:hover {
  text-decoration: underline;
}

.about__credential {
  font-size: 0.9375em;
  white-space: nowrap;
}

.about__col--text .btn {
  margin-top: 0.5rem;
}

.skills-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 1rem 0 0.5rem;
}

.skills-category:first-of-type {
  margin-top: 0;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid var(--color-bg-pattern);
}

@media (max-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
}

/* Projects */
.projects {
  padding: 4rem 1.5rem;
  background: var(--color-bg);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='%23e0e0e0' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.project {
  max-width: 1100px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.project:last-child {
  margin-bottom: 0;
}

.project--reverse .project__media {
  order: 2;
}

.project--reverse .project__content {
  order: 1;
}

.project__media {
  background: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.project__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.project__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1rem;
}

.project__desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  line-height: 1.7;
}

.project__tech {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
}

.project__content .btn {
  margin-top: 0;
}

@media (max-width: 768px) {
  .project,
  .project--reverse {
    grid-template-columns: 1fr;
  }
  .project--reverse .project__media,
  .project--reverse .project__content {
    order: unset;
  }
}

/* Contact */
.contact {
  padding: 4rem 1.5rem;
  background: var(--color-bg);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='%23e0e0e0' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.contact-form {
  max-width: 520px;
  margin: 0 auto;
  background: var(--color-surface);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form__label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.contact-form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid var(--color-bg-pattern);
  border-radius: 6px;
  margin-bottom: 1.25rem;
  background: var(--color-surface);
  color: var(--color-text);
}

.contact-form__input::placeholder {
  color: #9ca3af;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form__submit {
  margin-top: 0.5rem;
}

.contact-form__feedback {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.contact-form__feedback--error {
  color: #b91c1c;
}

/* Footer */
.footer {
  background: var(--color-footer);
  color: #fff;
  padding: 3rem 1.5rem 2rem;
}

.footer__inner {
  max-width: 1000px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
}

.footer__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 0.5rem;
}

.footer__tagline {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 400px;
  line-height: 1.6;
}

.footer__social-title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.75rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__copy {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

@media (max-width: 600px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

/* Chat widget */
.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 500;
  z-index: 50;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.chat-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.chat-widget__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 1.25rem;
}

@media (max-width: 480px) {
  .chat-widget__text {
    display: none;
  }
}

/* ================================ */
/* Certificaciones                   */
/* ================================ */

.certifications {
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 2rem;
}

.certifications__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.certification-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
  background: var(--color-surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.certification-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.certification-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  border-right: 1px solid #e0e0e0;
  padding: 2rem;
}

.certification-card__image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}

.certification-card__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
}

.certification-card__header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.certification-card__issuer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.certification-card__logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.certification-card__platform {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.certification-card__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 1rem 0 0.5rem 0;
  line-height: 1.3;
}

.certification-card__date {
  font-size: 0.9375rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.certification-card__description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.certification-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.cert-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #f0f0f0;
  color: var(--color-text);
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.cert-tag:hover {
  background-color: var(--color-accent);
  color: #fff;
}

.certification-card__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  transition: all 0.3s ease;
}

.btn--secondary:hover {
  background-color: var(--color-accent);
  color: #fff;
}

@media (max-width: 768px) {
  .certification-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .certification-card__visual {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    min-height: 350px;
  }

  .certification-card__content {
    padding: 2rem;
  }

  .certification-card__title {
    font-size: 1.5rem;
  }

  .certification-card__buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .certifications {
    margin: 60px auto;
    padding: 0 1rem;
  }

  .certifications__grid {
    gap: 2rem;
    margin-top: 2rem;
  }

  .certification-card__content {
    padding: 1.5rem;
  }

  .certification-card__title {
    font-size: 1.25rem;
  }

  .certification-card__skills {
    margin-bottom: 1.5rem;
  }

  .cert-tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}

/* ================================ */
/* Tech Cards - About section       */
/* ================================ */

.tech-categories {
  display: none; /* reemplazado por panorama 3D */
}

/* Skills grid (simple icons with labels) */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem 1.25rem;
  align-items: center;
  justify-items: center;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0.6rem 0 1.2rem;
}
.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
}
.skill-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.skill-label {
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
  }
  .skill-item img {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 520px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(80px, 1fr));
  }
  .skill-item img {
    width: 40px;
    height: 40px;
  }
}

/* ================================ */
/* Splide integration styles        */
/* ================================ */
.splide-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 0 2rem;
}
.splide {
  width: 100%;
}
.splide__track {
  overflow: visible;
}
.splide__list {
  display: flex;
  align-items: center;
}
.splide__slide {
  width: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}
.tech-card {
  width: 140px;
  height: 160px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(15, 15, 15, 0.06);
}
.tech-card .tech-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.tech-card .tech-name {
  margin-top: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .tech-card {
    width: 120px;
    height: 140px;
  }
}

@media (max-width: 520px) {
  .tech-card {
    width: 100px;
    height: 120px;
  }
}
