
/* Base y Reset */
:root {
  --color-primary: #0A2463;
  --color-secondary: #3E92CC;
  --color-accent: #D8315B;
  --color-dark: #1E1E1E;
  --color-light: #FFFFFF;
  --color-gray: #F5F5F5;
  --color-gray-dark: #333333;
  --color-gray-medium: #666666;
  --color-gray-light: #EEEEEE;
  --font-main: 'Poppins', sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --radius: 5px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-dark);
  background-color: var(--color-light);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: var(--transition);
}

a:hover {
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-primary);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--color-gray-medium);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-light);
}

.btn-primary:hover {
  background-color: #071d50;
  color: var(--color-light);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-light);
}

.btn-secondary:hover {
  background-color: #2d7db3;
  color: var(--color-light);
}

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-light);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
}

#header.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.95);
}

#header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--color-dark);
  letter-spacing: 1px;
}

nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
}

.nav-menu li {
  margin: 0 15px;
}

.nav-menu a {
  color: var(--color-gray-dark);
  font-weight: 500;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition);
}

.nav-menu a:hover::after, 
.nav-menu a.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.contact-info {
  display: flex;
  align-items: center;
}

.contact-link {
  display: flex;
  align-items: center;
  margin-left: 20px;
  color: var(--color-gray-dark);
}

.contact-link i {
  margin-right: 5px;
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  background-color: var(--color-gray);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10,36,99,0.05) 0%, rgba(62,146,204,0.05) 100%);
}

.hero .container {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  padding-right: 50px;
}

.hero-image {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-title {
  font-size: 2.8rem;
  color: var(--color-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-gray-medium);
  margin-bottom: 30px;
}

/* Services Section */
.services {
  padding: 100px 0;
  background-color: var(--color-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--color-light);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Process Section */
.process {
  padding: 100px 0;
  background-color: var(--color-gray);
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.step {
  flex-basis: calc(25% - 30px);
  margin-bottom: 30px;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30px;
  right: -15%;
  width: 30%;
  height: 2px;
  background-color: var(--color-primary);
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--color-primary);
  color: var(--color-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 auto 20px;
}

.step-content {
  text-align: center;
}

.step-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* Blog Section */
.blog {
  padding: 100px 0;
  background-color: var(--color-light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background-color: var(--color-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-content {
  padding: 20px;
}

.blog-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 500;
  color: var(--color-primary);
}

.read-more:hover {
  color: var(--color-secondary);
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  color: var(--color-light);
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

.cta .btn-secondary {
  background-color: var(--color-light);
  color: var(--color-primary);
}

.cta .btn-secondary:hover {
  background-color: var(--color-gray-light);
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background-color: var(--color-gray);
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.contact-info-container {
  flex: 1;
  min-width: 300px;
}

.contact-form-container {
  flex: 2;
  min-width: 300px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-right: 15px;
}

.social-media {
  display: flex;
  margin-top: 30px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-primary);
  color: var(--color-light);
  border-radius: 50%;
  margin-right: 15px;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--color-secondary);
  transform: translateY(-5px);
}

.contact-form {
  background-color: var(--color-light);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  background-color: #e8f5e9;
  color: #388e3c;
  border-radius: var(--radius);
  margin-top: 20px;
}

.form-success i {
  font-size: 3rem;
  margin-bottom: 15px;
}

/* Newsletter Section */
.newsletter {
  padding: 80px 0;
  background-color: var(--color-gray-light);
}

.newsletter-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.newsletter-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 30px auto 0;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--color-gray-light);
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.newsletter-form button {
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Footer */
.footer {
  padding: 80px 0 30px;
  background-color: var(--color-dark);
  color: var(--color-light);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 50px;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
}

.footer-logo h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.footer-links, 
.footer-contact {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--color-secondary);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #ccc;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--color-light);
  padding-left: 5px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--color-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  margin-bottom: 0;
}

.footer-bottom-links a {
  color: #ccc;
  margin-left: 20px;
}

.footer-bottom-links a:hover {
  color: var(--color-light);
}

/* Media Queries */
@media screen and (max-width: 992px) {
  .container {
    padding: 0 30px;
  }
  
  .hero {
    padding: 150px 0 80px;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    padding-right: 0;
    margin-bottom: 50px;
    text-align: center;
  }
  
  .step {
    flex-basis: calc(50% - 30px);
  }
  
  .step:nth-child(2)::after {
    display: none;
  }
  
  .process-steps {
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background-color: var(--color-light);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    margin: 15px 0;
  }
  
  .contact-info {
    display: none;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .step {
    flex-basis: 100%;
  }
  
  .step::after {
    display: none;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: var(--radius);
    margin-bottom: 10px;
  }
  
  .newsletter-form button {
    border-radius: var(--radius);
  }
}

@media screen and (max-width: 576px) {
  body {
    font-size: 14px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 20px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    margin-top: 15px;
  }
  
  .footer-bottom-links a {
    margin: 0 10px;
  }
}
