/* =============================================
   RESPONSIVE Y MEDIA QUERIES
   ============================================= */

/* Tablets (max 900px) */
@media (max-width: 900px) {
  .nav-cta {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-inner {
    padding: 0 16px;
  }

  .nav-brand span {
    font-size: 0.95rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    order: 2;
  }

  .hero-visual {
    order: 1;
    height: 380px;
    margin-top: 0;
    margin-bottom: 0;
  }

  .hero-visual .blob {
    width: 320px;
    height: 320px;
  }

  .hero-visual .main-img {
    width: 260px;
    height: 260px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 70px 0;
  }

  .hero {
    padding: 110px 0 60px;
    min-height: auto;
  }
}

/* Móviles pequeños (max 480px) */
@media (max-width: 480px) {
  /* Navegación */
  .nav-logo {
    width: 45px;
    height: 45px;
  }

  .nav-brand span {
    font-size: 0.85rem;
  }

  .nav-inner {
    gap: 8px;
    padding: 0 12px;
  }

  .menu-toggle svg {
    width: 24px;
    height: 24px;
  }

  /* Hero */
  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 20px;
    flex-direction: column;
    padding-top: 24px;
    border-top: 1px solid rgba(42, 165, 160, 0.15);
  }

  .stat {
    text-align: center;
  }

  .stat .number {
    font-size: 1.7rem;
  }

  .hero-visual {
    height: 300px;
  }

  .hero-visual .float-card {
    display: none;
  }

  .hero-visual .blob {
    width: 260px;
    height: 260px;
  }

  .hero-visual .main-img {
    width: 200px;
    height: 200px;
  }

  .hero-visual .main-img svg {
    width: 60%;
  }

  /* Secciones */
  section {
    padding: 50px 0;
  }

  .container {
    padding: 0 16px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  /* Servicios */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .service-card h3 {
    font-size: 1rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  .service-card ul li {
    font-size: 0.82rem;
  }

  /* Experiencia */
  .exp-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .exp-card {
    padding: 24px 20px;
  }

  .exp-card .org {
    font-size: 1.1rem;
  }

  .exp-card .role {
    font-size: 0.88rem;
  }

  .exp-card ul li {
    font-size: 0.82rem;
  }

  /* Certificaciones */
  .certs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cert-card {
    padding: 20px;
  }

  .cert-card h4 {
    font-size: 0.95rem;
  }

  .cert-card p {
    font-size: 0.82rem;
  }

  /* Galería */
  .gallery-checks {
    margin-top: 16px;
  }

  .gallery-checks li {
    padding: 10px 0;
    gap: 10px;
  }

  .gallery-checks li svg {
    width: 18px;
    height: 18px;
  }

  .gallery-checks li strong {
    font-size: 0.9rem;
  }

  .gallery-checks li span {
    font-size: 0.82rem;
  }

  /* About */
  .about-grid {
    gap: 30px;
  }

  .about-photo {
    height: 300px;
  }

  .about-text .feature-list {
    margin-top: 20px;
  }

  .about-text .feature-list li {
    padding: 12px 0;
  }

  .about-text .feature-list strong {
    font-size: 0.92rem;
  }

  .about-text .feature-list span {
    font-size: 0.85rem;
  }

  /* Timeline */
  .timeline::before {
    left: 12px;
  }

  .tl-item {
    padding-left: 50px;
  }

  .tl-item::before {
    left: 4px;
    width: 16px;
    height: 16px;
    top: 4px;
    border-width: 2px;
  }

  .tl-item h4 {
    font-size: 1rem;
  }

  /* Contacto */
  .contact {
    padding: 70px 0;
  }

  .contact-text p {
    font-size: 0.95rem;
  }

  .contact-info li {
    gap: 12px;
    font-size: 0.9rem;
  }

  .contact-info li .icon-box {
    width: 40px;
    height: 40px;
  }

  .contact-info li .icon-box svg {
    width: 18px;
    height: 18px;
  }

  .contact-visual {
    padding: 24px 18px;
  }

  .contact-visual h3 {
    font-size: 1.2rem;
    margin-bottom: 18px;
  }

  .contact-form {
    gap: 12px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .contact-form button {
    padding: 12px;
    font-size: 0.9rem;
  }

  /* Footer */
  footer .footer-brand {
    font-size: 1.3rem;
  }

  footer .footer-contact {
    gap: 16px;
    font-size: 0.85rem;
  }

  footer .copy {
    font-size: 0.75rem;
  }

  /* Hero text label */
  .hero-text .label {
    font-size: 0.75rem;
    padding: 6px 14px;
    margin-bottom: 18px;
  }

  .hero-text .subtitle {
    font-size: 1rem;
  }

  .hero-text .sub-subtitle {
    font-size: 0.92rem;
  }
}

/* Celulares muy pequeños (max 360px) */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .btn-primary,
  .btn-outline {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat .number {
    font-size: 1.5rem;
  }

  .stat .label-s {
    font-size: 0.75rem;
  }

  .nav-inner {
    gap: 4px;
  }

  .nav-brand span {
    font-size: 0.78rem;
  }

  .service-card {
    padding: 24px 16px;
  }

  .about-visual .card {
    padding: 30px 20px;
  }

  .about-visual .card svg {
    width: 120px;
    height: 120px;
  }

  .about-visual .card h4 {
    font-size: 1.1rem;
  }

  .exp-card {
    padding: 20px 16px;
  }

  .cert-card {
    padding: 16px;
  }

  .timeline::before {
    left: 8px;
  }

  .tl-item {
    padding-left: 40px;
  }

  .tl-item::before {
    left: 0;
    width: 14px;
    height: 14px;
    border-width: 2px;
  }

  .tl-item h4 {
    font-size: 0.95rem;
  }
}

/* Pantallas grandes (min 1400px) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .section-title {
    font-size: 3.2rem;
  }

  .hero-text h1 {
    font-size: 4.4rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .exp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
