/* Main Styles for Estudio Textil Website */

/* Variables */
:root {
    --primary-color: #e32312; /* Rojo del logo */
    --secondary-color: #8c1c17; /* Tono vino/cereza */
    --dark-color: #222222;
    --light-color: #f8f8f8;
    --gray-color: #666666;
    --light-gray: #eeeeee;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Raleway', sans-serif;
    --transition: all 0.3s ease;
}

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Raleway:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
}

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

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

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

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

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

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

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

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo img {
    max-height: 60px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 90px;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px;
}

/* Featured Section */
.featured {
    padding: 80px 0;
    background-color: var(--light-color);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.featured-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.featured-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.featured-image {
    height: 250px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-item:hover .featured-image img {
    transform: scale(1.1);
}

.featured-item h3 {
    padding: 20px 20px 10px;
    font-size: 1.5rem;
}

.featured-item p {
    padding: 0 20px;
    color: var(--gray-color);
}

.featured-item .btn {
    margin: 0 20px 20px;
}

/* About Preview Section */
.about-preview {
    padding: 80px 0;
    background-color: white;
}

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

/* Call to Action */
.cta {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta .btn-primary:hover {
    background-color: var(--light-gray);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    max-height: 80px;
    margin-bottom: 20px;
}

.footer h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
}
/* --- Corrección visual para la página de contacto --- */
.contact-info a {
  color: #444;
  font-size: 1em;
  text-decoration: none;
  word-break: break-all;
  display: inline-block;
  margin-bottom: 2px;
}
.contact-info a:hover {
  color: #e32312;
  text-decoration: underline;
}
.contact-info div {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-info strong {
  font-size: 1.1em;
  color: #222;
  margin-bottom: 2px;
  display: block;
}
.contact-info span {
  color: #444;
  font-size: 1em;
  text-decoration: none;
  word-break: break-all;
}
@media (max-width: 900px) {
  .contact-flex { flex-direction: column; align-items: center; }
  .contact-map, .contact-info { max-width: 100%; min-width: 0; }
}
.contact-info {
  flex: 1 1 350px;
  max-width: 400px;
  min-width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.info-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.info-block i {
  color: #e32312;
  font-size: 1.5em;
  margin-top: 2px;
  min-width: 28px;
  text-align: center;
}
.info-block strong {
  font-size: 1.1em;
  color: #222;
  margin-bottom: 2px;
  display: block;
}
.info-block span, .info-block a {
  color: #444;
  font-size: 1em;
  text-decoration: none;
  word-break: break-all;
  display: block;
  margin-bottom: 2px;
}
.email-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.info-block a:hover {
  color: #e32312;
  text-decoration: underline;
}
@media (max-width: 900px) {
  .contact-flex { flex-direction: column; align-items: center; }
  .contact-map, .contact-info { max-width: 100%; min-width: 0; }
}
.contact-info {
  flex: 1 1 350px;
  max-width: 400px;
  min-width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.info-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.info-block i {
  color: #e32312;
  font-size: 1.5em;
  margin-top: 2px;
  min-width: 28px;
  text-align: center;
}
.info-content {
  display: block;
  min-width: 0;
  width: 100%;
}
.info-content strong {
  font-size: 1.1em;
  color: #222;
  margin-bottom: 2px;
  display: block;
}
.info-content span {
  color: #444;
  font-size: 1em;
  text-decoration: none;
  word-break: break-all;
  display: block;
  margin-bottom: 2px;
}
.info-content a {
  color: #444;
  font-size: 1em;
  text-decoration: none;
  word-break: break-all;
  display: inline;
}
.info-content a:hover {
  color: #e32312;
  text-decoration: underline;
}
@media (max-width: 900px) {
  .contact-flex { flex-direction: column; align-items: center; }
  .contact-map, .contact-info { max-width: 100%; min-width: 0; }
}