/* 
 * Global Styles
 * Cursos de Diseño Web
 * 2024
 */

/* Variables */
:root {
  --primary-color: #4a6de5;
  --primary-dark: #3451b2;
  --primary-light: #7b91f3;
  --secondary-color: #05d3b1;
  --secondary-dark: #04a88d;
  --secondary-light: #6febd0;
  --dark-color: #1a1a2e;
  --gray-color: #4a4a68;
  --light-gray: #e0e0e6;
  --bg-color: #ffffff;
  --text-color: #333333;
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Open Sans', sans-serif;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--body-font);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
}

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

a:hover {
  color: var(--primary-dark);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--dark-color);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.5rem;
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: var(--secondary-color);
}

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

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Header */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
  margin-right: 10px;
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--dark-color);
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
}

nav ul li a:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #4a6de5, #05d3b1);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
}

/* Page Header */
.page-header {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 3rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
}

/* Daily Inspiration */
.daily-inspiration {
  background-color: #f8f9fa;
  padding: 3rem 0;
  margin: 2rem 0;
}

.daily-inspiration h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.inspiration-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.inspiration-content blockquote {
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-left: 4px solid var(--primary-color);
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

#new-quote {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

#new-quote:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
}

/* Calculator */
.calculator {
  padding: 3rem 0;
  background-color: white;
}

.calculator h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.calculator-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.calculator-inputs {
  flex: 1;
  min-width: 300px;
}

.calculator-result {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--dark-color);
  color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input[type="number"],
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
}

#calculate {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  margin-top: 1rem;
}

#calculate:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

#budget-result {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0;
  color: var(--secondary-light);
}

.note {
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: center;
}

/* Blog Posts */
.blog-posts {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.blog-posts h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.post-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.post-image {
  height: 200px;
  overflow: hidden;
}

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

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

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.post-date {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
}

.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 1rem;
  position: relative;
}

.read-more:after {
  content: '→';
  margin-left: 5px;
  transition: var(--transition);
}

.read-more:hover:after {
  margin-left: 10px;
}

/* Single Post Styles */
.blog-post {
  padding: 2rem 0 4rem;
}

.post-header {
  text-align: center;
  margin-bottom: 2rem;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  color: var(--gray-color);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.post-featured-image {
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.post-featured-image img {
  width: 100%;
  height: auto;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
}

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content ul, 
.post-content ol {
  margin-bottom: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content .post-image {
  height: auto;
  margin: 2rem 0;
  text-align: center;
}

.post-content .post-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 0.5rem;
}

.post-content .post-image figcaption {
  font-size: 0.9rem;
  color: var(--gray-color);
  text-align: center;
}

.post-callout {
  background-color: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.post-callout h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.post-callout p:last-child {
  margin-bottom: 0;
}

.code-example {
  background-color: var(--dark-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 2rem 0;
  overflow-x: auto;
}

.code-example pre {
  margin: 0;
  color: #f8f9fa;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.quote-block {
  text-align: center;
  margin: 2.5rem 0;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
}

.quote-block blockquote {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.quote-block cite {
  display: block;
  color: var(--gray-color);
  font-size: 0.9rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--light-gray);
}

.post-tags span {
  margin-right: 0.5rem;
  color: var(--gray-color);
}

.post-tags a {
  display: inline-block;
  background-color: #f0f2f5;
  color: var(--gray-color);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin: 0.3rem 0.3rem 0.3rem 0;
  font-size: 0.9rem;
  transition: var(--transition);
}

.post-tags a:hover {
  background-color: var(--primary-light);
  color: white;
}

.post-share {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--light-gray);
}

.post-share span {
  margin-right: 1rem;
  color: var(--gray-color);
}

.post-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #f0f2f5;
  border-radius: 50%;
  margin-right: 0.75rem;
  transition: var(--transition);
}

.post-share a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-gray);
}

.post-navigation a {
  display: block;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.post-navigation a:hover {
  background-color: var(--light-gray);
  transform: translateY(-3px);
}

.post-navigation span {
  display: block;
  color: var(--gray-color);
  margin-bottom: 0.5rem;
}

.post-navigation h4 {
  margin-bottom: 0;
  color: var(--primary-color);
}

.post-navigation-previous {
  text-align: left;
}

.post-navigation-next {
  text-align: right;
}

@media (max-width: 768px) {
  .post-navigation {
    grid-template-columns: 1fr;
  }
  
  .post-navigation-next {
    text-align: left;
  }
}

/* About Page Styles */
.about-content {
  padding: 1rem 0 4rem;
}

.about-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.our-story {
  margin-bottom: 4rem;
}

.story-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.story-image {
  flex: 1;
  min-width: 300px;
}

.story-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.story-text {
  flex: 1;
  min-width: 300px;
}

.team-section {
  margin-bottom: 4rem;
}

.team-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.team-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

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

.team-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.team-card h3 {
  margin: 1.5rem 0 0.5rem;
}

.team-card p {
  padding: 0 1.5rem 1.5rem;
  margin-bottom: 0;
}

.team-card p:nth-of-type(1) {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.values-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

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

.value-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: white;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

.value-card h3 {
  margin-bottom: 1rem;
}

.value-card p {
  margin-bottom: 0;
}

/* Contact Page Styles */
.contact-section {
  padding: 1rem 0 4rem;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.info-card {
  display: flex;
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.info-icon {
  margin-right: 1.5rem;
  color: var(--primary-color);
  display: flex;
  align-items: flex-start;
}

.info-content h3 {
  margin-bottom: 0.5rem;
}

.info-content p {
  margin-bottom: 0;
}

.contact-map {
  margin-top: 1.5rem;
}

.map-container {
  height: 300px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.contact-form {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-form h2 {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-family: var(--body-font);
}

.form-group textarea {
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

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

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

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  position: relative;
  animation: modalOpen 0.4s ease-out;
}

@keyframes modalOpen {
  from {
    opacity: 0;
    transform: translateY(-60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-color);
  transition: var(--transition);
}

.close:hover {
  color: var(--dark-color);
}

.thank-you-message {
  text-align: center;
}

.check-icon {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.btn-close-modal {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

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

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
  border-radius: 5px;
  background-color: white;
  padding: 5px;
}

.footer-links h4,
.footer-legal h4,
.footer-social h4 {
  color: white;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-links h4:after,
.footer-legal h4:after,
.footer-social h4:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li,
.footer-legal ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul li a,
.footer-legal ul li a {
  color: #aab2c0;
  transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-legal ul li a:hover {
  color: white;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #2a2a40;
  color: white;
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid #2a2a40;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #aab2c0;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark-color);
  color: white;
  padding: 1rem;
  z-index: 999;
  display: none;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cookie-content p {
  margin-bottom: 0;
  flex: 1;
  min-width: 280px;
}

.cookie-content a {
  color: var(--secondary-light);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-accept {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-customize {
  background-color: transparent;
  color: white;
  border: 1px solid white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-reject {
  background-color: var(--gray-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-customize:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-reject:hover {
  background-color: #3a3a52;
}

/* Responsive styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    margin-bottom: 1rem;
    justify-content: center;
  }
  
  nav ul {
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 0.75rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .story-content {
    flex-direction: column;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .post-meta {
    gap: 1rem;
    justify-content: flex-start;
  }
  
  .post-meta span {
    margin-right: 0;
  }
  
  .post-navigation {
    grid-template-columns: 1fr;
  }
  
  .cookie-content {
    flex-direction: column;
  }
  
  .cookie-buttons {
    margin-top: 1rem;
    justify-content: center;
  }
}
