/* Base styles */
:root {
  /* Color Palette */
  --primary: #8B0000;
  --primary-light: #a52a2a;
  --primary-dark: #6b0000;
  --secondary: #F5F5DC;
  --secondary-dark: #e8e8cf;
  --accent: #FFD700;
  --accent-dark: #e6c300;
  --dark: #333333;
  --light: #FFFAF0;
  --gray-light: #f0f0f0;
  --gray: #d0d0d0;
  --gray-dark: #707070;
  --success: #4CAF50;
  --warning: #FFC107;
  --error: #F44336;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--dark);
  background-color: var(--light);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--primary);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent);
  margin: var(--space-sm) auto 0;
  border-radius: var(--radius-sm);
}

/* Header styles */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: var(--space-md) 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

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

.logo h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.contact-info {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 500;
}

.phone-link:hover {
  color: var(--primary);
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background-color: #25D366;
  color: white;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 500;
}

.whatsapp-btn:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
}

/* Hero section */
#hero {
  min-height: 100vh;
  padding: 120px 0 var(--space-xxl);
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
              url('../image/Hero-Image-new-800px.jpg');
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-content {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}


/* Hero section toldos*/
#hero-toldos {
  min-height: 100vh;
  padding: 120px 0 var(--space-xxl);
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
              url('../image/toldos-portada.jpg');
  background-size: cover;
  background-position: center;
  color: white;
}








.contact-form-container {
  flex: 1;
}

.form-card {
  background-color: white;
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.form-card h3 {
  color: var(--primary);
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--gray);
  border-radius: var(--radius-sm);
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: var(--space-md);
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.submit-btn:hover {
  background-color: var(--primary-dark);
}

.cta-button {
  display: inline-block;
  padding: var(--space-md) var(--space-lg);
  background-color: var(--accent);
  color: var(--dark);
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-align: center;
  transition: var(--transition-fast);
}

.cta-button:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
}

/* Products section */
#products {
  padding: var(--space-xxl) 0;
  background-color: var(--light);
}

.category-container {
  margin-bottom: var(--space-xxl);
}

.category-container h3 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  justify-items: center;
  margin: 0 auto;
  max-width: 1200px;
}

.product-card {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  width: 100%;
  max-width: 350px;
  margin: 0 auto;

}

.product-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.product-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: var(--transition-normal);
}

.preview-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--primary);
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
  transition: var(--transition-normal);
}

.preview-btn:hover {
  background-color: var(--primary-dark);
}

.product-card:hover .product-image::after {
  opacity: 1;
}

.product-card:hover .preview-btn {
  opacity: 1;
}

.product-card h4 {
  padding: var(--space-md);
  text-align: center;
  font-weight: 500;
}

/* Benefits section */
#benefits {
  padding: var(--space-xxl) 0;
  background-color: var(--secondary);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.benefit-card {
  background-color: white;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

/* Animation styles for benefit cards */
.benefit-card:nth-child(1) {
  animation: slideInLeft 0.6s ease-out;
}

.benefit-card:nth-child(2) {
  animation: slideInRight 0.6s ease-out;
}

.benefit-card:nth-child(3) {
  animation: slideInUp 0.6s ease-out;
}

.benefit-card:nth-child(4) {
  animation: fadeIn 0.6s ease-out;
}

.benefit-card:nth-child(5) {
  animation: scaleIn 0.6s ease-out;
}

.benefit-card:nth-child(6) {
  animation: rotateIn 0.6s ease-out;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.1) rotate(5deg);
}

.benefit-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
  transition: var(--transition-normal);
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

.benefit-card p {
  color: var(--gray-dark);
}

/* New animation keyframes */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

/* Add animation delay for staggered effect */
.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefit-card:nth-child(4) { animation-delay: 0.4s; }
.benefit-card:nth-child(5) { animation-delay: 0.5s; }
.benefit-card:nth-child(6) { animation-delay: 0.6s; }

/* CTA section */
.cta-section {
  padding: var(--space-xxl) 0;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('../image/Footer-image-new.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.cta-content p {
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
}

.cta-button.phone {
  background-color: var(--primary);
  color: white;
}

.cta-button.phone:hover {
  background-color: var(--primary-dark);
}

.cta-button.whatsapp {
  background-color: #25D366;
  color: white;
}

.cta-button.whatsapp:hover {
  background-color: #128C7E;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: var(--space-lg) 0;
}

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

.contact-methods {
  display: flex;
  gap: var(--space-lg);
}

.contact-methods a {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.contact-methods a:hover {
  color: var(--accent);
}

/* Responsive styles */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

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

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }

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

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

  .benefit-card {
    padding: var(--space-md);
  }

  .benefit-icon {
    font-size: 2.2rem;
  }

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

@media (max-width: 768px) {
  .container {
    max-width: 540px;
    padding: 0 var(--space-md);
  }

  .header-content {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .contact-info {
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
  }

  .whatsapp-btn, .lang-switch {
    width: 100%;
    justify-content: center;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xl);
  }

  .hero-text {
    margin-bottom: var(--space-xl);
  }

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

  .contact-form-container {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .product-card {
    max-width: 100%;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .cta-buttons {
    flex-direction: column;
    gap: var(--space-md);
  }

  .cta-button {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .contact-methods {
    flex-direction: column;
    gap: var(--space-md);
  }

  .modal-content {
    width: 95%;
    max-height: 85vh;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .header {
    padding: var(--space-sm) 0;
  }

  .logo h2 {
    font-size: 1.3rem;
  }

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

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

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

  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .product-card {
    max-width: 100%;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .benefit-card {
    padding: var(--space-md);
  }

  .benefit-icon {
    font-size: 2rem;
  }

  .benefit-card h3 {
    font-size: 1.2rem;
  }

  .form-card {
    padding: var(--space-md);
  }

  .form-group input,
  .form-group textarea {
    padding: var(--space-sm);
  }

  .submit-btn {
    padding: var(--space-sm);
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .modal-content {
    width: 100%;
    max-height: 80vh;
    margin: var(--space-sm);
  }

  .modal-close {
    width: 25px;
    height: 25px;
  }
}

/* Additional responsive utilities */
.hide-on-mobile {
  display: block;
}

.show-on-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none;
  }

  .show-on-mobile {
    display: block;
  }
}

/* Responsive image handling */
img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.product-image {
  /* aspect-ratio: 4 / 3; */
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Responsive typography */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.75rem; }
  h3, .h3 { font-size: 1.5rem; }
  h4, .h4 { font-size: 1.25rem; }
  h5, .h5 { font-size: 1.1rem; }
  h6, .h6 { font-size: 1rem; }
}

/* Responsive spacing */
@media (max-width: 768px) {
  :root {
    --space-xs: 3px;
    --space-sm: 6px;
    --space-md: 12px;
    --space-lg: 18px;
    --space-xl: 24px;
    --space-xxl: 36px;
  }
}

/* Responsive navigation */
@media (max-width: 768px) {
  .lang-switch {
    width: 100%;
    justify-content: center;
  }

  .whatsapp-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Responsive form elements */
@media (max-width: 576px) {
  .form-group {
    margin-bottom: var(--space-sm);
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.9rem;
  }
}

/* Responsive modal */
@media (max-width: 576px) {
  .modal-overlay {
    padding: var(--space-sm);
  }

  .modal-content {
    border-radius: var(--radius-sm);
  }
}

/* Print styles */
@media print {
  .header,
  .cta-section,
  .footer,
  .preview-btn,
  .modal-overlay {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  a {
    text-decoration: none;
    color: black;
  }

  img {
    max-width: 100% !important;
  }
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scale-in {
  animation: scaleIn 0.3s ease-in;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background-color: var(--primary);
  color: white;
  padding: var(--space-xs) var(--space-md);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-switch:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.lang-switch i {
  font-size: 1.1rem;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  transform: scale(0.9);
  transition: var(--transition-normal);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

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

.modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background-color: white;
  transform: rotate(90deg);
}

.modal-close i {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Notification styles */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  color: white;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification.success {
  background-color: var(--success);
}

.notification.error {
  background-color: var(--error);
}

.notification.info {
  background-color: var(--primary);
}

/* Form loading state */
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.product-card .product-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.category-container:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-container:last-child .products-grid {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  width: 100%;
  max-width: 800px;
}

.category-container:last-child .product-image {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.category-container:last-child .product-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.category-container:last-child .product-card h4 {
  text-align: center;
  width: 100%;
  padding: var(--space-md);
  margin: 0;
}

.category-container:last-child .product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
