/*
 * Author: Pyrukent
 * assets/css/responsive.css
 * Proyecto ARNIDINA
 * Versión: 1.0
 */

/* LARGE TABLETS - 1024px */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero-stats {
    gap: 2rem;
  }

  .hero-image-secondary {
    width: 40%;
  }

  .about-hero {
    gap: 3rem;
  }

  .impact-content {
    gap: 3rem;
  }

  .contact-content {
    gap: 3rem;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .impact-stats {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
  }
}

/* TABLETS - 768px */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  /* NAVIGATION */
  .navbar {
    padding: 1.5rem 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--gradient-earth);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: left var(--transition-normal);
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    font-size: 1.25rem;
    font-weight: 700;
  }

  .nav-mobile-toggle {
    display: flex;
    z-index: 1000;
  }

  .nav-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* HERO */
  .hero {
    min-height: 90vh;
  }

  .hero-image-secondary {
    display: none;
  }

  .hero-content {
    padding: 3rem 0;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.375rem 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .stat-item {
    padding: 1rem 1.5rem;
  }

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

  /* SECTIONS */
  .section-projects,
  .section-about,
  .section-services,
  .section-impact,
  .section-contact {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  /* PROJECTS */
  .projects-filter {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-image {
    height: 200px;
  }

  /* ABOUT */
  .about-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .company-credentials {
    max-width: 400px;
    margin: 2rem auto 0;
  }

  .about-stats-overlay {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin-top: 1rem;
  }

  .mission-vision-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* SERVICES */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 2rem;
  }

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

  /* IMPACT */
  .impact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .impact-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    order: 2;
  }

  .impact-stories {
    order: 1;
  }

  .story-image img {
    height: 250px;
  }

  /* CONTACT */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    padding: 0.875rem;
  }

  .info-items {
    gap: 1rem;
  }

  .social-responsibility img {
    height: 150px;
  }

  /* FOOTER */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-info {
    text-align: center;
  }
}

/* MOBILE - 480px */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  /* HERO */
  .logo-main {
    height: 50px;
    max-width: 200px;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
  }

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

  .btn-primary,
  .btn-secondary {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    max-width: none;
    width: 100%;
  }

  .hero-stats {
    gap: 1rem;
  }

  .stat-item {
    padding: 0.75rem 1rem;
  }

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

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

  /* SECTIONS */
  .section-projects,
  .section-about,
  .section-services,
  .section-impact,
  .section-contact {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  /* PROJECTS */
  .projects-filter {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 100%;
    max-width: 200px;
  }

  .project-image {
    height: 180px;
  }

  .project-overlay {
    padding: 1rem;
  }

  .project-info h3 {
    font-size: 1.125rem;
  }

  .project-info p {
    font-size: 0.8125rem;
  }

  /* ABOUT */
  .lead {
    font-size: 1rem;
  }

  .company-credentials {
    gap: 0.75rem;
  }

  .credential-item {
    padding: 0.5rem;
    font-size: 0.875rem;
  }

  .about-image img {
    height: 250px;
  }

  .about-stats-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    flex-direction: row;
    gap: 0.5rem;
  }

  .overlay-stat {
    padding: 0.5rem 0.75rem;
  }

  .overlay-number {
    font-size: 1.25rem;
  }

  .mv-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .mission-card,
  .vision-card {
    padding: 2rem;
  }

  .mission-card h3,
  .vision-card h3 {
    font-size: 1.25rem;
  }

  .value-item {
    padding: 1.5rem;
  }

  .value-item i {
    font-size: 2rem;
  }

  .value-item h4 {
    font-size: 1.125rem;
  }

  /* SERVICES */
  .service-card {
    padding: 1.5rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

  .service-icon i {
    font-size: 1.5rem;
  }

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

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

  .service-features li {
    font-size: 0.875rem;
  }

  .service-capacity {
    padding: 0.75rem;
  }

  .capacity-label,
  .capacity-value {
    font-size: 0.875rem;
  }

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

  .cert-item {
    padding: 1rem;
  }

  /* IMPACT */
  .impact-stats {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 1.5rem 1rem;
  }

  .stat-card .stat-number {
    font-size: 1.75rem;
  }

  .story-content h3 {
    font-size: 1.5rem;
  }

  .story-content p {
    font-size: 0.875rem;
  }

  .highlight-item {
    padding: 0.75rem;
    font-size: 0.875rem;
  }

  /* CONTACT */
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    padding: 0.75rem;
    font-size: 0.875rem;
  }

  .info-card {
    padding: 1.5rem;
  }

  .info-header h3 {
    font-size: 1.25rem;
  }

  .info-item i {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

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

  .info-item p {
    font-size: 0.875rem;
  }

  .social-responsibility img {
    height: 120px;
  }

  .responsibility-content {
    padding: 1rem;
  }

  .responsibility-content h4 {
    font-size: 1rem;
  }

  .responsibility-content p {
    font-size: 0.875rem;
  }

  /* FOOTER */
  .footer {
    padding: 2rem 0;
  }

  .footer-logo {
    width: 40px;
    height: 40px;
  }

  .footer-text h4 {
    font-size: 1.125rem;
  }

  .footer-text p,
  .footer-info p {
    font-size: 0.8125rem;
  }
}

/* EXTRA SMALL MOBILE - 360px */
@media (max-width: 360px) {
  .container {
    padding: 0 0.5rem;
  }

  .hero-content {
    padding: 2rem 0;
  }

  .hero-badge {
    font-size: 0.625rem;
    padding: 0.1875rem 0.625rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.8125rem;
  }

  .section-projects,
  .section-about,
  .section-services,
  .section-impact,
  .section-contact {
    padding: 2.5rem 0;
  }

  .service-card {
    padding: 1.25rem;
  }

  .service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }

  .service-icon i {
    font-size: 1.25rem;
  }

  .project-image {
    height: 150px;
  }

  .mission-card,
  .vision-card {
    padding: 1.5rem;
  }

  .value-item {
    padding: 1.25rem;
  }

  .stat-card {
    padding: 1.25rem 1rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    padding: 0.625rem;
    font-size: 0.8125rem;
  }

  .info-card {
    padding: 1.25rem;
  }
}

/* LANDSCAPE MOBILE */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-content {
    padding: 1rem 0;
  }

  .hero-stats {
    flex-direction: row;
    gap: 1.5rem;
    margin-top: 1rem;
  }

  .section-projects,
  .section-about,
  .section-services,
  .section-impact,
  .section-contact {
    padding: 3rem 0;
  }
}

/* PRINT STYLES */
@media print {
  .navbar,
  .hero-scroll-indicator,
  .fab,
  .back-to-top,
  .modal-overlay,
  .projects-filter {
    display: none !important;
  }

  .hero {
    background: white !important;
    color: black !important;
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-overlay {
    display: none !important;
  }

  .section-projects,
  .section-about,
  .section-services,
  .section-impact,
  .section-contact {
    background: white !important;
    color: black !important;
    padding: 2rem 0;
  }

  .service-card,
  .project-card,
  .value-item,
  .stat-card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  .btn-primary,
  .btn-secondary {
    border: 1px solid #ccc !important;
    background: white !important;
    color: black !important;
  }
}

/* HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
  :root {
    --clr-primary: #b45309;
    --clr-secondary: #0f766e;
    --clr-text: #000000;
    --clr-text-light: #333333;
  }

  .service-card,
  .project-card,
  .value-item,
  .stat-card {
    border: 2px solid var(--clr-primary);
  }

  .btn-primary,
  .btn-secondary {
    border: 2px solid currentColor;
  }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-arrow {
    animation: none;
  }

  .loading-spinner {
    animation: none;
  }

  .progress-bar::after {
    animation: none;
  }

  .project-status::before {
    animation: none;
  }
}