html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #fff;
    color: #58585F;
}

header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    height: 55px;
    justify-self: start;
}

nav {
    justify-self: center;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #58585F;
    font-weight: 500;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  background: none;
}

.hero-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  max-width: 1140px;
  width: 100%;
  border-radius: 0;
  overflow: hidden;

  box-shadow: none;
}

.hero-left, .hero-right {
  flex: 1 1 50%;
  padding: 40px;
  box-sizing: border-box;
  z-index: 1;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-left h1 {
  font-size: 2em;
  color: #437DFD;
  margin-bottom: 15px;
}

.hero-left p {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.hero-btns .btn {
  margin-right: 10px;
  margin-bottom: 10px;
}

.hero-right {
  position: relative;
  flex: 1 1 50%;
  padding: 0;
  overflow: hidden;
  clip-path: polygon(
    10% 100%,
    100% 100%,
    100% 0,
    0 0
  );
}

.hero-right img {
  width: 110%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transform: translateX(-10%);
  animation: fadeInUp 1s ease both;
}



@media (max-width: 768px) {
  .hero-card {
    flex-direction: column;
    background: #fff;
  }
  .hero-left, .hero-right {
    flex: 1 1 100%;
  }
}


@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.servicios {
    padding: 60px 20px;
    background: #f9f9f9;
    text-align: center;
}

.servicios h2 {
    color: #437DFD;
    margin-bottom: 20px;
}

.planillas {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
}

.planillas h2 {
    color: #437DFD;
    margin-bottom: 20px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonio {
    padding: 60px 20px;
    text-align: center;
}

.testimonio h2 {
    color: #437DFD;
    margin-bottom: 20px;
}

.testimonio blockquote {
    font-style: italic;
    color: #58585F;
}

.cta {
    padding: 60px 20px;
    background: #437DFD;
    text-align: center;
    color: #fff;
}

.cta .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #fff;
    color: #437DFD;
    border-radius: 4px;
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 20px;
    background: #f1f1f1;
}

footer .logo-footer {
    height: 30px;
    margin-bottom: 10px;
}


/* Efecto hover y clic en el header */
nav a {
    position: relative;
    padding: 5px 10px;
    transition: background-color 0.3s ease, transform 0.1s ease;
    border-radius: 4px;
}

nav a:hover {
    background-color: rgba(0, 0, 0, 0.05); /* opasidad */
}

nav a:active {
    transform: scale(0.95); /* clic al hacer clic */
}






/*Estilo de Botones*/

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #437DFD;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #2f65d9;
}

.btn:active {
    transform: scale(0.97);
}

.btn-secundario {
    background-color: #e0e0e0;
    color: #333;
}

.btn-secundario:hover {
    background-color: #d5d5d5;
}





/*mini menu con iconos*/

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  min-height: 200px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  text-align: center;
}

.card-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
  object-fit: contain;
}

.card p {
  margin: 0;
  font-weight: 500;
  color: #58585F;
}

