/* ===================================
   BUENOS AIRES TOUR - ESTILOS CSS
   Basado en Castelli Brand Guidelines
   =================================== */

/* ===== VARIABLES CSS ===== */
:root {
  /* Colores principales según Castelli Brand Guidelines */
  --castelli-red: #e51e2b; /* PANTONE 485 C / CMYK 10/100/100/0 */
  --castelli-gray: #585858; /* PANTONE COOL GRAY 11 C / CMYK 0/0/0/80 */
  --castelli-white: #ffffff;
  --castelli-black: #000000;

  /* Tipografía */
  --font-primary: "Oswald", "Arial Narrow", sans-serif; /* Secondary typeface para web */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;

  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  /* Tamaños de fuente */
  --font-size-small: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;
}

/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-light);
  line-height: 1.6;
  color: var(--castelli-gray);
}

/* ===== FORM VALIDATION STYLES ===== */
.field-error {
  border-color: #f44336 !important;
  box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2) !important;
}

.field-success {
  border-color: #4caf50 !important;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2) !important;
}

.field-error-message {
  color: #f44336;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.field-error-container {
  position: relative;
}

.character-counter {
  font-size: 0.75rem;
  color: #666;
  text-align: right;
  margin-top: 0.25rem;
}

.character-counter.warning {
  color: #ff9800;
  font-weight: 600;
}

/* Loading state for submit button */
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-submit .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== TIPOGRAFÍA ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-semibold);
  color: var(--castelli-red);
  line-height: 1.3;
  letter-spacing: 0.05em; /* Espaciado entre letras según guidelines */
  text-transform: uppercase;
}

h1 {
  font-size: var(--font-size-4xl);
  letter-spacing: 0.1em; /* Mayor espaciado para headlines */
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--castelli-gray);
}

a {
  color: var(--castelli-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--castelli-gray);
}

/* ===== CONTENEDORES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ===== NAVEGACIÓN ===== */
.header {
  background: var(--castelli-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* LOGO */
.logo {
  flex-shrink: 0;
  height: 60px;
  display: flex;
  align-items: center;
}

.logo a {
  display: block;
  height: 100%;
}

.logo img {
  height: 100%;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* SEGUNDO LOGO (CASTELLI HORIZONTAL) */
.second-logo {
    height: 60px;
    display: flex;
    align-items: center;
 }

  .second-logo img {
    height: 45px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

/* MENÚ DE NAVEGACIÓN */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--castelli-gray);
  font-weight: var(--font-weight-semibold);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--castelli-red);
}

/* Efecto hover adicional */
.nav-menu li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--castelli-white);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  width: 80%;
}

.nav-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-icon {
  position: relative;
  color: #585858;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s;
}

.nav-icon:hover {
  background: rgba(227, 30, 36, 0.1);
  color: #e31e24;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e31e24;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Mini Cart Dropdown */
.cart-dropdown {
  position: absolute;
  top: 100%;
  right: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 350px;
  max-height: 500px;
  z-index: 1000;
  border: 1px solid #eee;
}

.cart-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.cart-dropdown-header h4 {
  margin: 0;
  color: #585858;
  font-size: 1rem;
}

.cart-dropdown-header button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}

.cart-dropdown-items {
  max-height: 300px;
  overflow-y: auto;
  padding: 1rem;
}

.mini-cart-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.mini-cart-item:last-child {
  border-bottom: none;
}

.mini-cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.mini-cart-item-info {
  flex: 1;
}

.mini-cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #333;
}

.mini-cart-item-details {
  font-size: 0.8rem;
  color: #666;
}

.mini-cart-item-price {
  font-weight: 600;
  color: #e31e24;
  font-size: 0.9rem;
}

.cart-dropdown-footer {
  padding: 1rem;
  border-top: 1px solid #eee;
  background: #f8f9fa;
  border-radius: 0 0 8px 8px;
}

.cart-total {
  text-align: center;
  font-weight: bold;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #333;
}

.cart-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.empty-mini-cart {
  text-align: center;
  padding: 2rem;
  color: #666;
}

/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--castelli-white);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Animación del hamburger */
.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.menu-toggle {
  display: none;
  font-size: var(--font-size-xl);
  color: var(--castelli-red);
  cursor: pointer;
}

/* ===== SECCIONES HERO ===== */
.about-hero,
.product-hero,
.contact-hero {
  background: linear-gradient(135deg, var(--castelli-red) 0%, #c41e3a 100%);
  color: var(--castelli-white);
  text-align: center;
  padding: calc(var(--spacing-xxl) * 2) var(--spacing-md) var(--spacing-xxl);
}

.hero-content h1 {
  color: var(--castelli-white);
  font-size: var(--font-size-5xl);
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.1em;
}

.hero-content p {
  font-size: var(--font-size-xl);
  color: var(--castelli-white);
  opacity: 0.9;
  font-weight: var(--font-weight-light);
}

/* ===== SECCIONES PRINCIPALES ===== */
.about-main,
.contact-main {
  padding: var(--spacing-xxl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
  font-size: var(--font-size-3xl);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--castelli-red);
  margin: var(--spacing-md) auto 0;
}

/* ===== ABOUT - INTRO ===== */
.about-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-xxl);
}

.about-intro h2 {
  margin-bottom: var(--spacing-lg);
}

.about-intro p {
  font-size: var(--font-size-lg);
  line-height: 1.7;
}

/* ===== TIMELINE ===== */
.timeline {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--castelli-red);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-xxl);
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  flex: 1;
  padding: var(--spacing-lg);
  background: var(--castelli-white);
  border: 2px solid var(--castelli-red);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-xl);
}

.timeline-year {
  background-color: var(--castelli-red);
  color: var(--castelli-white);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 50px;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
  min-width: 80px;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* ===== GRIDS ===== */
.values-grid,
.stats-grid,
.team-grid,
.partners-grid,
.offices-grid {
  display: grid;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.values-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.partners-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: center;
}

.offices-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ===== CARDS ===== */

.values-section {
  margin-bottom: 40px;
}
.value-card,
.office-card {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--castelli-white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.value-card:hover,
.office-card:hover {
  border-color: var(--castelli-red);
  box-shadow: 0 8px 25px rgba(229, 30, 43, 0.15);
  transform: translateY(-5px);
}

.value-icon,
.office-icon {
  font-size: var(--font-size-4xl);
  color: var(--castelli-red);
  margin-bottom: var(--spacing-md);
}

.value-card h3,
.office-card h4 {
  margin-bottom: var(--spacing-md);
  color: var(--castelli-gray);
}

/* ===== STATS ===== */
.stats-section {
  background-color: var(--castelli-red);
  color: var(--castelli-white);
  padding: var(--spacing-xxl) 0;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-semibold);
  color: var(--castelli-white);
  display: block;
  margin-bottom: var(--spacing-sm);
}

.stat-label {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== TEAM ===== */
.team-member {
  text-align: center;
  background: var(--castelli-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.member-photo {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-name {
  margin: var(--spacing-md) 0 var(--spacing-xs);
  padding: 0 var(--spacing-md);
  color: var(--castelli-gray);
}

.member-position {
  color: var(--castelli-red);
  margin-bottom: var(--spacing-md);
  padding: 0 var(--spacing-md);
  font-size: var(--font-size-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.member-social {
  padding: var(--spacing-md);
  border-top: 1px solid #f0f0f0;
}

.member-social a {
  display: inline-block;
  margin: 0 var(--spacing-xs);
  padding: var(--spacing-xs);
  font-size: var(--font-size-lg);
  transition: color 0.3s ease;
}

/* ===== PARTNERS ===== */
.partners-section {
  background-color: #f8f9fa;
  padding: var(--spacing-xxl) 0;
}

.partner-logo {
  text-align: center;
  padding: var(--spacing-md);
  background: var(--castelli-white);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.partner-logo:hover {
  transform: scale(1.05);
}

.partner-logo img {
  max-width: 100%;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.partner-logo:hover img {
  opacity: 1;
}

/* ===== CONTACT ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-xxl);
  margin-bottom: var(--spacing-xxl);
}

.contact-sidebar {
  background: #f8f9fa;
  padding: var(--spacing-xl);
  border-radius: 8px;
}

.contact-sidebar h2 {
  margin-bottom: var(--spacing-xl);
  font-size: var(--font-size-2xl);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-xl);
}

.contact-icon {
  font-size: var(--font-size-xl);
  color: var(--castelli-red);
  margin-right: var(--spacing-md);
  margin-top: var(--spacing-xs);
}

.contact-text h4 {
  margin-bottom: var(--spacing-xs);
  color: var(--castelli-gray);
  font-size: var(--font-size-lg);
}

.contact-text p {
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-base);
}

.social-links {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid #e0e0e0;
}

.social-links h4 {
  margin-bottom: var(--spacing-md);
  color: var(--castelli-gray);
}

.social-buttons {
  display: flex;
  gap: var(--spacing-sm);
}

.social-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--castelli-red);
  color: var(--castelli-white);
  border-radius: 50%;
  font-size: var(--font-size-lg);
  transition: all 0.3s ease;
}

.social-buttons a:hover {
  background-color: var(--castelli-gray);
  transform: translateY(-2px);
}

/* ===== FORMULARIOS ===== */
.contact-form-wrapper {
  background: var(--castelli-white);
  padding: var(--spacing-xl);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form-wrapper h2 {
  margin-bottom: var(--spacing-xl);
  font-size: var(--font-size-2xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: var(--font-weight-normal);
  color: var(--castelli-gray);
  font-size: var(--font-size-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--castelli-red);
}

.form-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.form-checkbox input {
  margin-right: var(--spacing-sm);
}
.preference {
  display: block;
}
.preference label {
  margin-right: var(--spacing-lg);
}

.form-buttons {
  display: flex;
  gap: var(--spacing-md);
}

.btn-submit,
.btn-reset {
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: 4px;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit {
  background-color: var(--castelli-red);
  color: var(--castelli-white);
}

.btn-submit:hover {
  background-color: #c41e3a;
  transform: translateY(-2px);
}

.btn-reset {
  background-color: var(--castelli-gray);
  color: var(--castelli-white);
}

.btn-reset:hover {
  background-color: #404040;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: var(--spacing-md);
  border-radius: 4px;
  margin-bottom: var(--spacing-md);
  display: none;
}

.success-message.show {
  display: block;
}

.success-message i {
  margin-right: var(--spacing-sm);
}

/* ===== MAPA ===== */
.map-section {
  margin-top: var(--spacing-xxl);
}

.map-container {
  background: var(--castelli-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-header {
  padding: var(--spacing-xl);
  text-align: center;
  background: #f8f9fa;
}

.map-header h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--castelli-red);
}

.map-frame {
  height: 400px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== FAQ ===== */
.faq-section {
  background-color: #f8f9fa;
  padding: var(--spacing-xxl) 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--castelli-white);
  border-radius: 8px;
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: var(--spacing-lg);
  background: var(--castelli-white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f8f9fa;
}

.faq-question span {
  font-weight: var(--font-weight-semibold);
  color: var(--castelli-gray);
  font-size: var(--font-size-lg);
}

.faq-icon {
  color: var(--castelli-red);
  transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  color: var(--castelli-gray);
  line-height: 1.6;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--castelli-gray) !important; /* #585858 - GRIS, NO ROJO */
  color: var(--castelli-white) !important;
  padding: 40px 2rem 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
}

/* CORRECCIÓN ESPECÍFICA PARA EL LOGO DEL FOOTER */
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo a {
  display: block;
  margin-bottom: 1rem;
  max-width: 150px; /* Limitar ancho del contenedor */
}

.footer-logo img {
  height: auto !important;
  width: 100% !important;
  max-width: 120px !important; /* TAMAÑO MUCHO MÁS PEQUEÑO */
  max-height: 35px !important; /* ALTURA MÁXIMA CONTROLADA */
  object-fit: contain !important;
  display: block;
}

/* Si usas la clase footer-section para el logo */
.footer-section.footer-logo img,
.footer-section img {
  height: auto !important;
  width: auto !important;
  max-width: 120px !important;
  max-height: 35px !important;
  object-fit: contain !important;
}

/* Títulos del footer */
.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--castelli-red) !important; /* Solo los títulos en rojo */
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Enlaces del footer */
.footer-section a {
  color: #ccc !important;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: var(--castelli-white) !important;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: #ccc;
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--castelli-white);
}
.footer-bottom p {
  color: var(--castelli-white);
}

/* Social icons si las tienes */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: var(--castelli-red);
  color: var(--castelli-white);
  border-radius: 50%;
  font-size: 1rem;
  transition: all 0.3s;
  text-decoration: none;
}

.social-icons a:hover {
  background: var(--castelli-white);
  color: var(--castelli-red);
  transform: translateY(-2px);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.75rem;
  }

  .menu-toggle {
    display: block;
  }
  .navbar {
    padding: 0.75rem 1rem;
  }

  .nav-icons {
    order: -1;
    margin-right: auto;
  }

  .cart-dropdown {
    right: 1rem;
    width: calc(100vw - 2rem);
    max-width: 350px;
  }

  .hamburger {
    display: flex;
  }


  .logo {
    height: 50px;
  }

  .logo img {
    max-width: 140px;
  }
  
  .second-logo{
      
  }

  .about-hero,
  .contact-hero {
    padding: var(--spacing-xxl) var(--spacing-md);
    margin-top: 80px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 50px;
  }

  .timeline-item:nth-child(even) {
    flex-direction: column;
  }

  .timeline-year {
    position: absolute;
    left: 0;
    margin-bottom: var(--spacing-md);
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-buttons {
    flex-direction: column;
  }

  .values-grid,
  .team-grid,
  .offices-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .navbar {
    padding: 0.5rem;
  }

  .logo {
    height: 45px;
  }

  .logo img {
    max-width: 120px;
  }

  .hero-content h1 {
    font-size: var(--font-size-3xl);
  }

  .hero-content p {
    font-size: var(--font-size-lg);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .social-buttons,
  .social-icons {
    justify-content: center;
  }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.value-card,
.team-member,
.office-card {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== UTILIDADES ===== */
.text-center {
  text-align: center;
}

.text-red {
  color: var(--castelli-red);
}

.text-gray {
  color: var(--castelli-gray);
}

.bg-red {
  background-color: var(--castelli-red);
}

.bg-gray {
  background-color: #f8f9fa;
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.pt-xl {
  padding-top: var(--spacing-xl);
}

.pb-xl {
  padding-bottom: var(--spacing-xl);
}

/* Main Content */
.main-content {
  padding: 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-title {
  text-align: center;
  font-size: 3rem;
  color: #585858;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.page-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #585858;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Filters */
.filters-section {
  background: #f5f5f5;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 3rem;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #585858;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.filter-group select,
.filter-group input {
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: #e31e24;
}

.filter-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.btn-primary {
  background: #e31e24;
  color: white;
}

.btn-primary:hover {
  background: #b51a1d;
}

.btn-secondary {
  background: #585858;
  color: white;
}

.btn-secondary:hover {
  background: #404040;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e31e24;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.product-info {
  padding: 1.5rem;
}

.product-category {
  color: #e31e24;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 1.3rem;
  font-weight: bold;
  color: #585858;
  margin-bottom: 0.5rem;
}

.product-description {
  color: #777;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.product-price {
  font-size: 1.4rem;
  font-weight: bold;
  color: #e31e24;
  margin-bottom: 1rem;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
  flex: 1;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
}

.pagination button {
  padding: 10px 15px;
  border: 2px solid #e31e24;
  background: white;
  color: #e31e24;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.pagination button:hover,
.pagination button.active {
  background: #e31e24;
  color: white;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 3rem;
  color: #777;
}

.no-results h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #585858;
}

/*  size buttons */

.sizes {
  margin: 1rem 0;
}
.sizes button {
  margin: 0.2rem;
  padding: 0.6rem 1rem;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  border-radius: 5px;
}
.sizes button.active {
  background: #e60023;
  color: #fff;
  border-color: #e60023;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-hero,
  .product-hero,
  .about-hero {
    margin-top: auto;
  }
  .navbar {
    padding: 1rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .filters-grid {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    justify-content: center;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .pagination {
    flex-wrap: wrap;
  }
}

/* ===== QUANTITY CONTROLS ===== */
.quantity-section {
  margin: 1rem 0;
  padding: 0.5rem 0;
  border-top: 1px solid #eee;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  width: 35px;
  height: 35px;
  border: 2px solid var(--castelli-red);
  background: white;
  color: var(--castelli-red);
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: var(--castelli-red);
  color: white;
}

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity-input {
  width: 60px;
  height: 35px;
  text-align: center;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
}

.quantity-input:focus {
  outline: none;
  border-color: var(--castelli-red);
}

/* Stock info */
.stock-info {
  font-size: 0.8rem;
  color: #666;
  margin-left: 1rem;
}

.stock-info.low-stock {
  color: var(--castelli-red);
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .quantity-controls {
    justify-content: center;
    margin: 0.5rem 0;
  }

  .quantity-btn {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .quantity-input {
    width: 50px;
    height: 30px;
    font-size: 0.9rem;
  }
}

/* ========================================
   HEADER RESPONSIVE STYLES
   Estilos para el header unificado con logos
   ======================================== */

/* Header navbar estilos */
.navbar {
  display: flex;
  align-items: center;
  padding: 0.75rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}

.logo {
  height: 50px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 100%;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}


/* Clases de visibilidad */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}


.nav-menu li a {
  text-decoration: none;
  color: #585858;
  font-weight: bold;
  transition: color 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  padding: 1rem 0;
  display: block;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: #e31e24;
}

.nav-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-icon {
  position: relative;
  color: #585858;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s;
}

.nav-icon:hover {
  background: rgba(227, 30, 36, 0.1);
  color: #e31e24;
}

/* Navegación móvil */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--castelli-gray);
  margin: 3px 0;
  transition: 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Visibilidad móvil */
  .mobile-only {
    display: flex;
  }
  
  .desktop-only {
    display: none;
  }
  
  .desktop-menu {
    display: none;
  }
  
  /* Menú móvil deslizante igual que index.html */
  .nav-menu {
    position: fixed;
    left: -100%;
    top: var(--header-height, 170px);
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: left 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 1000;
    list-style: none;
    margin: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li a {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    color: var(--castelli-gray);
    border-bottom: 1px solid #eee;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .nav-menu li a:hover {
    background-color: #f8f8f8;
    color: var(--castelli-red);
  }
  
  /* Navbar móvil */
  .navbar {
    justify-content: space-between;
    padding: 0.75rem 1rem;
  }
  
  .hamburger {
    display: flex;
    order: 1;
    z-index: 1001;
  }
  
  .logo {
    order: 2;
    height: 40px;
  }
  
  .nav-right {
    order: 3;
    margin-left: 0;
    gap: 0;
  }
}
