/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 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);
}

/* 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;
}

/* PRIMERAs FILAs (1 a 4) */
/* tamaño en el grid */
.grid .card:nth-child(1),
.grid .card:nth-child(2),
.grid .card:nth-child(3),
.grid .card:nth-child(4) {
  grid-column: span 3;
}

/* RESTO (3 por fila) */
.grid .card:nth-child(n+5) {
  grid-column: span 2;
}

.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;
}

.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;
}

/* CARDS (UNIFICADO) */
.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);
}

/* 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;
}

/* cards grandes */
.grid .card:nth-child(-n+4) .icon img {
  width: 120px;
  height: 120px;
}

.card-large .card-content {
  display: flex;
  flex-direction: column;
}

/* ABOUT */
.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.15);
  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;
}

/* TOOLS */
.tools {
  background: var(--bg);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 25px;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.tools .subtitle {
  max-width: 800px;
  margin: 0 auto 60px;
  line-height: 1.8;
  text-align: justify;
}

.tool-icon {
  width: 50px;
  height: 50px;
  padding: 8px;
  background: #f3f3f3;
  border-radius: 10px;
  object-fit: contain;
}

/* PROJECTS */
.projects img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* 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;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.footer-logo img {
  height: 50px;
}

/* Centro */
.footer-location {
  font-size: 14px;
  color: #888;
}

/* Derecha */
.footer-copy {
  font-size: 13px;
  color: #777;
  text-align: right;
}

/* 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.3s;
}

.whatsapp-btn img {
  width: 28px;
  height: 28px;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

/* 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: 50px;
  }

  .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: -120px;
  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: 15px;
    line-height: 1.65;
  }

  /* SERVICES */
  .card {
    padding: 22px;
  }

  .accordion-card summary {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .accordion-card .card-content {
    text-align: center;
  }

  /* ICONOS */
  .icon img {
    width: 75px;
    height: 75px;
  }

  /* ABOUT */
  .about-grid {
    gap: 40px;
  }

  /* TOOLS */
  .tool-item {
    gap: 12px;
  }

  .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;
  }

  /* WHATSAPP */
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    right: 12px;
    bottom: 12px;
  }

  .whatsapp-btn img {
    width: 24px;
    height: 24px;
  }

}
