/*
Theme Name: Tamarindo Fruits
Theme URI: https://tamarindofruits.com
Author: Tamarindo Solutions Barcelona, S.L.
Author URI: https://tamarindofruits.com
Description: Tema personalizado para Tamarindo Fruits - Distribuidores especializados en frutas frescas de calidad premium
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tamarindo
*/

* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --verde-oscuro: #1e4d3c;
      --verde-medio: #2d6b52;
      --amarillo: #f9c74f;
      --fondo: #f8f5f0;
      --blanco: #ffffff;
      --texto: #333333;
      --gris: #666666;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      line-height: 1.6;
      color: var(--texto);
      background: var(--fondo);
    }

    html {
      scroll-behavior: smooth;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    /* Header */
    header {
      background: linear-gradient(135deg, var(--verde-oscuro), var(--verde-medio));
      padding: 1rem 0;
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .header-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo-section {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .logo {
      width: 60px;
      height: 60px;
    }

    .logo img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .logo-text h1 {
      color: var(--amarillo);
      font-size: 1.5rem;
      margin: 0;
    }

    .logo-text p {
      color: white;
      font-size: 0.85rem;
    }

    nav ul {
      display: flex;
      list-style: none;
      gap: 0.5rem;
    }

    nav a {
      color: white;
      text-decoration: none;
      padding: 0.6rem 1rem;
      border-radius: 5px;
      transition: background 0.3s ease;
      font-size: 0.95rem;
    }

    nav a:hover,
    nav a:focus {
      background: rgba(255,255,255,0.15);
      outline: none;
    }

    .menu-toggle {
      display: none;
      flex-direction: column;
      gap: 4px;
      cursor: pointer;
      background: none;
      border: none;
      padding: 0.5rem;
    }

    .menu-toggle span {
      width: 25px;
      height: 3px;
      background: white;
      border-radius: 2px;
      transition: all 0.3s ease;
    }

    /* Hero */
    .hero {
      background: linear-gradient(135deg, rgba(30, 77, 60, 0.95), rgba(45, 107, 82, 0.95)),
                  url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"%3E%3Crect fill="%23f9c74f" width="1200" height="400"/%3E%3C/svg%3E');
      background-size: cover;
      background-position: center;
      color: white;
      padding: 5rem 2rem;
      text-align: center;
    }

    .hero h2 {
      font-size: clamp(2rem, 5vw, 2.5rem);
      margin-bottom: 1rem;
    }

    .hero p {
      font-size: clamp(1rem, 3vw, 1.2rem);
      max-width: 700px;
      margin: 0 auto 2rem;
    }

    .btn {
      display: inline-block;
      background: var(--amarillo);
      color: var(--verde-oscuro);
      padding: 1rem 2rem;
      border-radius: 50px;
      text-decoration: none;
      font-weight: bold;
      transition: all 0.3s ease;
      border: 2px solid var(--amarillo);
    }

    .btn:hover,
    .btn:focus {
      transform: translateY(-3px);
      box-shadow: 0 5px 20px rgba(249, 199, 79, 0.4);
      outline: none;
    }

    /* Section */
    section {
      padding: 4rem 2rem;
    }

    .section-title {
      text-align: center;
      font-size: clamp(1.8rem, 4vw, 2.2rem);
      color: var(--verde-oscuro);
      margin-bottom: 1rem;
    }

    .section-subtitle {
      text-align: center;
      color: var(--gris);
      font-size: 1.1rem;
      margin-bottom: 3rem;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
    }

    /* Grid */
    .grid-2 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      margin-top: 2rem;
    }

    .grid-3 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
      margin-top: 2rem;
    }

    .grid-4 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 2rem;
      margin-top: 2rem;
    }

    /* Card */
    .card {
      background: white;
      padding: 2rem;
      border-radius: 10px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.08);
      transition: all 0.3s ease;
    }

    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    }

    .card-icon {
      font-size: 2.5rem;
      display: block;
      margin-bottom: 1rem;
    }

    .card h3 {
      color: var(--verde-oscuro);
      margin-bottom: 1rem;
      font-size: 1.3rem;
    }

    .card p, .card li {
      color: var(--gris);
      line-height: 1.7;
    }

    /* Stats */
    .stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 2rem;
      margin: 3rem 0;
    }

    .stat-item {
      text-align: center;
      padding: 2rem;
    }

    .stat-number {
      font-size: 3rem;
      font-weight: bold;
      color: var(--verde-oscuro);
      display: block;
      margin-bottom: 0.5rem;
    }

    .stat-label {
      color: var(--gris);
      font-size: 1.1rem;
    }

    /* Values */
    .value-item {
      display: flex;
      align-items: flex-start;
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .value-icon {
      font-size: 2.5rem;
      flex-shrink: 0;
    }

    .value-content h3 {
      color: var(--verde-oscuro);
      margin-bottom: 0.5rem;
      font-size: 1.3rem;
    }

    .value-content p {
      color: var(--gris);
      line-height: 1.7;
    }

    /* Timeline */
    .timeline {
      position: relative;
      max-width: 800px;
      margin: 3rem auto;
      padding-left: 2rem;
    }

    .timeline::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 3px;
      background: var(--amarillo);
    }

    .timeline-item {
      position: relative;
      padding-left: 2rem;
      margin-bottom: 2rem;
    }

    .timeline-item::before {
      content: '';
      position: absolute;
      left: -0.6rem;
      top: 0.5rem;
      width: 15px;
      height: 15px;
      border-radius: 50%;
      background: var(--amarillo);
      border: 3px solid var(--verde-oscuro);
    }

    .timeline-year {
      color: var(--verde-oscuro);
      font-weight: bold;
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
    }

    .timeline-content {
      background: white;
      padding: 1.5rem;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    /* Country cards */
    .country-card {
      background: white;
      padding: 2rem;
      border-radius: 10px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.08);
      text-align: center;
      transition: all 0.3s ease;
    }

    .country-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    }

    .country-flag {
      font-size: 4rem;
      margin-bottom: 1rem;
    }

    .country-card h3 {
      color: var(--verde-oscuro);
      font-size: 1.5rem;
      margin-bottom: 1rem;
    }

    .country-card p {
      color: var(--gris);
      line-height: 1.7;
      text-align: left;
    }

    /* Highlight box */
    .highlight-box {
      background: linear-gradient(135deg, var(--verde-oscuro), var(--verde-medio));
      color: white;
      padding: 3rem;
      border-radius: 15px;
      margin-top: 3rem;
    }

    .highlight-box h3 {
      color: var(--amarillo);
      font-size: 1.8rem;
      margin-bottom: 2rem;
      text-align: center;
    }

    .highlight-box h4 {
      color: var(--amarillo);
      margin-bottom: 1rem;
    }

    .styled-list {
      list-style: none;
      padding-left: 0;
    }

    .styled-list li {
      padding-left: 1.5rem;
      margin-bottom: 0.8rem;
      position: relative;
    }

    .styled-list li::before {
      content: '✓';
      position: absolute;
      left: 0;
      color: var(--amarillo);
      font-weight: bold;
    }

    /* Info box */
    .info-box {
      background: linear-gradient(135deg, rgba(30, 77, 60, 0.05), rgba(45, 107, 82, 0.05));
      border-left: 4px solid var(--verde-oscuro);
      padding: 2rem;
      border-radius: 8px;
      margin: 2rem 0;
    }

    .info-box h3 {
      color: var(--verde-oscuro);
      margin-bottom: 1rem;
      font-size: 1.4rem;
    }

    .info-box p {
      color: var(--gris);
      line-height: 1.7;
    }

    /* Contact */
    .contact-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
      margin-top: 3rem;
    }

    .contact-card {
      background: white;
      padding: 2rem;
      border-radius: 10px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.08);
      text-align: center;
      transition: all 0.3s ease;
    }

    .contact-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    }

    .contact-icon {
      font-size: 3rem;
      margin-bottom: 1rem;
      display: block;
    }

    .contact-card h3 {
      color: var(--verde-oscuro);
      margin-bottom: 1rem;
      font-size: 1.3rem;
    }

    .contact-card a {
      color: var(--verde-medio);
      text-decoration: none;
      font-weight: 500;
      transition: color 0.3s ease;
    }

    .contact-card a:hover,
    .contact-card a:focus {
      color: var(--verde-oscuro);
      text-decoration: underline;
    }

    /* Footer */
    footer {
      background: var(--verde-oscuro);
      color: white;
      text-align: center;
      padding: 2rem;
    }

    footer a {
      color: var(--amarillo);
      text-decoration: none;
      transition: color 0.3s ease;
    }

    footer a:hover,
    footer a:focus {
      color: white;
      text-decoration: underline;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .menu-toggle {
        display: flex;
      }

      nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--verde-oscuro);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
      }

      nav.active {
        max-height: 400px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
      }

      nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
      }

      nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
      }

      .hero {
        padding: 3rem 1rem;
      }

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

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

      .timeline {
        padding-left: 1.5rem;
      }

      .timeline-item {
        padding-left: 1.5rem;
      }

      section {
        padding: 3rem 1rem;
      }

      .container {
        padding: 0 1rem;
      }
    }

    @media (max-width: 480px) {
      .grid-2,
      .grid-3 {
        grid-template-columns: 1fr;
      }

      .logo {
        width: 50px;
        height: 50px;
      }

      .logo-text h1 {
        font-size: 1.2rem;
      }

      .logo-text p {
        font-size: 0.75rem;
      }
    }

    /* Animations */
    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .card,
    .country-card,
    .contact-card {
      animation: fadeIn 0.6s ease-out;
    }

    /* Skip to main content for accessibility */
    .skip-link {
      position: absolute;
      top: -40px;
      left: 0;
      background: var(--amarillo);
      color: var(--verde-oscuro);
      padding: 0.5rem 1rem;
      text-decoration: none;
      z-index: 100;
    }

    .skip-link:focus {
      top: 0;
    }
  
    .machinery-images {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      margin: 3rem 0;
    }

    .machinery-image {
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 5px 20px rgba(0,0,0,0.15);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .machinery-image:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

    .machinery-image img {
      width: 100%;
      height: auto;
      display: block;
    }


    .machinery-section {
      margin-top: 3rem;
    }

    .machinery-section-title {
      text-align: center;
      font-size: 1.8rem;
      color: var(--amarillo);
      margin-bottom: 1.5rem;
      font-weight: 600;
    }

    .machinery-grid-2 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
      gap: 2rem;
      margin-bottom: 3rem;
    }

    .machinery-caption {
      background: var(--verde-oscuro);
      color: white;
      padding: 1rem;
      text-align: center;
      font-weight: 500;
    }