/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

/* VARIABLES (consistencia total) */
:root {
  --primary: #c27a2c;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --bg: #f7f7f7;
  --white: #ffffff;
}

.header {
  opacity: 0;
  transform: translateY(-10px);
  transition: 0.3s;
}

.header.show-header {
  opacity: 1;
  transform: translateY(0);
}

/* BASE */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: white;
  line-height: 1.6;
  overflow-x: hidden;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.logo span {
  color: var(--primary);
}

nav a {
  margin-left: 30px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  transition: 0.3s;
}

nav a:hover {
  color: var(--text);
}

/* BOTON HAMBURGUESA */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  z-index: 2000;
}

/* HERO */
.hero {
  min-height: 100vh;
  margin-top: 0px;
  background: url('hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  color: white;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
}

.hero-content {
  position: relative;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-break {
  display: inline;
}

.scroll-indicator {
  position: absolute;
  bottom: -250px;
  left: 50%;
  transform: translateX(-50%);

  color: rgba(255,255,255,0.7);
  font-size: 38px;
  font-weight: 300;

  animation: float 2s ease-in-out infinite;
}

/* ANIMACION */
@keyframes float {

  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }

}

/* TEXTO SUPERIOR */
.hero-tag {
  color: var(--primary);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-top: 00px;
  margin-bottom: 40px;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.0);
}

/* LOGO CENTRAL */
.hero-logo {
  width: 260px;
  height: auto;
  margin-top: 30px;
  margin-bottom: 30px;
}

/* SUBTITULO */
.hero-subtitle {
  display: none;

  font-size: 42px;
  line-height: 1.2;
  color: #fff;
  max-width: 700px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

/* BOTÓN */
.btn {
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.btn:hover {
  opacity: 0.85;
}

/* SECCIONES */
section {
  padding: 110px 0;
}

h2 {
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
}

.subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 60px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 25px;
}

/* TODAS LAS CARDS: 2 POR FILA */

.grid .card {
  grid-column: span 3;
}

.card {
  background: var(--white);
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

/* CARD CLICKEABLE */
.accordion-card summary {
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.accordion-card summary::after {
  content: "+";

  position: absolute;

  right: -10px;
  bottom: -15px;

  font-size: 28px;

  font-weight: 300;

  color: var(--primary);

  line-height: 1;

  transition: 0.25s;
}

.accordion-card[open] summary::after {
  transform: rotate(45deg);
}

.accordion-card summary::-webkit-details-marker {
  display: none;
}

/* icono */
.accordion-card .icon {
  flex-shrink: 0;
}

/* texto */
.accordion-card .card-content {
  text-align: left;
}

/* contenido desplegable */
.accordion-content {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.accordion-content p {
  color: var(--muted);
  line-height: 1.7;
}

/* icono */
.card .icon {
  flex-shrink: 0;
}

/* texto */
.card .card-content {
  text-align: left;
}

/* SERVICES */
.services {
  background: var(--bg);
}

/* ACCORDION */
.accordion {
  margin-top: 14px;
}

.accordion summary {
  cursor: pointer;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  list-style: none;
  user-select: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: " +";
}

.accordion[open] summary::after {
  content: " −";
}

.accordion-content {
  margin-top: 12px;
}

.accordion-content p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.icon {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

/* CARD COMPLETA CLICKEABLE */
.accordion-card summary {
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  list-style: none;
}

.accordion-card summary::-webkit-details-marker {
  display: none;
}

.accordion-card .accordion-content {
  margin-top: 20px;
}

/* cards normales */
.icon img {
  width: 100px;
  height: 100px;
}

.card-large .card-content {
  display: flex;
  flex-direction: column;
}

/* ABOUT */

.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about h2 {
  text-align: left;
}

.about p {
  color: var(--muted);
  margin-bottom: 15px;
  text-align: justify;
}

.stats {
  display: flex;
  gap: 20px;
  margin-top: 25px;
}

.stats div {
  background: var(--white);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  text-align: center;
}

.stats strong {
  display: block;
  color: var(--primary);
  font-size: 20px;
}

.about-img {
  height: 380px;
  overflow: hidden;
  border-radius: 16px;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 10%;
  transform: scale(1.01);
  transform-origin: top;
}

.linkedin-link {
  display: inline-block;
  margin-top: 25px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.profile-links {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  width: 100%;
}

.profile-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.profile-links a:hover {
  opacity: 0.7;
}

/* =========================================
   METODOLOGÍA
========================================= */

/* TEXTO PRINCIPAL */

.method-text {
  max-width: 950px;

  margin: 0 auto 80px;

  text-align: justify;

  line-height: 2;
  color: var(--muted);
}

/* ETAPAS */

.method-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 35px;

  padding-top: 60px;
  padding-bottom: 60px;

  border-top: 1px solid #dcdcdc;
  border-bottom: 1px solid #dcdcdc;
}

.method-step {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.step-icon {
  margin-top: 12px;
  margin-right: 12px;
}

.step-number {
  font-size: 38px;
  font-weight: 700;

  color: #d0d0d0;

  line-height: 1;
}

.step-content h3 {
  margin-bottom: 12px;

  font-size: 18px;
}

.step-content p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.step-icon {
  width: 52px;
  height: 52px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon img {
  width: 65px;
  height: 65px;

  object-fit: contain;
}

/* BLOQUE INFERIOR */

.method-bottom {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 60px;

  padding-top: 60px;

  position: relative;

}

.method-bottom::before {
  content: "";

  position: absolute;

  left: 50%;
  top: 40px;

  width: 1px;
  height: calc(100% - 56px);

  background: #d9d9d9;
}

.method-box h4 {
  font-size: 18px;

  margin-bottom: 18px;
}

.method-box p {
  color: var(--muted);

  line-height: 1.8;
}

.method-title {
  display: flex;

  align-items: center;

  gap: 16px;

  margin-bottom: 22px;
}

.method-title img {
  width: 65px;
  height: 65px;

  object-fit: contain;

  opacity: 0.9;
}

.method-title h4 {
  margin-bottom: 0;
}

.method-row {
  display: flex;

  align-items: flex-start;

  gap: 18px;
}

.method-row img {
  width: 65px;
  height: 65px;

  object-fit: contain;

  flex-shrink: 0;

  margin-top: 4px;
}

.method-row h4 {
  margin-bottom: 16px;
  font-size: 18px;
}

.method-row p {
  font-size: 15px;
}

/* TAGS */

.method-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: 25px;
}

.method-tags span {
  padding: 10px 18px;

  border: 1px solid #d7d7d7;

  border-radius: 10px;

  font-size: 14px;
}

/* PROJECTS */

.projects .card {
  display: flex;
  align-items: center;
  gap: 30px;
}

.projects .card img {
  width: 35%;
  margin-bottom: 0;
  flex-shrink: 0;
}

.project-content {
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  margin-bottom: 15px;
  text-align: left;
}

.project-content p {
  text-align: justify;
}

/* CONTACT */
.contact {
  background: var(--bg);
}

.contact input,
.contact textarea {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.contact textarea {
  height: 100px;
}

/* GRID PRINCIPAL */
.contact-grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 60px;
  align-items: start; /* 🔥 CLAVE: alinea arriba */
}

/* FORM */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* BLOQUE DERECHO */
.contact-info {
  text-align: left; 
}

/* TÍTULO */
.contact-info h2 {
  margin-bottom: 20px;
  text-align: left;
}

/* TEXTO */
.contact-info p {
  margin-bottom: 20px;
  color: var(--muted);
  text-align: left;
}

/* LINKS */
.contact-info a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* FOOTER */
.footer {
  background: #111;
  color: #aaa;
  padding: 20px 0;
  z-index: 2;
  position: relative;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.footer-logo img {
  height: 45px;
}

/* Centro */
.footer-location {
  font-size: 14px;
  color: #888;
}

/* Derecha */
.footer-copy {
  font-size: 13px;
  color: #777;
  text-align: left;
}

/* RESPONSIVE */
html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 0px;
}

.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 15px;
  width: 55px;
  height: 55px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: 0.0s ease;
}

.whatsapp-btn img {
  width: 28px;
  height: 28px;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

/* SIDEBAR MOBILE */

.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%;

  width: 150px;
  height: 100vh;

  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);

  display: flex;
  flex-direction: column;

  padding: 30px 35px;
  gap: 26px;

  transition: 0.35s ease;

  z-index: 1500;

  border-left: 1px solid rgba(0,0,0,0.06);
}

.mobile-sidebar a {
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mobile-sidebar.active {
  right: 0;
}

/* SIDEBAR ACTIVO */
.mobile-sidebar.active {
  right: 0;
}

/* MOBILE */

@media (max-width: 768px) {

  /* SECCIONES */
  section {
    padding: 70px 0;
  }

  /* CONTAINER */
  .container {
    width: 88%;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .grid .card {
    grid-column: span 1 !important;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-row {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    height: 60px;
  }

  .logo img {
    height: 36px;
  }

  /* HERO */
  .hero {
    min-height: 100vh;
    margin-top: 0px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 15px;
    margin-top: 18px;
    margin-bottom: 10px;
  }

  .hero-mobile-text {
    display: block;
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #ddd;
  }

  .hero-subtitle {
    display: block;
    font-size: 24px !important;
    line-height: 1.8;
    margin-top: 20px;
  }

  .hero-tag {
    font-size: 18px;
    line-height: 1.5;
    margin-top: 0px;
    margin-bottom: 30px;
    font-family: 'Manrope', sans-serif;
  }

  .mobile-break {
    display: block;
  }

  .hero-logo {
    width: 180px;
    height: auto;
    margin-top: 60px;
    margin-bottom: 60px;
  }

  .scroll-indicator {
    bottom: -90px;
    font-size: 30px;
  }
    
  .about p {
    text-align: justify;
  }

  .linkedin-link {
    display: inline-block;
    margin-top: 25px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
  }

  .profile-links {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    width: 100%;
  }

  .profile-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
  }

  .profile-links a:hover {
    opacity: 0.7;
  }


  /* TITULOS */
  h2 {
    font-size: 24px;
    margin-bottom: 16px;
  }

  /* SUBTITULOS Y PÁRRAFOS */
  .subtitle,
  .about p,
  .contact p,
  .tools p,
  .card p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* SERVICES */

  .card h3 {
    font-size: 17px;
    line-height: 1.4;
  }

  .card {
    padding: 18px;
    padding-left: 8px;
  }

  .accordion-card summary {
    flex-direction: row;
    position: relative;
    align-items: center;
    text-align: left;
    gap: 10px;
  }

  .accordion-content {
    margin-left: 10px;
  }

  .accordion-card summary::after {
    right: -5px;
    bottom: -5px;
    font-size: 24px;
  }

  .accordion-card .card-content {
    text-align: left;
  }

  /* ICONOS */
  .icon img {
    width: 75px;
    height: 75px;
  }

  /* ABOUT */
  .about-grid {
    gap: 40px;
  }

  .about-text p {
    font-size: 15px;
  }

  .about-img {
    display: none;
  }

  /* metodologia */

  .method-text {
    margin-bottom: 50px;
    font-size: 15px;
    line-height: 1.7;
  }

  .method-grid {
    grid-template-columns: 1fr;

    gap: 35px;

    padding-top: 40px;
    padding-bottom: 40px;
  }

  .method-step {
    gap: 18px;
    font-size: 15px;
  }

  .method-row {
    font-size: 15px;
  }

  .method-bottom {
    grid-template-columns: 1fr;

    gap: 40px;

    padding-top: 45px;
  }

  .method-bottom::before {
    display: none;
  }

  .software-list {
    line-height: 2;
  }

  /* PROJECTS MOBILE */

  .projects .card {
    flex-direction: column;
  }

  .projects .card img {
    width: 80%;
  }

  .tool-icon {
    width: 42px;
    height: 42px;
  }

  /* CONTACTO */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info,
  .contact-info h2,
  .contact-info p {
    text-align: center;
  }

  /* FOOTER */
  
  .footer {
    padding: 28px 0 34px;
  }

  .footer-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 14px;
  }

  .footer-location {
    align-items: center;
  }

  .footer-copy {
    max-width: 220px;

    text-align: center;
    line-height: 1.8;

    font-size: 12px;
  }

  .footer-logo img {
    height: 44px;
  }    

  /* WHATSAPP */
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    right: 12px;
    bottom: 12px;
  }

  .whatsapp-btn img {
    width: 24px;
    height: 24px;
  }

  /* MOBILE MENU */
  .header nav {
    display: none !important;
  }

  .menu-toggle {
    display: block;
  }

}