/* main.css: estilos globales */
:root {
    --primary: #ffc107;
    --dark: #181818;
    --light: #fff;
    --accent: #1a73e8;
    --gray: #f5f6fa;
    --font-main: 'Poppins', Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-main);
    background: var(--gray);
    color: var(--dark);
}
header {
    background: var(--dark);
    color: var(--primary);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}
nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
nav ul li a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
    padding: 8px 16px;
    border-radius: 6px;
}
nav ul li a.active, nav ul li a:hover {
    background: var(--primary);
    color: var(--dark);
}
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    background: linear-gradient(120deg, #181818 0%, #1a73e8 60%, #ffc107 100%);
    color: var(--light);
    text-align: left;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    padding: 0 2rem;
}

/* --- RESPONSIVE PARA MOVILES --- */
@media (max-width: 985px) {
  #mobile-menu-btn {
    display: flex !important;
    position: absolute;
    right: 1rem;
    top: 1px;
    z-index: 101;
    background: none;
  }
  #main-nav {
    display: none;
    flex-direction: column;
    background: var(--dark);
    position: absolute;
    top: 56px;
    left: 0;
    width: 100vw;
    padding: 0.5rem 0 1rem 0;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    border-radius: 0 0 18px 18px;
    z-index: 100;
    transition: all 0.2s;
  }
  #main-nav.show {
    display: flex !important;
    animation: fadeInMenu 0.25s;
  }
  @keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  header {
    padding: 0 1rem;
  }
  nav {
    flex-direction: column;
    height: auto;
    align-items: flex-start;
    gap: 12px;
  }
  .logo {
    margin-bottom: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
  }
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    padding: 0;
  }
  nav ul li a {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: left;
  }
  .hero {
    flex-direction: column;
    min-height: unset;
    padding: 2rem 0.5rem 1rem 0.5rem;
    text-align: center;
    border-radius: 0 0 24px 24px;
  }
  .hero-content {
    width: 100%;
    margin-bottom: 1.5rem;
  }
  .hero-btn-center {
    justify-content: center;
    display: flex;
  }
  .hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }
  .hero-visual video, .hero-visual img {
    width: 90vw !important;
    max-width: 320px !important;
    height: auto !important;
    border-radius: 14px;
  }
  .section-title {
    font-size: 1.4rem;
    text-align: center;
  }
  .card-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }
  .card {
    padding: 1rem !important;
  }
  form {
    padding: 0 0.5rem;
  }
  footer {
    font-size: 0.95rem;
    padding: 1.2rem 0.5rem !important;
  }
}

.hero-content {
    flex: 1;
    z-index: 2;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}
.hero-btn-center {
    width: 100%;
    display: flex;
    justify-content: center;
}
.hero-content .btn-main {
    margin-top: 1.5rem;
    align-self: center;
}
@media (max-width: 900px) {
    .hero-content {
        align-items: center;
        text-align: center;
    }
}
.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.hero-visual img {
    width: 85%;
    max-width: 400px;
    border-radius: 24px;
    box-shadow: 0 6px 32px rgba(0,0,0,.18);
    background: rgba(255,255,255,0.1);
}
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    .hero-content, .hero-visual { max-width: 100%; }
    .hero-visual img { width: 80vw; max-width: 320px; }
}
.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}
.btn-main {
    background: var(--primary);
    color: var(--dark);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    transition: background .2s, color .2s, transform .2s;
}
.btn-main:hover {
    background: var(--accent);
    color: var(--light);
    transform: translateY(-3px) scale(1.04);
}
section {
    padding: 3rem 1rem 2rem 1rem;
    max-width: 1100px;
    margin: 0 auto;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark);
    text-align: center;
}
.card-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: stretch;
    margin: 0 auto;
    max-width: 1200px;
    box-sizing: border-box;
    padding: 0 1.5rem;
}

section {
    padding: 3rem 0 2rem 0;
    max-width: 100vw;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.2rem;
        padding: 0 .5rem;
    }
}
.card {
    background: var(--light);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(26,115,232,0.10), 0 1.5px 4px rgba(0,0,0,.08);
    padding: 2rem 1rem;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
    position: relative;
    border: 1.5px solid #f5f6fa;
}
.card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(26,115,232,0.13), 0 2px 8px rgba(0,0,0,.10);
}
.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}
footer {
    background: var(--dark);
    color: var(--light);
    text-align: center;
    padding: 2rem 1rem 1rem 1rem;
}
footer .socials a {
    color: var(--primary);
    margin: 0 8px;
    font-size: 1.5rem;
    transition: color .2s;
}
footer .socials a:hover {
    color: var(--accent);
}
@media (max-width: 700px) {
    nav ul { gap: 0.5rem; }
    .hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.3rem; }
    section { padding: 2rem 0.5rem; }
}
