/* 
* Traducciones.cl - Main Stylesheet
* Modern, responsive design for translation services website
*/

/* --- Base Styles --- */
:root {
  --primary-color: #1B7B34;
  --secondary-color: #669966;
  --accent-color: #88A583;
  --light-color: #E9F1DC;
  --dark-color: #333300;
  --text-color: #333333;
  --white: #FFFFFF;
  --gray: #F5F5F5;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 4px;
  --container-padding: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

section {
  padding: 4rem 0;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.primary-btn {
  background-color: var(--primary-color);
  color: var(--white);
}

.primary-btn:hover {
  background-color: #0D5C1E;
  color: var(--white);
}

.secondary-btn {
  background-color: var(--secondary-color);
  color: var(--white);
}

.secondary-btn:hover {
  background-color: #558855;
  color: var(--white);
}

.outline-btn {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.outline-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-link {
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  display: inline-block;
  padding: 0.25rem 0;
}

.btn-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.btn-link:hover::after {
  width: 100%;
}

/* --- Header Styles --- */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--container-padding);
}

.logo img {
  max-height: 60px;
}

.main-menu {
  display: flex;
}

.main-menu li {
  margin: 0 0.75rem;
  position: relative;
}

.main-menu a {
  font-weight: 600;
  padding: 0.5rem 0;
  display: block;
  color: var(--dark-color);
}

.main-menu a:hover {
  color: var(--primary-color);
}

.language-selector {
  display: flex;
  align-items: center;
}

.english-version {
  display: flex;
  align-items: center;
}

.english-version img {
  margin-right: 0.5rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--dark-color);
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 6rem 0;
}

.hero-section h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Services Overview --- */
.services-overview {
  text-align: center;
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card img {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
}

.service-card p {
  margin-bottom: 1.5rem;
}

.service-card .btn-link {
  margin-top: auto;
}

/* --- About Us Section --- */
.about-us {
  background-color: var(--light-color);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  padding-right: 2rem;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* --- Languages Section --- */
.languages-section {
  background-color: var(--white);
  text-align: center;
}

.section-intro {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.language-item {
  text-align: center;
}

.language-item img {
  width: 60px;
  height: 40px;
  margin: 0 auto 1rem;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.additional-info {
  font-style: italic;
  margin-top: 2rem;
}

/* --- Testimonials Section --- */
.testimonials {
  background-color: var(--light-color);
  text-align: center;
}

.testimonial-slider {
  max-width: 800px;
  margin: 3rem auto;
  position: relative;
}

.testimonial-content {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: left;
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.client-info {
  display: flex;
  align-items: center;
}

.client-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
}

.client-info h4 {
  margin-bottom: 0.25rem;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.prev-btn, .next-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  position: relative;
}

.prev-btn::before, .next-btn::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--primary-color);
  border-left: 2px solid var(--primary-color);
  position: absolute;
  top: 50%;
  left: 50%;
}

.prev-btn::before {
  transform: translate(-40%, -50%) rotate(-45deg);
}

.next-btn::before {
  transform: translate(-60%, -50%) rotate(135deg);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
}

.cta-section h2, .cta-section p {
  color: var(--white);
}

.cta-section p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Footer --- */
footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--light-color);
}

.footer-column a:hover {
  color: var(--white);
}

.eco-friendly {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
}

.eco-friendly img {
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
  display: inline-block;
}

address {
  font-style: normal;
}

address p {
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
}

.social-links img {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.footer-links li {
  margin: 0 1rem;
}

/* --- Media Queries --- */
@media (max-width: 992px) {
  :root {
    --container-padding: 1.5rem;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-text {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .main-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 0;
    flex-direction: column;
    background-color: var(--white);
    overflow: hidden;
    transition: height 0.3s ease;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  }
  
  .main-menu.active {
    height: 350px;
  }
  
  .main-menu li {
    margin: 0;
    width: 100%;
    text-align: center;
  }
  
  .main-menu a {
    padding: 1rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .services-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  :root {
    --container-padding: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero-section {
    padding: 4rem 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .footer-grid {
    gap: 2rem;
  }
  
  .footer-column {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .eco-friendly {
    justify-content: center;
  }
  
  .client-info {
    flex-direction: column;
    text-align: center;
  }
  
  .client-info img {
    margin: 0 auto 1rem;
  }
} 